From 746b79e2be89259a442f5d881f2fb357d305406d Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 29 Sep 2009 00:37:36 +0000 Subject: [PATCH] Temporary band-aid for bug #575 It looks like newer kernels do the logical device mapping in the driver, so this code crashes. I don't have one of these nor do I have remote access to debug this, so I'm disabling the logical mapping for now. --HG-- branch : SDL-1.2 --- src/joystick/linux/SDL_sysjoystick.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/joystick/linux/SDL_sysjoystick.c b/src/joystick/linux/SDL_sysjoystick.c index 68c53f6b7..12132e3c3 100644 --- a/src/joystick/linux/SDL_sysjoystick.c +++ b/src/joystick/linux/SDL_sysjoystick.c @@ -59,6 +59,9 @@ static struct { { "Saitek Saitek X45", 6, 1, 0 } }; +/* It looks like newer kernels have the logical mapping at the driver level */ +#define NO_LOGICAL_JOYSTICKS + #ifndef NO_LOGICAL_JOYSTICKS /*