From 931a31decae90efdd18b763030c9e07630339a47 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Wed, 31 Aug 2011 20:46:04 -0500 Subject: Untested attempt to fix real gcpad sticks not being detected by the input configuration dialogs. --- .../Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Source/Core/InputCommon') 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; -- cgit v1.2.3 From 95517a9741175f15124dc11e132620a23bec7a19 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Mon, 5 Sep 2011 09:43:23 -0700 Subject: vs2010: Disable LTCG for realz --- Source/Core/InputCommon/InputCommon.vcxproj | 2 -- 1 file changed, 2 deletions(-) (limited to 'Source/Core/InputCommon') diff --git a/Source/Core/InputCommon/InputCommon.vcxproj b/Source/Core/InputCommon/InputCommon.vcxproj index 80aaeaa140..8eed835b2d 100644 --- a/Source/Core/InputCommon/InputCommon.vcxproj +++ b/Source/Core/InputCommon/InputCommon.vcxproj @@ -45,7 +45,6 @@ StaticLibrary false Unicode - true StaticLibrary @@ -56,7 +55,6 @@ StaticLibrary false Unicode - true StaticLibrary -- cgit v1.2.3 From e76bc71efe8c3c724e14a2f741fe4f34669d1bea Mon Sep 17 00:00:00 2001 From: skidau Date: Sat, 1 Oct 2011 21:50:15 +1000 Subject: Fixed the controller config so that it lists DInput controllers with special characters (like the Registered (R) sign) in their name. UTF8 is used to match the encoding used by the Wx GUI. --- Source/Core/InputCommon/Src/ControllerInterface/DInput/DInput.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/InputCommon') diff --git a/Source/Core/InputCommon/Src/ControllerInterface/DInput/DInput.cpp b/Source/Core/InputCommon/Src/ControllerInterface/DInput/DInput.cpp index e09bd2fdd9..c23e9df17e 100644 --- a/Source/Core/InputCommon/Src/ControllerInterface/DInput/DInput.cpp +++ b/Source/Core/InputCommon/Src/ControllerInterface/DInput/DInput.cpp @@ -51,9 +51,9 @@ std::string GetDeviceName(const LPDIRECTINPUTDEVICE8 device) if (SUCCEEDED(device->GetProperty(DIPROP_PRODUCTNAME, &str.diph))) { - const int size = WideCharToMultiByte(CP_ACP, 0, str.wsz, -1, NULL, 0, NULL, NULL); + const int size = WideCharToMultiByte(CP_UTF8, 0, str.wsz, -1, NULL, 0, NULL, NULL); char* const data = new char[size]; - if (size == WideCharToMultiByte(CP_ACP, 0, str.wsz, -1, data, size, NULL, NULL)) + if (size == WideCharToMultiByte(CP_UTF8, 0, str.wsz, -1, data, size, NULL, NULL)) out.assign(data); delete[] data; } -- cgit v1.2.3 From 856972f808e62b026f1c4bc035e95722c86fac92 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Mon, 3 Oct 2011 22:54:15 -0700 Subject: remove hacky old MicButton stuff --- Source/Core/InputCommon/Src/GCPadStatus.h | 1 - 1 file changed, 1 deletion(-) (limited to 'Source/Core/InputCommon') diff --git a/Source/Core/InputCommon/Src/GCPadStatus.h b/Source/Core/InputCommon/Src/GCPadStatus.h index 72b790bbc6..835089a70d 100644 --- a/Source/Core/InputCommon/Src/GCPadStatus.h +++ b/Source/Core/InputCommon/Src/GCPadStatus.h @@ -51,7 +51,6 @@ typedef struct unsigned char triggerRight; // 0 <= triggerRight <= 255 unsigned char analogA; // 0 <= analogA <= 255 unsigned char analogB; // 0 <= analogB <= 255 - bool MicButton; // HAX signed char err; // one of PAD_ERR_* number } SPADStatus; -- cgit v1.2.3 From 09d2301fed1f55989e937bcc45897426347e3b44 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Mon, 12 Dec 2011 23:24:10 -0600 Subject: detect input at 55% to catch silly c-stick range --- Source/Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/InputCommon') 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; -- cgit v1.2.3