A Number
system variable that tracks the mouse's vertical movement.
movedY
tracks how many pixels the mouse moves up or down between frames. movedY
will have a negative value if the mouse moves up between frames and a positive value if it moves down. movedY
can be calculated as mouseY - pmouseY
.
Note: movedY
continues updating even when requestPointerLock() is active.
Examples
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
An object that tracks the current state of mouse buttons, showing which buttons are pressed at any given moment.
mouseClicked
A function that's called once after a mouse button is pressed and released.