mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-13 17:50:13 +01:00
windows: Fix detection of Ctrl and Shift key presses
Credit for this fix goes to @poodle111
Commit 760de9915b broke the detection of
Ctrl and Shift key presses since it misses the VK_CONTROL and VK_SHIFT
virtual keys.
This commit is contained in:
1 parent
f2c77ffa08
commit
83076af25a
1 file changed
+2
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user