Struct Keymod
D struct that wraps SDL_Keymod
containing modifier key states
Constructors
Name | Description |
this
(sdlKeymod)
|
Constructs a dsdl.Keymod from a vanilla SDL_Keymod from bindbc-sdl
|
this
(base, lShift, rShift, lCtrl, rCtrl, lAlt, rAlt, lGUI, rGUI, num, caps, mode, scroll)
|
Constructs a dsdl.Keymod by providing the flags
|
Properties
Name | Type | Description |
alt [get]
|
bool | Checks whether either of the alt keys is pressed
|
ctrl [get]
|
bool | Checks whether either of the ctrl keys is pressed
|
gui [get]
|
bool | Checks whether either of the GUI/"Windows" keys is pressed
|
sdlKeymod [get]
|
ushort | Gets the internal SDL_Keymod representation
|
shift [get]
|
bool | Checks whether either of the shift keys is pressed
|
Methods
Name | Description |
toString
()
|
Formats the dsdl.Keymod into its construction representation:
"dsdl.Keymod(<sdlKeymod>, <lShift>, <rShift>, <lCtrl>, <rCtrl>, <lAlt>, <rAlt>, <lGUI>, <rGUI>, <num>, <caps>, <mode>, <scroll>)"
|