Browse Source

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
Sam Lantinga 1 day ago
parent
commit
9a6455a526
2 changed files with 2 additions and 3 deletions
  1. 1 2
      include/SDL3/SDL_hints.h
  2. 1 1
      src/video/windows/SDL_windowsvideo.c

+ 1 - 2
include/SDL3/SDL_hints.h

@@ -4306,9 +4306,8 @@ extern "C" {
  *
  * 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.
- *   (default)
  *
  * This hint should be set before SDL is initialized.
  *

+ 1 - 1
src/video/windows/SDL_windowsvideo.c

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