mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-01-04 10:41:35 -06:00
Fix controller input lingering when unfocused (#210)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user