Keymod.this - multiple declarations
Function Keymod.this
Constructs a dsdl from a vanilla SDL_Keymod from bindbc-sdl
ref this
(
ushort sdlKeymod
) @safe;
Parameters
| Name | Description |
|---|---|
| sdlKeymod | the SDL_Keymod flag |
Function Keymod.this
Constructs a dsdl by providing the flags
ref this
(
ushort 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
) @safe;
Parameters
| Name | Description |
|---|---|
| base | base SDL_Keymod to assign (Put 0 for none) |
| lShift | whether the left shift key is pressed |
| rShift | whether the right shift key is pressed |
| lCtrl | whether the left ctrl key is pressed |
| rCtrl | whether the right ctrl key is pressed |
| lAlt | whether the left alt key is pressed |
| rAlt | whether the right alt key is pressed |
| lGUI | whether the left GUI/"Windows" key is pressed |
| rGUI | whether the right GUI/"Windows" key is pressed |
| num | whether num lock is toggled |
| caps | whether caps lock is toggled |
| mode | whether the AltGr keys are toggled |
| scroll | whether scroll lock is toggled |