diff 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
line wrap: on
line diff
--- a/src/video/windib/SDL_dibevents.c	Sat Dec 07 06:54:47 2002 +0000
+++ b/src/video/windib/SDL_dibevents.c	Wed Dec 11 05:47:32 2002 +0000
@@ -82,7 +82,13 @@
 					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 )