Linux: Search a smaller set of potential joystick axes.
Newer kernels seem to report bogus axes in the higher ranges, for example with a standard PlayStation 3 controller plugged in via USB.
This commit is contained in:
parent
1fc724be50
commit
c4348f44f7
1 changed files with 1 additions and 1 deletions
|
@ -703,7 +703,7 @@ EV_ConfigJoystick(SDL_Joystick * joystick, int fd)
|
||||||
++joystick->nbuttons;
|
++joystick->nbuttons;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (i = 0; i < ABS_MAX; ++i) {
|
for (i = 0; i < ABS_MISC; ++i) {
|
||||||
/* Skip hats */
|
/* Skip hats */
|
||||||
if (i == ABS_HAT0X) {
|
if (i == ABS_HAT0X) {
|
||||||
i = ABS_HAT3Y;
|
i = ABS_HAT3Y;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue