mirror of
https://github.com/yawut/SDL.git
synced 2026-10-02 05:06:46 -05:00
Linux: Search a smaller set of potential joystick axes.
Newer kernels seem to report bogus axes in the higher ranges, for example with a standard PlayStation 3 controller plugged in via USB. --HG-- branch : SDL-1.2
This commit is contained in:
@@ -703,7 +703,7 @@ static SDL_bool EV_ConfigJoystick(SDL_Joystick *joystick, int fd)
|
||||
++joystick->nbuttons;
|
||||
}
|
||||
}
|
||||
for ( i=0; i<ABS_MAX; ++i ) {
|
||||
for ( i=0; i<ABS_MISC; ++i ) {
|
||||
/* Skip hats */
|
||||
if ( i == ABS_HAT0X ) {
|
||||
i = ABS_HAT3Y;
|
||||
|
||||
Reference in New Issue
Block a user