[Input] Fix doubling with any enabled.

Keystrokes from multiple backends where mixed.
Effectively doubling all keystroke inputs.
This commit is contained in:
Joel Linn 2020-06-03 19:32:21 +02:00 committed by Rick Gibbed
parent 993393a939
commit 41cf7c7a63
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ X_RESULT InputSystem::GetKeystroke(uint32_t user_index, uint32_t flags,
if (result != X_ERROR_DEVICE_NOT_CONNECTED) {
any_connected = true;
}
if (result == X_ERROR_SUCCESS) {
if (result == X_ERROR_SUCCESS || result == X_ERROR_EMPTY) {
return result;
}
}