logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_Keymod - Valid key modifiers (possibly OR'd together).

Availability

       This datatype is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.20                                  SDL_Keymod(3type)

Name

       SDL_Keymod - Valid key modifiers (possibly OR'd together).

Synopsis

#include<SDL3/SDL_keycode.h>typedefUint16SDL_Keymod;#defineSDL_KMOD_NONE0x0000u/**<nomodifierisapplicable.*/#defineSDL_KMOD_LSHIFT0x0001u/**<theleftShiftkeyisdown.*/#defineSDL_KMOD_RSHIFT0x0002u/**<therightShiftkeyisdown.*/#defineSDL_KMOD_LEVEL50x0004u/**<theLevel5Shiftkeyisdown.*/#defineSDL_KMOD_LCTRL0x0040u/**<theleftCtrl(Control)keyisdown.*/#defineSDL_KMOD_RCTRL0x0080u/**<therightCtrl(Control)keyisdown.*/#defineSDL_KMOD_LALT0x0100u/**<theleftAltkeyisdown.*/#defineSDL_KMOD_RALT0x0200u/**<therightAltkeyisdown.*/#defineSDL_KMOD_LGUI0x0400u/**<theleftGUIkey(oftentheWindowskey)isdown.*/#defineSDL_KMOD_RGUI0x0800u/**<therightGUIkey(oftentheWindowskey)isdown.*/#defineSDL_KMOD_NUM0x1000u/**<theNumLockkey(maybelocatedonanextendedkeypad)isdown.*/#defineSDL_KMOD_CAPS0x2000u/**<theCapsLockkeyisdown.*/#defineSDL_KMOD_MODE0x4000u/**<the!AltGrkeyisdown.*/#defineSDL_KMOD_SCROLL0x8000u/**<theScrollLockkeyisdown.*/#defineSDL_KMOD_CTRL(SDL_KMOD_LCTRL|SDL_KMOD_RCTRL)/**<AnyCtrlkeyisdown.*/#defineSDL_KMOD_SHIFT(SDL_KMOD_LSHIFT|SDL_KMOD_RSHIFT)/**<AnyShiftkeyisdown.*/#defineSDL_KMOD_ALT(SDL_KMOD_LALT|SDL_KMOD_RALT)/**<AnyAltkeyisdown.*/#defineSDL_KMOD_GUI(SDL_KMOD_LGUI|SDL_KMOD_RGUI)/**<AnyGUIkeyisdown.*/#endif/*SDL_keycode_h_*/

See Also