summarylogtreecommitdiffstats
path: root/SDL-1.2.15-ignore_insane_joystick_axis.patch
diff options
context:
space:
mode:
authorMarkus Kitsinger (SwooshyCueb)2016-02-25 01:18:05 -0600
committerMarkus Kitsinger (SwooshyCueb)2016-02-25 01:18:05 -0600
commitb6e313bbc73723d355f8ed80035c115a547e9167 (patch)
tree62257e50c55a170ab55001602a10841c869d47de /SDL-1.2.15-ignore_insane_joystick_axis.patch
downloadaur-b6e313bbc73723d355f8ed80035c115a547e9167.tar.gz
Initial commit
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: