Lines Matching refs:modstate
378 void SDL_SetModState (SDLMod modstate)
380 SDL_ModState = modstate;
403 Uint16 modstate;
412 modstate = (Uint16)SDL_ModState;
417 keysym->mod = (SDLMod)modstate;
422 modstate ^= KMOD_NUM;
425 if ( ! (modstate&KMOD_NUM) )
427 keysym->mod = (SDLMod)modstate;
430 modstate ^= KMOD_CAPS;
433 if ( ! (modstate&KMOD_CAPS) )
435 keysym->mod = (SDLMod)modstate;
438 modstate |= KMOD_LCTRL;
441 modstate |= KMOD_RCTRL;
444 modstate |= KMOD_LSHIFT;
447 modstate |= KMOD_RSHIFT;
450 modstate |= KMOD_LALT;
453 modstate |= KMOD_RALT;
456 modstate |= KMOD_LMETA;
459 modstate |= KMOD_RMETA;
462 modstate |= KMOD_MODE;
483 modstate &= ~KMOD_LCTRL;
486 modstate &= ~KMOD_RCTRL;
489 modstate &= ~KMOD_LSHIFT;
492 modstate &= ~KMOD_RSHIFT;
495 modstate &= ~KMOD_LALT;
498 modstate &= ~KMOD_RALT;
501 modstate &= ~KMOD_LMETA;
504 modstate &= ~KMOD_RMETA;
507 modstate &= ~KMOD_MODE;
512 keysym->mod = (SDLMod)modstate;
545 SDL_ModState = (SDLMod)modstate;