Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fix from 1.2 branch: ignore bogus Linux evdev joystick axes.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 3, 2012
1 parent 838efbb commit 43251ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/joystick/linux/SDL_sysjoystick.c
Expand Up @@ -1117,6 +1117,10 @@ EV_HandleEvents(SDL_Joystick * joystick)
}
break;
case EV_ABS:
if (code >= ABS_MISC) {
break;
}

switch (code) {
case ABS_HAT0X:
case ABS_HAT0Y:
Expand Down

0 comments on commit 43251ea

Please sign in to comment.