You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
667 B
21 lines
667 B
4 years ago
|
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:
|