src/joystick/linux/SDL_sysjoystick.c
changeset 3229 09172593e9b6
parent 3089 0ea7b6bb4054
child 3326 11c079bb52a8
equal deleted inserted replaced
3228:9ec661afdf5f 3229:09172593e9b6
   361 
   361 
   362 #endif /* USE_LOGICAL_JOYSTICKS */
   362 #endif /* USE_LOGICAL_JOYSTICKS */
   363 
   363 
   364 #if SDL_INPUT_LINUXEV
   364 #if SDL_INPUT_LINUXEV
   365 #define test_bit(nr, addr) \
   365 #define test_bit(nr, addr) \
   366 	(((1UL << ((nr) & 31)) & (((const unsigned long *) addr)[(nr) >> 5])) != 0)
   366 	(((1UL << ((nr) & 31)) & (((const Uint32 *) addr)[(nr) >> 5])) != 0)
   367 
   367 
   368 static int
   368 static int
   369 EV_IsJoystick(int fd)
   369 EV_IsJoystick(int fd)
   370 {
   370 {
   371     unsigned long evbit[40];
   371     unsigned long evbit[40];