src/joystick/linux/SDL_sysjoystick.c
changeset 9630 6c86d3216f6a
parent 9619 b94b6d0bff0f
child 9998 f67cf37e9cd4
     1.1 --- a/src/joystick/linux/SDL_sysjoystick.c	Tue May 26 08:52:02 2015 -0700
     1.2 +++ b/src/joystick/linux/SDL_sysjoystick.c	Tue May 26 12:03:51 2015 -0400
     1.3 @@ -492,7 +492,7 @@
     1.4                  ++joystick->nbuttons;
     1.5              }
     1.6          }
     1.7 -        for (i = 0; i < ABS_MISC; ++i) {
     1.8 +        for (i = 0; i < ABS_MAX; ++i) {
     1.9              /* Skip hats */
    1.10              if (i == ABS_HAT0X) {
    1.11                  i = ABS_HAT3Y;
    1.12 @@ -753,10 +753,6 @@
    1.13                  }
    1.14                  break;
    1.15              case EV_ABS:
    1.16 -                if (code >= ABS_MISC) {
    1.17 -                    break;
    1.18 -                }
    1.19 -
    1.20                  switch (code) {
    1.21                  case ABS_HAT0X:
    1.22                  case ABS_HAT0Y: