Create a new ElementInput instance.
The DOM element.
Optionaloptions: { useMouse?: boolean; useTouch?: boolean; useXr?: boolean }Optional arguments.
OptionaluseMouse?: booleanWhether to allow mouse input. Defaults to true.
OptionaluseTouch?: booleanWhether to allow touch input. Defaults to true.
OptionaluseXr?: 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.
Attach mouse and touch events to a DOM element.
The DOM element.
Remove mouse and touch events from the DOM element that it is attached to.
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.