mojo.input.KeyboardDevice.KeyPressed - nitrologic/monkey2 GitHub Wiki
mojo::mojo.input.mojo.input.KeyboardDevice.KeyPressed
monkey:monkey.types.Bool( key:mojo:mojo.input.Key,repeating:monkey:monkey.types.Bool=false )
Method 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. |