Skip to content

Commit

Permalink
Revert "Linux joystick: Look at entire axis namespace for controls (t…
Browse files Browse the repository at this point in the history
…hanks, "spaz16"!)."

This reverts commit 4cb7923.

see RetroPie/RetroPie-Setup#1297
  • Loading branch information
joolswills committed Nov 18, 2016
1 parent b66155e commit b02fe99
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/joystick/linux/SDL_sysjoystick.c
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ ConfigJoystick(SDL_Joystick * joystick, int fd)
++joystick->nbuttons;
}
}
for (i = 0; i < ABS_MAX; ++i) {
for (i = 0; i < ABS_MISC; ++i) {
/* Skip hats */
if (i == ABS_HAT0X) {
i = ABS_HAT3Y;
Expand Down Expand Up @@ -720,6 +720,10 @@ HandleInputEvents(SDL_Joystick * joystick)
}
break;
case EV_ABS:
if (code >= ABS_MISC) {
break;
}

switch (code) {
case ABS_HAT0X:
case ABS_HAT0Y:
Expand Down

0 comments on commit b02fe99

Please sign in to comment.