summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorayuanx <ayuanx@gmail.com>2010-01-31 14:51:41 +0000
committerayuanx <ayuanx@gmail.com>2010-01-31 14:51:41 +0000
commitda56b42ae20ddcfe95ebdb69361cce441479f6fc (patch)
tree84aea82d875147b0efb9ec0a53033cc9c9590296 /Source
parent909dce4caf2756d792a26afd3e2e5025ad953f10 (diff)
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
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/InputCommon/Src/SDL_Util.cpp2
1 files changed, 1 insertions, 1 deletions
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<CONTROLLER_INFO> &_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