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:
Jonathan Li 2015-07-26 12:31:17 +01:00
parent f2c77ffa08
commit 83076af25a
1 changed files with 2 additions and 0 deletions

View File

@ -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;