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

There is a newer version of this op!

This version will not receive any updates. It is recommended to use a newer version.

Current version: Ops.Devices.Mouse.Mouse_v2

Get mouse coordinates and events

summary (oneliner)



youtube id


related ops


relative (boolean /Number)

If set the position will be relative [-1..1]

normalize (boolean /Number)

Active (boolean /Number)

smooth (boolean /Number)

smoothSpeed (Number)

Area index (integer /Number)

Area (string /Number)

multiply (Number)

flip y (boolean /Number)

right click prevent default (boolean /Number)


x (Number)

The x coordinate of the mouse

y (Number)

The y coordinate of the mouse

button down (boolean Number)

True if the mouse button is hold down

click (Trigger)

Triggers when mouse was clicked / a touch click event occured

Button Up (Trigger)

Triggers when the mouse was released

click right (Trigger)

Triggers when the right mouse button was clicked

mouseOver (boolean Number)

True if the mouse is over the canvas

button (Number)

Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save
Mouse Draw Spline Example:

Using the ScreenPosTo3d op we can convert the mouse coordinates to 3D coordinates. For this you need to disable the Flip Y port of the Mouse op.
Using the ArrayPushValue3X op we add the (converted) x and z coordinates (together with z=0) to the array and draw it with the SimpleSpline op.



fixed: wrong coordinates when using HDPI displays
2019-02-22 - pandur

Examples using Mouse

Public Patches using Mouse