Constructor for the mouse handler.
Optional
element: HTMLElementOptional HTML element to attach the mouse tracking events. By default the "window" object is used.
Flag to indicate if touch events should be created for the mouse instance. (To allow interation on touch based devices).
Canvas attached to this mouse instance used to calculate position and delta in canvas space coordinates.
Mouse movement (coordinates in window space).
DOM element where to attach the mouse events.
Indicates if some button of the mouse was just double-clicked.
Event manager used to manage the mouse events.
Array with mouse buttons status.
Mouse position inside the window (coordinates in window space).
Indicates if the mouse position changed mid-frames.
If true touch events are also considered in the mouse object.
Mouse scroll wheel movement.
Indicates if the wheel position changed mid-frames.
Mouse instance for input in sync with the running application.