Syntax
Parameters
policy   _In_Type: GameInputFocusPolicy The focus policy to be set.
Return value
Type: void No return.Remarks
TheIGameInput::SetFocusPolicy method sets the focus policy for a game’s input devices. The focus policy determines whether the input devices provide input based on the focus of the game. Focus refers to whether the game is selected as the main focus or if it is currently running in the background while another application has focus. For intermediate and advanced use-cases of the GameInput API, see Advanced GameInput topics.
Focus policy only applies on Windows.
On PC, when the GameInput runtime is sideloaded with the application rather than installed on the system, only GameInputDefaultFocusPolicy and GameInputEnableBackgroundInput are accepted. Other values, including any combination of flags, are ignored. For more information, see GameInput sideloading.
See also
Deprecated GameInput API membersIGameInput::EnableBackgroundInput
Overview of GameInput
GameInputFocusPolicy
IGameInput
