src/video/windib/SDL_dibevents.c
changeset 558 2312d983e1fe
parent 523 c210010f50f4
child 572 4c740ee76027
     1.1 --- a/src/video/windib/SDL_dibevents.c	Sat Dec 07 06:54:47 2002 +0000
     1.2 +++ b/src/video/windib/SDL_dibevents.c	Wed Dec 11 05:47:32 2002 +0000
     1.3 @@ -82,7 +82,13 @@
     1.4  					break;
     1.5  				case VK_SHIFT:
     1.6  					/* EXTENDED trick doesn't work here */
     1.7 -					wParam = VK_LSHIFT;
     1.8 +					if ( GetKeyState(VK_LSHIFT) & 0x8000 ) {
     1.9 +						wParam = VK_LSHIFT;
    1.10 +					} else if ( GetKeyState(VK_RSHIFT) & 0x8000 ) {
    1.11 +						wParam = VK_RSHIFT;
    1.12 +					} else {
    1.13 +						/* Huh? */
    1.14 +					}
    1.15  					break;
    1.16  				case VK_MENU:
    1.17  					if ( lParam&EXTENDED_KEYMASK )