mojo.input.KeyboardDevice.KeyDown - nitrologic/monkey2 GitHub Wiki

mojo::mojo.input.mojo.input.KeyboardDevice.KeyDown

Method KeyDown:monkey:monkey.types.Bool( key:mojo:mojo.input.Key )

Checks the current up/down state of a key.

Returns true if key is currently held down.

If key is a raw key, the state of the key as it is physically positioned on US keyboards is returned.

Parameters
key key Key to check.