mojo:mojo.input.KeyboardDevice.KeyPressed
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. |