termux-packages/x11-packages/sdl/SDL-1.2.15_src_joystick_linux_SDL_sysjoystick.c.patch

14 lines
471 B
Diff
Raw Normal View History

2018-09-10 00:42:26 +02:00
diff -uNr SDL-1.2.15/src/joystick/linux/SDL_sysjoystick.c SDL-1.2.15.mod/src/joystick/linux/SDL_sysjoystick.c
--- SDL-1.2.15/src/joystick/linux/SDL_sysjoystick.c 2012-01-19 08:30:06.000000000 +0200
+++ SDL-1.2.15.mod/src/joystick/linux/SDL_sysjoystick.c 2017-11-26 00:27:30.421353677 +0200
@@ -1106,6 +1106,9 @@
}
break;
case EV_ABS:
+ if (code > ABS_MISC) {
+ break;
+ }
switch (code) {
case ABS_HAT0X:
case ABS_HAT0Y: