From 83076af25a0ed01e508eade8db984bca346feb80 Mon Sep 17 00:00:00 2001 From: Jonathan Li Date: Sun, 26 Jul 2015 12:31:17 +0100 Subject: [PATCH] windows: Fix detection of Ctrl and Shift key presses Credit for this fix goes to @poodle111 Commit 760de9915bb54d1243f8afc95f7d630ca3eb54ec broke the detection of Ctrl and Shift key presses since it misses the VK_CONTROL and VK_SHIFT virtual keys. --- pcsx2/windows/WinKeyCodes.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcsx2/windows/WinKeyCodes.cpp b/pcsx2/windows/WinKeyCodes.cpp index 9c89a4fe56..035e9c068e 100644 --- a/pcsx2/windows/WinKeyCodes.cpp +++ b/pcsx2/windows/WinKeyCodes.cpp @@ -25,9 +25,11 @@ int TranslateVKToWXK(u32 keysym) switch (keysym) { // Shift, Control, Alt and Menu + case VK_SHIFT: case VK_LSHIFT: case VK_RSHIFT: key_code = WXK_SHIFT; break; + case VK_CONTROL: case VK_LCONTROL: case VK_RCONTROL: key_code = WXK_CONTROL; break;