libsdl-1.2.15-joystick.patch 386 B

12345678910111213
  1. --- src/joystick/linux/SDL_sysjoystick.c.org 2012-06-06 18:03:56.700819599 +0300
  2. +++ src/joystick/linux/SDL_sysjoystick.c 2012-06-06 18:04:31.473143816 +0300
  3. @@ -1106,6 +1106,10 @@ static __inline__ void EV_HandleEvents(S
  4. }
  5. break;
  6. case EV_ABS:
  7. + if (code >= ABS_MISC) {
  8. + break;
  9. + }
  10. +
  11. switch (code) {
  12. case ABS_HAT0X:
  13. case ABS_HAT0Y: