comparison src/joystick/linux/SDL_sysjoystick.c @ 245:ab781a7dd82f

*** empty log message ***
author Sam Lantinga <slouken@libsdl.org>
date Mon, 26 Nov 2001 22:22:20 +0000
parents 50620ec9c86a
children e8157fcb3114
comparison
equal deleted inserted replaced
244:dc660aee7d7d 245:ab781a7dd82f
138 138
139 /* Function to scan the system for joysticks */ 139 /* Function to scan the system for joysticks */
140 int SDL_SYS_JoystickInit(void) 140 int SDL_SYS_JoystickInit(void)
141 { 141 {
142 /* The base path of the joystick devices */ 142 /* The base path of the joystick devices */
143 const char *joydev_pattern[2] = { 143 const char *joydev_pattern[] = {
144 "/dev/js%d", 144 "/dev/js%d",
145 #ifdef USE_INPUT_EVENTS 145 #ifdef USE_INPUT_EVENTS
146 "/dev/input/event%d" 146 "/dev/input/event%d",
147 #endif 147 #endif
148 "/dev/input/js%d" 148 "/dev/input/js%d"
149 }; 149 };
150 int numjoysticks; 150 int numjoysticks;
151 int i, j, done; 151 int i, j, done;