Input modifier state

Variables

@:value(false)none:Bool = false

no modifiers are down

@:value(false)lshift:Bool = false

left shift key is down

@:value(false)rshift:Bool = false

right shift key is down

@:value(false)lctrl:Bool = false

left ctrl key is down

@:value(false)rctrl:Bool = false

right ctrl key is down

@:value(false)lalt:Bool = false

left alt/option key is down

@:value(false)ralt:Bool = false

right alt/option key is down

@:value(false)lmeta:Bool = false

left windows/command key is down

@:value(false)rmeta:Bool = false

right windows/command key is down

@:value(false)num:Bool = false

numlock is enabled

@:value(false)caps:Bool = false

capslock is enabled

@:value(false)mode:Bool = false

mode key is down

@:value(false)ctrl:Bool = false

left or right ctrl key is down

@:value(false)shift:Bool = false

left or right shift key is down

@:value(false)alt:Bool = false

left or right alt/option key is down

Methods