From 1a133a548a1cadd84ae4237e235ad5cd0be504d4 Mon Sep 17 00:00:00 2001 From: Sour Date: Wed, 20 Dec 2017 19:03:31 -0500 Subject: [PATCH] Input: Make left and right shift behave the same way (as they were meant to) --- Windows/WindowsKeyManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Windows/WindowsKeyManager.cpp b/Windows/WindowsKeyManager.cpp index 6b0931df..f187a377 100644 --- a/Windows/WindowsKeyManager.cpp +++ b/Windows/WindowsKeyManager.cpp @@ -392,7 +392,7 @@ void WindowsKeyManager::SetKeyState(uint16_t scanCode, bool state) uint32_t keyCode = MapVirtualKeyEx(scanCode & 0xFF, MAPVK_VSC_TO_VK, nullptr); if(keyCode >= 0x10 && keyCode <= 0x12) { //Ignore "ext" flag for alt, ctrl & shift - scanCode &= 0xFF; + scanCode = MapVirtualKeyEx(keyCode, MAPVK_VK_TO_VSC, nullptr); } _keyState[scanCode & 0x1FF] = state; }