Skip to content

GameInputKindFlightStick never works on unfocused window #30

@piranha771

Description

@piranha771

I never get GameInput to work when the application is not in focus.

When the window loses focus a last 'change' is fired: setting all axis and buttons states to zero (which in itself is questionable)

Even when setting

constexpr GameInputFocusPolicy kBackgroundInputPolicy = static_cast<GameInputFocusPolicy>(0x00000040);
m_gameInput->SetFocusPolicy(kBackgroundInputPolicy);

there are is no new data incoming but at least it prevents GameInput from zeroing all states.

I tried both RegisterReadingCallback as well as GetCurrentReading. Both behave the same.

Is this a bug or intended behavior? For the latter I have to move to an older more stable API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions