fix_joystick_misc_axes.diff 464 B

1234567891011121314
  1. diff --git a/src/joystick/linux/SDL_sysjoystick.c b/src/joystick/linux/SDL_sysjoystick.c
  2. index ee43974..80e46e4 100644
  3. --- a/src/joystick/linux/SDL_sysjoystick.c
  4. +++ b/src/joystick/linux/SDL_sysjoystick.c
  5. @@ -702,7 +702,7 @@ static SDL_bool EV_ConfigJoystick(SDL_Joystick *joystick, int fd)
  6. ++joystick->nbuttons;
  7. }
  8. }
  9. - for ( i=0; i<ABS_MISC; ++i ) {
  10. + for ( i=0; i<ABS_MAX; ++i ) {
  11. /* Skip hats */
  12. if ( i == ABS_HAT0X ) {
  13. i = ABS_HAT3Y;