mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
Enable background input when using Microsoft GameInput
This commit is contained in:
parent
483b8d4d98
commit
bba6555bf1
1 changed files with 4 additions and 0 deletions
|
|
@ -279,6 +279,10 @@ static bool GAMEINPUT_JoystickInit(void)
|
|||
return false;
|
||||
}
|
||||
|
||||
// Allow background controller input
|
||||
// SDL manages focus policy at a higher level, so we can set this unconditionally.
|
||||
g_pGameInput->SetFocusPolicy(GameInputEnableBackgroundInput | GameInputEnableBackgroundGuideButton | GameInputEnableBackgroundShareButton);
|
||||
|
||||
hr = g_pGameInput->RegisterDeviceCallback(NULL,
|
||||
GameInputKindController,
|
||||
GameInputDeviceConnected,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue