summarylogtreecommitdiffstats
path: root/fix_joystick_misc_axes.diff
diff options
context:
space:
mode:
authorAntonio Orefice2015-06-09 08:37:09 +0200
committerAntonio Orefice2015-06-09 08:37:09 +0200
commit5ab1604b30251761801e35f086086019add0ab5a (patch)
treea9dbb884ea32a495799c4273623a8f1984c3aa15 /fix_joystick_misc_axes.diff
downloadaur-lib32-sdl-nobackingstore.tar.gz
Initial import
Diffstat (limited to 'fix_joystick_misc_axes.diff')
-rw-r--r--fix_joystick_misc_axes.diff13
1 files changed, 13 insertions, 0 deletions
diff --git a/fix_joystick_misc_axes.diff b/fix_joystick_misc_axes.diff
new file mode 100644
index 00000000000..75e3755c93c
--- /dev/null
+++ b/fix_joystick_misc_axes.diff
@@ -0,0 +1,13 @@
+diff --git a/src/joystick/linux/SDL_sysjoystick.c b/src/joystick/linux/SDL_sysjoystick.c
+index ee43974..80e46e4 100644
+--- a/src/joystick/linux/SDL_sysjoystick.c
++++ b/src/joystick/linux/SDL_sysjoystick.c
+@@ -702,7 +702,7 @@ static SDL_bool EV_ConfigJoystick(SDL_Joystick *joystick, int fd)
+ ++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;