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.
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
there are is no new data incoming but at least it prevents GameInput from zeroing all states.
I tried both
RegisterReadingCallbackas well asGetCurrentReading. Both behave the same.Is this a bug or intended behavior? For the latter I have to move to an older more stable API.