Title

Global

Type Definitions

object

# ButtonEvent

Button Event.

Properties:
Name Type Description
button string

Name of the button that was pressed. May be 'north', 'east', 'south', 'west' or 'multi-touch'.

hold boolean

true when the button was held down for longer than HOLD_REPEAT_TIMEOUT_MS milliseconds.

doubleTap boolean

true when the button was tapped twice in quick succession.

buttons array.<string>

List of buttons that were tapped simultaneously. This only contains items for the 'multi-touch' event.

View Source index.js, line 262