The X position of the cursor in the window.
The Y position of the cursor in the window.
Whether the left button is down or not.
Whether the left button is up or not.
Evaluate to true when a left click occurs.
Whether the middle (wheel) button is down or not.
Whether the middle button (wheel) is up or not.
Evaluate to true when a middle (wheel) click occurs.
The cursor movement in the X axis, in pixels.
The cursor movement in the Y axis, in pixels.
Whether the right button is down or not.
Whether the right button is up or not.
Evaluate to true when a right click occurs.
Evaluate to true when the user is scrolling down.
Evaluate to true when the user is scrolling left.
Evaluate to true when the user is scrolling right.
Evaluate to true when the user is scrolling up.
The scroll movement in the X axis.
Possible values: -1 (scroll to -x), 0 (no scroll x), 1 (scroll to +x).
The scroll movement in the Y axis.
Possible values: -1 (scroll to -y), 0 (no scroll y), 1 (scroll to +y).
Used internally to initialise the mouse input.
The game's canvas.
Used internally to update the mouse input states.
Generated using TypeDoc
Map the mouse input.