changeset 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 0ce5a68278fd
children b528214c8c9a
files src/video/windib/SDL_dibevents.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
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 )