Pointer

Read pointer position, button state, scroll, pressure, and tilt from a mouse, trackpad, or pen tablet.

What it does

Pointer reads the mouse, trackpad or pen tablet live: cursor position, button states, scroll, pen pressure and pen tilt. Position is available three ways, as a 3D scene point where the cursor lands on the canvas (following pan and camera), in viewport pixels, or normalised 0–1 across the viewport. It also reports frame-to-frame velocity and a hovering flag.

Being a live input, its outputs update continuously. There is nothing to trigger or bake.

When to use it

ParameterTypeDefault
coordinate_spaceString"scene"

Gotchas

hovering goes to 0 the moment the cursor leaves the viewport. Gate click or drag logic on it so effects do not fire from clicks elsewhere in the app.

Worked example

  1. Add a Pointer node.

  2. Wire position into a shape or particle source to make it follow the cursor.

  3. Wire left_button into a gate so an effect only runs while the mouse is held down.

  4. For flat pixel coordinates instead of a 3D scene point, switch Coordinate Space to screen or normalized.

See also

Keyboard · Gamepad Input · MIDI Input · Scene values