diff --git a/include/SDL_hints.h b/include/SDL_hints.h index 32d7f85ac1..5132445198 100644 --- a/include/SDL_hints.h +++ b/include/SDL_hints.h @@ -1262,8 +1262,8 @@ extern "C" { * * This variable can be set to the following values: * - * - "0": RAWINPUT drivers are not used - * - "1": RAWINPUT drivers are used (the default) + * - "0": RAWINPUT drivers are not used (the default) + * - "1": RAWINPUT drivers are used */ #define SDL_HINT_JOYSTICK_RAWINPUT "SDL_JOYSTICK_RAWINPUT" diff --git a/src/joystick/windows/SDL_rawinputjoystick.c b/src/joystick/windows/SDL_rawinputjoystick.c index cd958b1ff9..6803f7d80c 100644 --- a/src/joystick/windows/SDL_rawinputjoystick.c +++ b/src/joystick/windows/SDL_rawinputjoystick.c @@ -1027,7 +1027,7 @@ static int RAWINPUT_JoystickInit(void) { SDL_assert(!SDL_RAWINPUT_inited); - if (!SDL_GetHintBoolean(SDL_HINT_JOYSTICK_RAWINPUT, SDL_TRUE)) { + if (!SDL_GetHintBoolean(SDL_HINT_JOYSTICK_RAWINPUT, SDL_FALSE)) { return 0; }