Skip to content
Permalink
Browse files

Linux evdev: ignore joystick axis events if they aren't in a sane range.

  • Loading branch information
icculus committed Jun 3, 2012
1 parent 52d9fb5 commit ab99cc82b0a898ad528d46fa128b649a220a94f4
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/joystick/linux/SDL_sysjoystick.c
@@ -1106,6 +1106,9 @@ static __inline__ void EV_HandleEvents(SDL_Joystick *joystick)
}
break;
case EV_ABS:
if (code > ABS_MISC) {
break;
}
switch (code) {
case ABS_HAT0X:
case ABS_HAT0Y:

0 comments on commit ab99cc8

Please sign in to comment.