mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
Disable SDL_HINT_JOYSTICK_RAWINPUT by default
backported from SDL3 commitaa870d5Fixes #13047 (cherry picked from commit8ef0a07a52)
This commit is contained in:
parent
40625e9e7e
commit
bc67702d8d
2 changed files with 3 additions and 3 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue