From 9a6455a526556a73428b4cc18b34f05fdccd991c Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Wed, 8 Oct 2025 21:22:22 -0700
Subject: [PATCH] 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
---
include/SDL3/SDL_hints.h | 3 +--
src/video/windows/SDL_windowsvideo.c | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/include/SDL3/SDL_hints.h b/include/SDL3/SDL_hints.h
index 9d7192699c292..d7bbf3c765a22 100644
--- a/include/SDL3/SDL_hints.h
+++ b/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.
*
diff --git a/src/video/windows/SDL_windowsvideo.c b/src/video/windows/SDL_windowsvideo.c
index 93d3bf60ecf46..9cdd143c291cb 100644
--- a/src/video/windows/SDL_windowsvideo.c
+++ b/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);
}