From 7bb045ca221e55076d08f9a8b546b2c47d118964 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 4 Aug 2025 13:04:17 -0700 Subject: [PATCH] Fixed Windows build --- src/joystick/gdk/SDL_gameinputjoystick.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/joystick/gdk/SDL_gameinputjoystick.cpp b/src/joystick/gdk/SDL_gameinputjoystick.cpp index e75a5bab30..7b4cc2e900 100644 --- a/src/joystick/gdk/SDL_gameinputjoystick.cpp +++ b/src/joystick/gdk/SDL_gameinputjoystick.cpp @@ -279,9 +279,11 @@ static bool GAMEINPUT_JoystickInit(void) return false; } +#if GAMEINPUT_API_VERSION >= 2 // Allow background controller input // SDL manages focus policy at a higher level, so we can set this unconditionally. g_pGameInput->SetFocusPolicy(GameInputEnableBackgroundInput | GameInputEnableBackgroundGuideButton | GameInputEnableBackgroundShareButton); +#endif hr = g_pGameInput->RegisterDeviceCallback(NULL, GameInputKindController,