src/video/wincommon/SDL_sysevents.c
changeset 1282 217f5d5a49e5
parent 1280 f61f045343d3
child 1287 15a89a0c52bf
equal deleted inserted replaced
1281:644b39bf7253 1282:217f5d5a49e5
   212 
   212 
   213 	state = KMOD_NONE;
   213 	state = KMOD_NONE;
   214 	if ( GetKeyboardState(keyboard) ) {
   214 	if ( GetKeyboardState(keyboard) ) {
   215 		if ( keyboard[VK_LSHIFT] & 0x80) {
   215 		if ( keyboard[VK_LSHIFT] & 0x80) {
   216 			state |= KMOD_LSHIFT;
   216 			state |= KMOD_LSHIFT;
       
   217 			kstate[SDLK_LSHIFT] = SDL_PRESSED;
   217 		}
   218 		}
   218 		if ( keyboard[VK_RSHIFT] & 0x80) {
   219 		if ( keyboard[VK_RSHIFT] & 0x80) {
   219 			state |= KMOD_RSHIFT;
   220 			state |= KMOD_RSHIFT;
       
   221 			kstate[SDLK_RSHIFT] = SDL_PRESSED;
   220 		}
   222 		}
   221 		if ( keyboard[VK_LCONTROL] & 0x80) {
   223 		if ( keyboard[VK_LCONTROL] & 0x80) {
   222 			state |= KMOD_LCTRL;
   224 			state |= KMOD_LCTRL;
       
   225 			kstate[SDLK_LCTRL] = SDL_PRESSED;
   223 		}
   226 		}
   224 		if ( keyboard[VK_RCONTROL] & 0x80) {
   227 		if ( keyboard[VK_RCONTROL] & 0x80) {
   225 			state |= KMOD_RCTRL;
   228 			state |= KMOD_RCTRL;
       
   229 			kstate[SDLK_RCTRL] = SDL_PRESSED;
   226 		}
   230 		}
   227 		if ( keyboard[VK_LMENU] & 0x80) {
   231 		if ( keyboard[VK_LMENU] & 0x80) {
   228 			state |= KMOD_LALT;
   232 			state |= KMOD_LALT;
       
   233 			kstate[SDLK_LALT] = SDL_PRESSED;
   229 		}
   234 		}
   230 		if ( keyboard[VK_RMENU] & 0x80) {
   235 		if ( keyboard[VK_RMENU] & 0x80) {
   231 			state |= KMOD_RALT;
   236 			state |= KMOD_RALT;
       
   237 			kstate[SDLK_RALT] = SDL_PRESSED;
   232 		}
   238 		}
   233 		if ( keyboard[VK_NUMLOCK] & 0x01) {
   239 		if ( keyboard[VK_NUMLOCK] & 0x01) {
   234 			state |= KMOD_NUM;
   240 			state |= KMOD_NUM;
   235 			kstate[SDLK_NUMLOCK] = SDL_PRESSED;
   241 			kstate[SDLK_NUMLOCK] = SDL_PRESSED;
   236 		}
   242 		}