Skip to content

RegisterReadingCallback not receiving input without focus for GameInputKindGamepad when SetFocusPolicy is set to GameInputEnableBackgroundInput #104

@OverInfrared

Description

@OverInfrared

Registering a reading callback works without focus on keyboard and mouse. But if I set it up for GameInputKindGamepad. You can see controller input coming through if you poll GetCurrentReading on kind gamepad.

To Reproduce

  1. SetFocusPolicy to GameInputEnableBackgroundInput
  2. Register a reading callback for GameInputKindGamepad
  3. Check get current reading to see if your controller input is actually coming through.
  4. Witness no callback.

Expected behavior
The gamepad input should come through on the callback just like others (keyboard and mouse)

What I'm running
Microsoft Windows 11 Pro
Version 10.0.26100 Build 26100 old :(
GameInput 2.1.26100.6068

Metadata

Metadata

Assignees

No one assigned

    Labels

    gameinputRelated to GameInput API

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions