Create a new ElementInput instance.
The DOM element.
Optional
options: { useMouse?: boolean; useTouch?: boolean; useXr?: boolean }Optional arguments.
Optional
useMouse?: booleanWhether to allow mouse input. Defaults to true.
Optional
useTouch?: booleanWhether to allow touch input. Defaults to true.
Optional
useXr?: booleanWhether 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.
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.