src/joystick/windows/SDL_dxjoystick.c
changeset 8094 9efaae827924
parent 8093 b43765095a6f
child 8149 681eb46b8ac4
equal deleted inserted replaced
8093:b43765095a6f 8094:9efaae827924
   628     {
   628     {
   629         s_bJoystickThreadQuit = SDL_FALSE;
   629         s_bJoystickThreadQuit = SDL_FALSE;
   630         /* spin up the thread to detect hotplug of devices */
   630         /* spin up the thread to detect hotplug of devices */
   631 #if defined(__WIN32__) && !defined(HAVE_LIBC)
   631 #if defined(__WIN32__) && !defined(HAVE_LIBC)
   632 #undef SDL_CreateThread
   632 #undef SDL_CreateThread
       
   633 #if SDL_DYNAMIC_API
       
   634         s_threadJoystick= SDL_CreateThread_REAL( SDL_JoystickThread, "SDL_joystick", NULL, NULL, NULL );
       
   635 #else
   633         s_threadJoystick= SDL_CreateThread( SDL_JoystickThread, "SDL_joystick", NULL, NULL, NULL );
   636         s_threadJoystick= SDL_CreateThread( SDL_JoystickThread, "SDL_joystick", NULL, NULL, NULL );
       
   637 #endif
   634 #else
   638 #else
   635         s_threadJoystick = SDL_CreateThread( SDL_JoystickThread, "SDL_joystick", NULL );
   639         s_threadJoystick = SDL_CreateThread( SDL_JoystickThread, "SDL_joystick", NULL );
   636 #endif
   640 #endif
   637     }
   641     }
   638         return SDL_SYS_NumJoysticks();
   642         return SDL_SYS_NumJoysticks();