mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-30 19:24:23 +01:00
win: don't queue up key presses at all, send them instantly.
This commit is contained in:
1 parent
7e5a68ab16
commit
cb87340e71
3 files changed
+16
-38
No files matched your search
@@ -144,27 +144,7 @@ int KeyboardDevice::UpdateState(InputState &input_state) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (size_t i = 0; i < downKeys.size(); i++) {
|
||||
KeyInput key;
|
||||
key.deviceId = DEVICE_ID_KEYBOARD;
|
||||
key.flags = KEY_DOWN;
|
||||
key.keyCode = windowsTransTable[downKeys[i]];
|
||||
if (key.keyCode)
|
||||
NativeKey(key);
|
||||
}
|
||||
downKeys.clear();
|
||||
|
||||
for (size_t i = 0; i < upKeys.size(); i++) {
|
||||
KeyInput key;
|
||||
key.deviceId = DEVICE_ID_KEYBOARD;
|
||||
key.flags = KEY_UP;
|
||||
key.keyCode = windowsTransTable[upKeys[i]];
|
||||
if (key.keyCode)
|
||||
NativeKey(key);
|
||||
}
|
||||
upKeys.clear();
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user