set pointer lock ()
Set pointer lock ()
The set pointer lock () block is a stack block in the Pointer Lock Extension. It has 2 states of existence, those being:
- enabled - Locks cursor (default)
- disabled - Allows cursor to go off stage
Documentation
Makes the mouse cursor lock into the stage, not letting it leave, plus making it invisible.
It also makes the mouse x and y blocks report the change in mouse movement since the last frame instead of the position of the mouse.
v • e Pointer Lock Blocks Navigation | |
---|---|
TurboWarp Blocks | set pointer lock () · pointer locked? |