beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

PointerLock Op

PointerLock

locks the pointer to the canvas and hides the cursor


The Pointer Lock API provides input methods based on the movement of the mouse over time (i.e., deltas), not just the absolute position of the mouse cursor in the viewport. It gives you access to raw mouse movement, locks the target of mouse events to a single element, eliminates limits on how far mouse movement can go in a single direction, and removes the cursor from view. It is ideal for first-person 3D games, for example.


Edit Documentation

Full Name
  • Ops.Devices.Mouse.PointerLock
Visibility
  • Core Op - Official cables op
AuthorCompatibilityTest Patches


 

INPUT PORTS


Render (Trigger)
Start (Trigger)

OUTPUT PORTS


Next (Trigger)
Supported (boolean Number)
Is Locked (boolean Number)

Usages of PointerLock

  • Examples
  • Public
  • My Patches
  • Ops

Changelog


created opuser avatarpandur - 2024-01-31
renameOps.Patch.Pds6IV2.PointerLock renamed to Ops.Devices.Mouse.PointerLockuser avatarpandur - 2024-01-31