Skip to main content
Deprecated. This method was removed in GameInput v4 and is not available in the current API. Use IGameInput::EnableBackgroundInput instead.
Sets the focus policy for a game’s input devices.

Syntax

Parameters

policy   _In_
Type: GameInputFocusPolicy
The focus policy to be set.

Return value

Type: void No return.

Remarks

The IGameInput::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 members
IGameInput::EnableBackgroundInput
Overview of GameInput
GameInputFocusPolicy
IGameInput

Version History

Last modified on November 5, 2026