summarylogtreecommitdiffstats
path: root/SDL-1.2.15-ignore_insane_joystick_axis.patch
diff options
context:
space:
mode:
authorAndrew Sun2018-07-30 14:50:33 -0400
committerAndrew Sun2018-07-30 14:50:33 -0400
commit581c3644ce39b3a03f267cb930d6bc177a3b59c6 (patch)
treec23b23d3deb703c02c40e453dcce8821ba69df1c /SDL-1.2.15-ignore_insane_joystick_axis.patch
parente7bfdf687bf1ed80aa72270c949aa5bf9fc4aea5 (diff)
downloadaur-581c3644ce39b3a03f267cb930d6bc177a3b59c6.tar.gz
mingw-w64-sdl: update url and add patches from regular sdl
Diffstat (limited to 'SDL-1.2.15-ignore_insane_joystick_axis.patch')
-rw-r--r--SDL-1.2.15-ignore_insane_joystick_axis.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/SDL-1.2.15-ignore_insane_joystick_axis.patch b/SDL-1.2.15-ignore_insane_joystick_axis.patch
new file mode 100644
index 00000000000..33340fd1bcc
--- /dev/null
+++ b/SDL-1.2.15-ignore_insane_joystick_axis.patch
@@ -0,0 +1,20 @@
+changeset: 6324:95abff7adcc2
+branch: SDL-1.2
+parent: 6306:2b923729fd01
+user: Ryan C. Gordon <icculus@icculus.org>
+date: Sun Jun 03 04:49:25 2012 -0400
+summary: Linux evdev: ignore joystick axis events if they aren't in a sane range.
+
+diff -r 2b923729fd01 -r 95abff7adcc2 src/joystick/linux/SDL_sysjoystick.c
+--- a/src/joystick/linux/SDL_sysjoystick.c Sat May 12 23:32:51 2012 -0700
++++ b/src/joystick/linux/SDL_sysjoystick.c Sun Jun 03 04:49:25 2012 -0400
+@@ -1106,6 +1106,9 @@
+ }
+ break;
+ case EV_ABS:
++ if (code > ABS_MISC) {
++ break;
++ }
+ switch (code) {
+ case ABS_HAT0X:
+ case ABS_HAT0Y: