Skip to content

Commit

Permalink
Fixed left/right shift detection on Windows (thanks Mike!)
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Dec 11, 2002
1 parent 82478ed commit 468715b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/video/windib/SDL_dibevents.c
Expand Up @@ -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 )
Expand Down

0 comments on commit 468715b

Please sign in to comment.