From 931a31decae90efdd18b763030c9e07630339a47 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Wed, 31 Aug 2011 20:46:04 -0500 Subject: [PATCH 1/2] Untested attempt to fix real gcpad sticks not being detected by the input configuration dialogs. --- .../Src/ControllerInterface/ControllerInterface.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp b/Source/Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp index a995ae415a..e6f2f508d2 100644 --- a/Source/Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp +++ b/Source/Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp @@ -18,7 +18,10 @@ #include "Thread.h" -#define INPUT_DETECT_THRESHOLD 0.85f +namespace +{ +const float INPUT_DETECT_THRESHOLD = 0.65f; +} ControllerInterface g_controller_interface; From 09d2301fed1f55989e937bcc45897426347e3b44 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Mon, 12 Dec 2011 23:24:10 -0600 Subject: [PATCH 2/2] detect input at 55% to catch silly c-stick range --- .../InputCommon/Src/ControllerInterface/ControllerInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp b/Source/Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp index e6f2f508d2..82cfe2469e 100644 --- a/Source/Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp +++ b/Source/Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp @@ -20,7 +20,7 @@ namespace { -const float INPUT_DETECT_THRESHOLD = 0.65f; +const float INPUT_DETECT_THRESHOLD = 0.55f; } ControllerInterface g_controller_interface;