AlphaAlpha
Protected Alpha_Protected Alpha_Whether the source reads touch input. Such a source sets the touch-action style of its
element to none while attached, so the browser does not take a touch on the element as a
page scroll or zoom.
AlphadeltasThe button deltas, represented as an array of button states (0 or 1).
The left stick deltas, represented as an array of [x, y] coordinates.
The right stick deltas, represented as an array of [x, y] coordinates.
Static Readonly AlphabuttonThe button codes (based on Xbox controller layout).
Alpha
Alpha
Alpha
Fires an event with the given name and arguments.
The event name to fire.
The arguments to pass to the event listeners.
Alpha
Removes an event listener for the specified event.
The event name to stop listening for.
The callback function to remove.
Alpha
Adds an event listener for the specified event.
The event name to listen for.
The callback function to execute when the event is triggered.
Alpha
The button deltas, represented as an array of button states (0 or 1).
The left stick deltas, represented as an array of [x, y] coordinates.
The right stick deltas, represented as an array of [x, y] coordinates.
Game pad input source class. Each read polls the connected gamepads and yields
buttonsdeltas for the buttons listed in buttonCode, andleftStickandrightStickdeltas as[x, y].