Disable SDL_HINT_JOYSTICK_RAWINPUT by default

backported from SDL3 commit aa870d5

 Fixes #13047
This commit is contained in:
AL2009man
2025-10-08 14:00:16 -04:00
committed by Sam Lantinga
parent 26d1eadda3
commit 8ef0a07a52
2 changed files with 3 additions and 3 deletions

View File

@@ -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"

View File

@@ -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;
}