Fix controller input lingering when unfocused (#210)

This commit is contained in:
Hyper
2025-01-26 20:49:13 +00:00
committed by GitHub
parent 4d41d8eaae
commit a5db997e5d
7 changed files with 89 additions and 76 deletions

View File

@@ -405,7 +405,8 @@ uint32_t XamInputGetState(uint32_t userIndex, uint32_t flags, XAMINPUT_STATE* st
{
memset(state, 0, sizeof(*state));
uint32_t result = hid::GetState(userIndex, state);
if (hid::IsInputAllowed())
hid::GetState(userIndex, state);
if (GameWindow::s_isFocused)
{