Creates a new Mouse instance. Adds event listeners for mousedown, mouseup, mousemove and scroll events.
ReadonlyononAnyButtonPress is an event that is triggered when any device button is pressed. Add observers and emit the event.
ReadonlyonReadonlyonEvent triggered when the left mouse button is clicked.
ReadonlyonEvent triggered when the mouse is moved.
ReadonlyonReadonlyonEvent triggered when the right mouse button is clicked.
ReadonlyonEvent triggered when the mouse is scrolled.
Represents a mouse device. It emits events when mouse buttons are clicked or the mouse is moved.