Disable SDL_HINT_JOYSTICK_RAWINPUT by default

backported from SDL3 commit aa870d5

 Fixes #13047
This commit is contained in:
AL2009man authored and Sam Lantinga committed 2025-10-08 11:34:55 -07:00
1 parent 26d1eadda3
commit 8ef0a07a52
2 files changed
+3 -3

No files matched your search

+2 -2
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"
+1 -1
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;
}