comparison src/joystick/linux/SDL_sysjoystick.c @ 3326:11c079bb52a8

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:42:21 +0000
parents 09172593e9b6
children c9dcc73f6a36
comparison
equal deleted inserted replaced
3325:bb9c3d04f126 3326:11c079bb52a8
57 "WingMan Extreme Digital 3D", 4, 1, 0}, { 57 "WingMan Extreme Digital 3D", 4, 1, 0}, {
58 "Microsoft SideWinder Precision 2 Joystick", 4, 1, 0}, { 58 "Microsoft SideWinder Precision 2 Joystick", 4, 1, 0}, {
59 "Logitech Inc. WingMan Extreme Digital 3D", 4, 1, 0}, { 59 "Logitech Inc. WingMan Extreme Digital 3D", 4, 1, 0}, {
60 "Saitek Saitek X45", 6, 1, 0} 60 "Saitek Saitek X45", 6, 1, 0}
61 }; 61 };
62
63 /* It looks like newer kernels have the logical mapping at the driver level */
64 #define NO_LOGICAL_JOYSTICKS
62 65
63 #ifndef NO_LOGICAL_JOYSTICKS 66 #ifndef NO_LOGICAL_JOYSTICKS
64 67
65 /* 68 /*
66 Some USB HIDs show up as a single joystick even though they actually 69 Some USB HIDs show up as a single joystick even though they actually