From 676f56294f08f02a4688a30bc385e0d85e2c5f48 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 29 Sep 2009 00:42:21 +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. --- 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 049274c38..39e76098f 100644 --- a/src/joystick/linux/SDL_sysjoystick.c +++ b/src/joystick/linux/SDL_sysjoystick.c @@ -60,6 +60,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 /*