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. But keep in mind that during an active pointer lock, mouseX and pmouseX are locked, so movedX is based on the MouseEvent's movementX value (which may behave differently in different browsers when the user is zoomed in or out).
Ejemplos
Referencias Relacionadas
doubleClicked
Una función que se ejecuta una vez cuando el botón del mouse se hace doble click rápidamente.
exitPointerLock
Sale de un bloqueo de puntero iniciado con requestPointerLock.
mouseButton
Una variable de tipo String del sistema que contiene el valor del último botón del mouse presionado.
mouseClicked
Una función que se ejecuta una vez después de que se presiona y se suelta un botón del mouse.