Skip to main content

Input

Methods

setup

Initializes input detection and sets initial keydown

input.setup(key: string) -> null

isPressed

Returns true if one of the keys is currently pressed.

input.isPressed(keys: array) -> boolean