From 6aad668a38502f9aa7624a8d1936ced5f0e6ccd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 6 Aug 2026 19:45:42 +0200 Subject: [PATCH] iOS: Fix always-true condition in the gsEvent key decoder "else if (GSEVENT_TYPE_KEYDOWN)" tests a constant, so every gsEvent that wasn't a key up - modifier events (type 12) in particular - was delivered to NativeKey as a key down. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01JZk5y4Fzw811WJoNWZb8Sc --- ios/PPSSPPUIApplication.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/PPSSPPUIApplication.mm b/ios/PPSSPPUIApplication.mm index 759adce34d..decb39c617 100644 --- a/ios/PPSSPPUIApplication.mm +++ b/ios/PPSSPPUIApplication.mm @@ -81,7 +81,7 @@ key.keyCode = getSmartKeyboardMap((int)eventScanCode); key.deviceId = DEVICE_ID_KEYBOARD; NativeKey(key); - } else if (GSEVENT_TYPE_KEYDOWN) { + } else if (eventType == GSEVENT_TYPE_KEYDOWN) { struct KeyInput key; key.flags = KeyInputFlags::DOWN; key.keyCode = getSmartKeyboardMap((int)eventScanCode);