Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IGameInput::SetFocusPolicy has no effect #30

Open
nice-sprite opened this issue Sep 12, 2022 · 0 comments
Open

IGameInput::SetFocusPolicy has no effect #30

nice-sprite opened this issue Sep 12, 2022 · 0 comments
Labels
gameinput Related to GameInput API

Comments

@nice-sprite
Copy link

HRESULT result = GameInputCreate(game_input.GetAddressOf());
game_input->SetFocusPolicy(GameInputDisableBackgroundInput);

The above code results in input still being reported through

game_input->GetCurrentReading(GameInputKindGamepad, gamepad.Get(), &reading))

This is not the expected behavior. The documentation states that GameInput should receive "at-rest" values when background input is disabled here, but it does not respect the current FocusPolicy.

Related issue with the SetFocusPolicy documentation: #26

System info:

OS Name: Microsoft Windows 10 Pro
Version 10.0.19044 Build 19044
Hardware Abstraction Layer Version = "10.0.19041.1806"
GDK June 2022 Update 2

@walbourn walbourn added the gameinput Related to GameInput API label Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gameinput Related to GameInput API
Projects
None yet
Development

No branches or pull requests

2 participants