From da56b42ae20ddcfe95ebdb69361cce441479f6fc Mon Sep 17 00:00:00 2001 From: ayuanx Date: Sun, 31 Jan 2010 14:51:41 +0000 Subject: [PATCH] Enables detecting pad axes whose range is smaller than usual ones, e.g. from 0 to 255 git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4987 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/InputCommon/Src/SDL_Util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/InputCommon/Src/SDL_Util.cpp b/Source/Core/InputCommon/Src/SDL_Util.cpp index 3ca4a834e6..5c3c33ba3f 100644 --- a/Source/Core/InputCommon/Src/SDL_Util.cpp +++ b/Source/Core/InputCommon/Src/SDL_Util.cpp @@ -102,7 +102,7 @@ bool SearchDevices(std::vector &_joyinfo, int &_NumPads, int &_ bool AvoidValues(int value, bool NoTriggerFilter) { // Avoid detecting very small or very big (for triggers) values - if( (value > -0x2000 && value < 0x2000) // Small values + if( (value > -200 && value < 200) // Small values || ((value < -0x6000 || value > 0x6000) && !NoTriggerFilter)) // Big values return true; // Avoid else