comparison src/joystick/linux/SDL_sysjoystick.c @ 4261:0530394b5830 SDL-1.2

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.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 29 Sep 2009 00:37:36 +0000 (2009-09-29)
parents dbdf8b108e31
children c8bf421431f9
comparison
equal deleted inserted replaced
4260:42d28f92253b 4261:0530394b5830
56 { "WingMan Extreme Digital 3D", 4, 1, 0 }, 56 { "WingMan Extreme Digital 3D", 4, 1, 0 },
57 { "Microsoft SideWinder Precision 2 Joystick", 4, 1, 0 }, 57 { "Microsoft SideWinder Precision 2 Joystick", 4, 1, 0 },
58 { "Logitech Inc. WingMan Extreme Digital 3D", 4, 1, 0 }, 58 { "Logitech Inc. WingMan Extreme Digital 3D", 4, 1, 0 },
59 { "Saitek Saitek X45", 6, 1, 0 } 59 { "Saitek Saitek X45", 6, 1, 0 }
60 }; 60 };
61
62 /* It looks like newer kernels have the logical mapping at the driver level */
63 #define NO_LOGICAL_JOYSTICKS
61 64
62 #ifndef NO_LOGICAL_JOYSTICKS 65 #ifndef NO_LOGICAL_JOYSTICKS
63 66
64 /* 67 /*
65 Some USB HIDs show up as a single joystick even though they actually 68 Some USB HIDs show up as a single joystick even though they actually