mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 11:28:15 +00:00
Fixed Windows build
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user