mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-27 10:57:22 +08:00
Enable background input when using Microsoft GameInput
This commit is contained in:
@@ -279,6 +279,10 @@ static bool GAMEINPUT_JoystickInit(void)
|
|||||||
return false;
|
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,
|
hr = g_pGameInput->RegisterDeviceCallback(NULL,
|
||||||
GameInputKindController,
|
GameInputKindController,
|
||||||
GameInputDeviceConnected,
|
GameInputDeviceConnected,
|
||||||
|
|||||||
Reference in New Issue
Block a user