[Input] Update last controller var in GetKeystroke as well
This commit is contained in:
committed by
Radosław Gliński
parent
060954f0c3
commit
e85a59ca90
@@ -142,6 +142,10 @@ X_RESULT InputSystem::GetKeystroke(uint32_t user_index, uint32_t flags,
|
|||||||
}
|
}
|
||||||
if (result == X_ERROR_SUCCESS || result == X_ERROR_EMPTY) {
|
if (result == X_ERROR_SUCCESS || result == X_ERROR_EMPTY) {
|
||||||
UpdateUsedSlot(driver.get(), user_index, any_connected);
|
UpdateUsedSlot(driver.get(), user_index, any_connected);
|
||||||
|
|
||||||
|
if (result == X_ERROR_SUCCESS) {
|
||||||
|
last_used_slot = user_index;
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user