From 5cc87f9d3df418775c412c528611fdc3d2168847 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 13 Jul 2011 17:36:29 -0700 Subject: [PATCH] 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. --- src/joystick/linux/SDL_sysjoystick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/linux/SDL_sysjoystick.c b/src/joystick/linux/SDL_sysjoystick.c index f6421ba20..1b900646c 100644 --- a/src/joystick/linux/SDL_sysjoystick.c +++ b/src/joystick/linux/SDL_sysjoystick.c @@ -703,7 +703,7 @@ static SDL_bool EV_ConfigJoystick(SDL_Joystick *joystick, int fd) ++joystick->nbuttons; } } - for ( i=0; i