mirror of
https://github.com/yawut/SDL.git
synced 2026-04-19 15:17:23 -05:00
Fixed left/right shift detection on Windows (thanks Mike!)
This commit is contained in:
parent
d1a8d6261c
commit
6c06857010
|
|
@ -82,7 +82,13 @@ LONG
|
|||
break;
|
||||
case VK_SHIFT:
|
||||
/* EXTENDED trick doesn't work here */
|
||||
wParam = VK_LSHIFT;
|
||||
if ( GetKeyState(VK_LSHIFT) & 0x8000 ) {
|
||||
wParam = VK_LSHIFT;
|
||||
} else if ( GetKeyState(VK_RSHIFT) & 0x8000 ) {
|
||||
wParam = VK_RSHIFT;
|
||||
} else {
|
||||
/* Huh? */
|
||||
}
|
||||
break;
|
||||
case VK_MENU:
|
||||
if ( lParam&EXTENDED_KEYMASK )
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user