Mercurial > sdl-ios-xcode
diff src/video/wincommon/SDL_sysevents.c @ 327:13fc64213765
*** empty log message ***
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 31 Mar 2002 03:34:16 +0000 |
parents | ec53caed9fb2 |
children | 3d6dd1b7b7ba |
line wrap: on
line diff
--- 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);