A Number system variable that tracks the mouse's vertical position.
mouseY keeps track of the mouse's position relative to the top-left corner of the canvas. For example, if the mouse is 50 pixels from the top edge of the canvas, then mouseY will be 50.
If touch is used instead of the mouse, then mouseY will hold the y-coordinate of the most recent touch point.
Examples
This page is generated from the comments in src/events/mouse.js . Please feel free to edit it and submit a pull request!
Related References
doubleClicked
A function that's called once when a mouse button is clicked twice quickly.
exitPointerLock
Exits a pointer lock started with requestPointerLock.
mouseButton
A String system variable that contains the value of the last mouse button pressed.
mouseClicked
A function that's called once after a mouse button is pressed and released.