Skip to content
Permalink
Browse files
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.
  • Loading branch information
icculus committed Jul 14, 2011
1 parent b5d095d commit 5cc87f9d3df418775c412c528611fdc3d2168847
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/joystick/linux/SDL_sysjoystick.c
@@ -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;

0 comments on commit 5cc87f9

Please sign in to comment.