pointer locked?
Pointer locked?
The pointer locked? block is a boolean block in the Pointer Lock extension and is able to be put into blocks with boolean spaces. This block detects if the pointer lock is enabled or disabled, in which it says true or false respectively. The default value for this block is "false".
Workaround
This block can be worked around by using a variable to save if the pointer lock was enabled or not when the set pointer lock () block is used.
define enable pointer lock set [pointer locked? v] to [true] set pointer lock (enabled v)::extension define disable pointer lock set [pointer locked? v] to [false] set pointer lock (disabled v)::extension
These custom blocks would be used in place of the set pointer lock () block.
v • e Pointer Lock Blocks Navigation | |
---|---|
TurboWarp Blocks | set pointer lock () · pointer locked? |