Input.isKeyDown

Check if a given key is down.

class Input
static final
bool
isKeyDown
(
uint keyCode
,
bool checkPrevious = false
)

Parameters

keyCode uint

The code of the key to check.

checkPrevious bool

Whether or not to make sure the key was down last frame.

Meta