Keymod.this

Constructs a dsdl2.Keymod by providing the flags

  1. this()
  2. this(SDL_Keymod sdlKeymod)
  3. 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)
    struct Keymod
    this
    (
    SDL_Keymod base
    ,
    bool lShift = false
    ,
    bool rShift = false
    ,
    bool lCtrl = false
    ,
    bool rCtrl = false
    ,
    bool lAlt = false
    ,
    bool rAlt = false
    ,
    bool lGUI = false
    ,
    bool rGUI = false
    ,
    bool num = false
    ,
    bool caps = false
    ,
    bool mode = false
    ,
    bool scroll = false
    )

Parameters

base SDL_Keymod

base SDL_Keymod to assign (Put 0 for none)

lShift bool

whether the left shift key is pressed

rShift bool

whether the right shift key is pressed

lCtrl bool

whether the left ctrl key is pressed

rCtrl bool

whether the right ctrl key is pressed

lAlt bool

whether the left alt key is pressed

rAlt bool

whether the right alt key is pressed

lGUI bool

whether the left GUI/"Windows" key is pressed

rGUI bool

whether the right GUI/"Windows" key is pressed

num bool

whether num lock is toggled

caps bool

whether caps lock is toggled

mode bool

whether the AltGr keys are toggled

scroll bool

whether scroll lock is toggled

Meta