AbstractCreates a new instance of Controls.
The object the controls should manage (usually the camera).
OptionaldomElement: HTMLElement | SVGElement | nullThe HTML element used for event listeners. (optional)
The HTML element used for event listeners. If not provided via the constructor, .connect must be called
after domElement has been set.
When set to false, the controls will not respond to user input. Default is true.
The 3D object that is managed by the controls.
Connects the controls to the DOM. This method has so called "side effects" since it adds the module's event listeners to the DOM.
Disconnects the controls from the DOM.
Call this method if you no longer want use to the controls. It frees all internal resources and removes all event listeners.
Controls should implement this method if they have to update their internal state per simulation step.
Abstract base class for controls.