[Input] Update last controller var in GetKeystroke as well

This commit is contained in:
NicknineTheEagle
2024-10-12 23:18:00 +03:00
committed by Radosław Gliński
parent 060954f0c3
commit e85a59ca90

View File

@@ -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;
}
}