Create a new ElementInput instance.
The DOM element.
Optional
options: { Optional arguments.
Whether to allow mouse input. Defaults to true.
Whether to allow touch input. Defaults to true.
Whether to allow XR input sources. Defaults to true.
Add a ElementComponent to the internal list of ElementComponents that are being checked for input.
The ElementComponent.
Attach mouse and touch events to a DOM element.
The DOM element.
Remove a ElementComponent from the internal list of ElementComponents that are being checked for input.
The ElementComponent.
Handles mouse and touch events for ElementComponents. When input events occur on an ElementComponent this fires the appropriate events on the ElementComponent.