src/joystick/linux/SDL_sysjoystick.c
changeset 5562 aa0e501baca0
parent 5535 96594ac5fd1a
child 6138 4c64952a58fb
equal deleted inserted replaced
5558:dd0f52bf2bfa 5562:aa0e501baca0
   701 #endif
   701 #endif
   702                 joystick->hwdata->key_map[i - BTN_MISC] = joystick->nbuttons;
   702                 joystick->hwdata->key_map[i - BTN_MISC] = joystick->nbuttons;
   703                 ++joystick->nbuttons;
   703                 ++joystick->nbuttons;
   704             }
   704             }
   705         }
   705         }
   706         for (i = 0; i < ABS_MAX; ++i) {
   706         for (i = 0; i < ABS_MISC; ++i) {
   707             /* Skip hats */
   707             /* Skip hats */
   708             if (i == ABS_HAT0X) {
   708             if (i == ABS_HAT0X) {
   709                 i = ABS_HAT3Y;
   709                 i = ABS_HAT3Y;
   710                 continue;
   710                 continue;
   711             }
   711             }