Revert "Linux joystick: Look at entire axis namespace for controls (thanks, "spaz16"!)."
This reverts commit 4cb7923f25
.
see https://github.com/RetroPie/RetroPie-Setup/issues/1297
This commit is contained in:
parent
80ef80f4b0
commit
cdd603b3b3
1 changed files with 5 additions and 1 deletions
|
@ -649,7 +649,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;
|
||||
|
@ -913,6 +913,10 @@ HandleInputEvents(SDL_Joystick * joystick)
|
|||
events[i].value);
|
||||
break;
|
||||
case EV_ABS:
|
||||
if (code >= ABS_MISC) {
|
||||
break;
|
||||
}
|
||||
|
||||
switch (code) {
|
||||
case ABS_HAT0X:
|
||||
case ABS_HAT0Y:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue