src/joystick/linux/SDL_sysjoystick.c
changeset 9630 6c86d3216f6a
parent 9619 b94b6d0bff0f
child 9998 f67cf37e9cd4
--- a/src/joystick/linux/SDL_sysjoystick.c	Tue May 26 08:52:02 2015 -0700
+++ b/src/joystick/linux/SDL_sysjoystick.c	Tue May 26 12:03:51 2015 -0400
@@ -492,7 +492,7 @@
                 ++joystick->nbuttons;
             }
         }
-        for (i = 0; i < ABS_MISC; ++i) {
+        for (i = 0; i < ABS_MAX; ++i) {
             /* Skip hats */
             if (i == ABS_HAT0X) {
                 i = ABS_HAT3Y;
@@ -753,10 +753,6 @@
                 }
                 break;
             case EV_ABS:
-                if (code >= ABS_MISC) {
-                    break;
-                }
-
                 switch (code) {
                 case ABS_HAT0X:
                 case ABS_HAT0Y: