Fixed Windows build

This commit is contained in:
Sam Lantinga
2025-08-04 13:04:17 -07:00
parent 9a71e3fd50
commit 7bb045ca22

View File

@@ -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,