Input: Make left and right shift behave the same way (as they were meant to)

This commit is contained in:
Sour 2017-12-20 19:03:31 -05:00
parent bba613728c
commit 1a133a548a

View file

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