Keymod

D struct that wraps SDL_Keymod containing modifier key states

Constructors

this
this()
Undocumented in source.
this
this(SDL_Keymod sdlKeymod)

Constructs a dsdl2.Keymod from a vanilla SDL_Keymod from bindbc-sdl

this
this(SDL_Keymod base, bool lShift, bool rShift, bool lCtrl, bool rCtrl, bool lAlt, bool rAlt, bool lGUI, bool rGUI, bool num, bool caps, bool mode, bool scroll)

Constructs a dsdl2.Keymod by providing the flags

Members

Functions

alt
bool alt()

Checks whether either of the alt keys is pressed

ctrl
bool ctrl()

Checks whether either of the ctrl keys is pressed

gui
bool gui()

Checks whether either of the GUI/"Windows" keys is pressed

sdlKeymod
SDL_Keymod sdlKeymod()

Gets the internal SDL_Keymod representation

shift
bool shift()

Checks whether either of the shift keys is pressed

toString
string toString()

Formats the dsdl2.Keymod into its construction representation: "dsdl2.Keymod(<sdlKeymod>, <lShift>, <rShift>, <lCtrl>, <rCtrl>, <lAlt>, <rAlt>, <lGUI>, <rGUI>, <num>, <caps>, <mode>, <scroll>)"

Meta