Temporary band-aid for bug #575 SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Tue, 29 Sep 2009 00:37:36 +0000
branchSDL-1.2
changeset 42610530394b5830
parent 4260 42d28f92253b
child 4262 800f3cb78e45
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
     1.1 --- a/src/joystick/linux/SDL_sysjoystick.c	Mon Sep 28 18:21:58 2009 +0000
     1.2 +++ b/src/joystick/linux/SDL_sysjoystick.c	Tue Sep 29 00:37:36 2009 +0000
     1.3 @@ -59,6 +59,9 @@
     1.4  	{ "Saitek Saitek X45", 6, 1, 0 }
     1.5  };
     1.6  
     1.7 +/* It looks like newer kernels have the logical mapping at the driver level */
     1.8 +#define NO_LOGICAL_JOYSTICKS
     1.9 +
    1.10  #ifndef NO_LOGICAL_JOYSTICKS
    1.11  
    1.12  /*