summaryrefslogtreecommitdiff
path: root/multilib/lib32-sdl/fix_joystick_misc_axes.diff
blob: 75e3755c93c83965a76c9f0541205855b3b8a27b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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;