src/video/wincommon/SDL_sysevents.c
changeset 327 13fc64213765
parent 304 ec53caed9fb2
child 332 3d6dd1b7b7ba
     1.1 --- a/src/video/wincommon/SDL_sysevents.c	Sun Mar 31 03:34:11 2002 +0000
     1.2 +++ b/src/video/wincommon/SDL_sysevents.c	Sun Mar 31 03:34:16 2002 +0000
     1.3 @@ -131,6 +131,7 @@
     1.4  #ifndef NO_GETKEYBOARDSTATE
     1.5  	SDLMod state;
     1.6  	BYTE keyboard[256];
     1.7 +	Uint8 *kstate = SDL_GetKeyState(NULL);
     1.8  
     1.9  	state = KMOD_NONE;
    1.10  	if ( GetKeyboardState(keyboard) ) {
    1.11 @@ -154,9 +155,11 @@
    1.12  		}
    1.13  		if ( keyboard[VK_NUMLOCK] & 0x01) {
    1.14  			state |= KMOD_NUM;
    1.15 +			kstate[SDLK_NUMLOCK] = SDL_PRESSED;
    1.16  		}
    1.17  		if ( keyboard[VK_CAPITAL] & 0x01) {
    1.18  			state |= KMOD_CAPS;
    1.19 +			kstate[SDLK_CAPSLOCK] = SDL_PRESSED;
    1.20  		}
    1.21  	}
    1.22  	SDL_SetModState(state);