mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
add patch for missing axes
This commit is contained in:
parent
094be53b37
commit
6d192350c3
@ -0,0 +1,22 @@
|
|||||||
|
--- a/src/joystick/linux/SDL_sysjoystick.c 2014-03-16 03:31:41.000000000 +0100
|
||||||
|
+++ b/src/joystick/linux/SDL_sysjoystick.c 2014-09-08 01:42:32.987502340 +0200
|
||||||
|
@@ -500,7 +500,7 @@
|
||||||
|
++joystick->nbuttons;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
- for (i = 0; i < ABS_MISC; ++i) {
|
||||||
|
+ for (i = 0; i < ABS_MAX; ++i) {
|
||||||
|
/* Skip hats */
|
||||||
|
if (i == ABS_HAT0X) {
|
||||||
|
i = ABS_HAT3Y;
|
||||||
|
@@ -761,10 +761,6 @@
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case EV_ABS:
|
||||||
|
- if (code >= ABS_MISC) {
|
||||||
|
- break;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
switch (code) {
|
||||||
|
case ABS_HAT0X:
|
||||||
|
case ABS_HAT0Y:
|
Loading…
x
Reference in New Issue
Block a user