mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-18 08:50:29 +02:00
Don't spam KEY_UP messages.
This commit is contained in:
1 parent
72c9887fc6
commit
01e84df852
1 file changed
+2
-1
@@ -1126,13 +1126,14 @@ namespace MainWindow
|
||||
key.deviceId = DEVICE_ID_MOUSE;
|
||||
|
||||
bool mouseRightBtnPressed = raw->data.mouse.usButtonFlags & RI_MOUSE_RIGHT_BUTTON_DOWN;
|
||||
bool mouseRightBtnReleased = raw->data.mouse.usButtonFlags & RI_MOUSE_RIGHT_BUTTON_UP;
|
||||
|
||||
if(mouseRightBtnPressed) {
|
||||
key.flags = KEY_DOWN;
|
||||
key.keyCode = windowsTransTable[VK_RBUTTON];
|
||||
NativeKey(key);
|
||||
}
|
||||
else {
|
||||
else if(mouseRightBtnReleased) {
|
||||
key.flags = KEY_UP;
|
||||
key.keyCode = windowsTransTable[VK_RBUTTON];
|
||||
NativeKey(key);
|
||||
|
||||
Reference in new issue
Block a user