Fix from 1.2 branch: ignore bogus Linux evdev joystick axes.
This commit is contained in:
parent
924fe8e26e
commit
110c52e2b4
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue