src/joystick/linux/SDL_sysjoystick.c
branchSDL-1.2
changeset 5561 62269926f506
parent 5316 6bb01861c4c0
child 6122 7ba8d4c1b11d
--- a/src/joystick/linux/SDL_sysjoystick.c	Thu Jul 07 11:50:30 2011 -0700
+++ b/src/joystick/linux/SDL_sysjoystick.c	Wed Jul 13 17:36:29 2011 -0700
@@ -703,7 +703,7 @@
 				++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;