Disable GameInput for mouse and keyboard by default

We're going to wait for this to get more testing before enabling it by default.

Fixes https://github.com/libsdl-org/SDL/issues/13846
This commit is contained in:
Sam Lantinga
2025-10-08 21:22:22 -07:00
parent c86cfb0156
commit 9a6455a526
2 changed files with 2 additions and 3 deletions

View File

@@ -4306,9 +4306,8 @@ extern "C" {
* *
* The variable can be set to the following values: * The variable can be set to the following values:
* *
* - "0": GameInput is not used for raw keyboard and mouse events. * - "0": GameInput is not used for raw keyboard and mouse events. (default)
* - "1": GameInput is used for raw keyboard and mouse events, if available. * - "1": GameInput is used for raw keyboard and mouse events, if available.
* (default)
* *
* This hint should be set before SDL is initialized. * This hint should be set before SDL is initialized.
* *

View File

@@ -603,7 +603,7 @@ static bool WIN_VideoInit(SDL_VideoDevice *_this)
SDL_Log("DPI awareness: %s", WIN_GetDPIAwareness(_this)); SDL_Log("DPI awareness: %s", WIN_GetDPIAwareness(_this));
#endif #endif
if (SDL_GetHintBoolean(SDL_HINT_WINDOWS_GAMEINPUT, true)) { if (SDL_GetHintBoolean(SDL_HINT_WINDOWS_GAMEINPUT, false)) {
WIN_InitGameInput(_this); WIN_InitGameInput(_this);
} }