Mojo input keyboarddevice keypressed
mojo:mojo.input.KeyboardDevice.KeyPressed
Method KeyPressed:Bool( key:Key,repeating:Bool=false )#
Checks if a key was pressed.
Returns true if key
was pressed since the last call to KeyPressed with the same key.
If key
is a raw key, the state of the key as it is physically positioned on US keyboards is returned.
if repeating
is true, then key repeats are included.
Parameters | |
---|---|
key |
key Key to check. |