AlphaThe shape of the input source.
Alpha
The shape of the input source.
The input frame data, where each key corresponds to an input delta.
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.
AlphadeltasAlpha
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
Returns the current frame state and resets the deltas to zero.
The base class for all input devices. An input source is an InputFrame that fills its own deltas from DOM events or device polling once attach is given an element, and stops on detach. Call InputFrame#read once per frame to take the accumulated deltas. The built-in sources are KeyboardMouseSource, GamepadSource, MultiTouchSource, SingleGestureSource and DualGestureSource; subclass this to add another device.
Template: T
The shape of the input source.