Joystick threshold defaults to 10000, not 0
Fixes Bug #1046. Ideally, one could configure the threshold, but in practice if 10000 doesn't work it's an SDL bug. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2906 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
Changes towards version 0.7:
|
||||
- Joystick threshold defaults to 10,000, not 0 (Bug #1046) - Michael
|
||||
- Remove MEM_HANDLEs from everywhere outside of memlib - Michael
|
||||
- Split out RESOURCEs from the loaded data in RACE_DESC and LOCDATA
|
||||
structures - Michael
|
||||
|
||||
@@ -204,6 +204,7 @@ key_init (void)
|
||||
joysticks[i].numaxes = joysticks[i].numbuttons = 0;
|
||||
joysticks[i].axes = NULL;
|
||||
joysticks[i].buttons = NULL;
|
||||
joysticks[i].threshold = 10000;
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -212,6 +213,7 @@ key_init (void)
|
||||
}
|
||||
#else
|
||||
joycount = 0;
|
||||
joysticks = NULL;
|
||||
#endif /* HAVE_JOYSTICK */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user