Hi.
I try to use Linux 2.4 unified input interface on SDL-1.2.3,
but SDL-applications can’t open any joystick.
(Of course ‘evdev’ kernel module was loaded correctly…)
Now I wrote tiny patch to fix this problem.
Please confirm and apply it.–
ORINO Yuichiro, mailto:@ORINO_Yuichiro
-------------- next part --------------
— src/joystick/linux/SDL_sysjoystick.c~ Sat Nov 3 03:12:52 2001
+++ src/joystick/linux/SDL_sysjoystick.c Sun Nov 25 09:14:52 2001
@@ -140,10 +140,10 @@
int SDL_SYS_JoystickInit(void)
{
/* The base path of the joystick devices */
- const char *joydev_pattern[2] = {
- const char *joydev_pattern[] = {
"/dev/js%d",
#ifdef USE_INPUT_EVENTS
-
"/dev/input/event%d"
-
"/dev/input/event%d",
#endif
"/dev/input/js%d"
};