Mouse instance for sync input the mouse should be updated everytime before.
Automatically calculates the diff of position between frames.
The mouse object provided by scripts is automatically updated by the runtime handler.
Create mouse events.
Dispose mouse events.
Check if mouse is inside attached canvas (updated async).
True if mouse is currently inside the canvas
Element to be used for coordinates calculation relative to that canvas.
Canvas to be attached to the Mouse instance
Set mouse lock, if true mouse lock will be request, if false the mouse will be released.
If true pointer lock will be requested for the canvas attached to the Mouse instance
Update mouse buttons state, position, wheel and delta synchronously.
Update a mouse button.
Update mouse position.
Canvas attached to this mouse instance used to calculate position and delta in element space coordinates.
Mouse movement (coordinates in window space).
DOM element where to attach the mouse events.
Indicates a button of the mouse was double clicked.
Event manager responsible for updating the raw data variables.
Diferent events are used depending on the host platform.
When the update method is called the raw data is reset.
Array with mouse buttons status.
Mouse position inside of the window (coordinates in window space).
Mouse scroll wheel movement.