From e85a59ca9088c58ad05788f3effbe4806a313177 Mon Sep 17 00:00:00 2001 From: NicknineTheEagle Date: Sat, 12 Oct 2024 23:18:00 +0300 Subject: [PATCH] [Input] Update last controller var in GetKeystroke as well --- src/xenia/hid/input_system.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xenia/hid/input_system.cc b/src/xenia/hid/input_system.cc index 731237821..fd24c4288 100644 --- a/src/xenia/hid/input_system.cc +++ b/src/xenia/hid/input_system.cc @@ -142,6 +142,10 @@ X_RESULT InputSystem::GetKeystroke(uint32_t user_index, uint32_t flags, } if (result == X_ERROR_SUCCESS || result == X_ERROR_EMPTY) { UpdateUsedSlot(driver.get(), user_index, any_connected); + + if (result == X_ERROR_SUCCESS) { + last_used_slot = user_index; + } return result; } }