Struct Keymod

D struct that wraps SDL_Keymod containing modifier key states

struct Keymod ;

Constructors

NameDescription
this (sdlKeymod) Constructs a dsdl2.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 dsdl2.Keymod by providing the flags

Properties

NameTypeDescription
alt[get] boolChecks whether either of the alt keys is pressed
ctrl[get] boolChecks whether either of the ctrl keys is pressed
gui[get] boolChecks whether either of the GUI/"Windows" keys is pressed
sdlKeymod[get] ushortGets the internal SDL_Keymod representation
shift[get] boolChecks whether either of the shift keys is pressed

Methods

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