Keyboard.isKeyPressed

Check if a key is pressed. *

class Keyboard
static
bool
isKeyPressed

Parameters

key
Type: Key

Key to check *

Return Value

Type: bool

true if the key is pressed, false otherwise.

Meta