comparison src/video/windib/SDL_dibevents.c @ 558:2312d983e1fe

Fixed left/right shift detection on Windows (thanks Mike!)
author Sam Lantinga <slouken@libsdl.org>
date Wed, 11 Dec 2002 05:47:32 +0000
parents c210010f50f4
children 4c740ee76027
comparison
equal deleted inserted replaced
557:0ce5a68278fd 558:2312d983e1fe
80 else 80 else
81 wParam = VK_LCONTROL; 81 wParam = VK_LCONTROL;
82 break; 82 break;
83 case VK_SHIFT: 83 case VK_SHIFT:
84 /* EXTENDED trick doesn't work here */ 84 /* EXTENDED trick doesn't work here */
85 wParam = VK_LSHIFT; 85 if ( GetKeyState(VK_LSHIFT) & 0x8000 ) {
86 wParam = VK_LSHIFT;
87 } else if ( GetKeyState(VK_RSHIFT) & 0x8000 ) {
88 wParam = VK_RSHIFT;
89 } else {
90 /* Huh? */
91 }
86 break; 92 break;
87 case VK_MENU: 93 case VK_MENU:
88 if ( lParam&EXTENDED_KEYMASK ) 94 if ( lParam&EXTENDED_KEYMASK )
89 wParam = VK_RMENU; 95 wParam = VK_RMENU;
90 else 96 else