mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-30 06:58:30 +00:00
SDL_XINPUT_Enabled() returns false until XInput DLL is successfully loaded
We make sure we initialize XInput first, so that anything checking whether it's enabled gets a valid result based on whether we were able to load it or not.
This commit is contained in:
@@ -61,7 +61,7 @@ static SDL_JoystickDriver *SDL_joystick_drivers[] = {
|
||||
#if defined(SDL_JOYSTICK_DINPUT) || defined(SDL_JOYSTICK_XINPUT)
|
||||
&SDL_WINDOWS_JoystickDriver,
|
||||
#endif
|
||||
#ifdef SDL_JOYSTICK_WGI
|
||||
#ifdef SDL_JOYSTICK_WGI // Lower priority than other Windows drivers
|
||||
&SDL_WGI_JoystickDriver,
|
||||
#endif
|
||||
#ifdef SDL_JOYSTICK_WINMM
|
||||
|
Reference in New Issue
Block a user