src/video/wincommon/SDL_sysevents.c
changeset 327 13fc64213765
parent 304 ec53caed9fb2
child 332 3d6dd1b7b7ba
--- a/src/video/wincommon/SDL_sysevents.c	Sun Mar 31 03:34:11 2002 +0000
+++ b/src/video/wincommon/SDL_sysevents.c	Sun Mar 31 03:34:16 2002 +0000
@@ -131,6 +131,7 @@
 #ifndef NO_GETKEYBOARDSTATE
 	SDLMod state;
 	BYTE keyboard[256];
+	Uint8 *kstate = SDL_GetKeyState(NULL);
 
 	state = KMOD_NONE;
 	if ( GetKeyboardState(keyboard) ) {
@@ -154,9 +155,11 @@
 		}
 		if ( keyboard[VK_NUMLOCK] & 0x01) {
 			state |= KMOD_NUM;
+			kstate[SDLK_NUMLOCK] = SDL_PRESSED;
 		}
 		if ( keyboard[VK_CAPITAL] & 0x01) {
 			state |= KMOD_CAPS;
+			kstate[SDLK_CAPSLOCK] = SDL_PRESSED;
 		}
 	}
 	SDL_SetModState(state);