beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
op id:0bf51f3e-3161-4cc5-aecf-6e9160089fd2
Get mouse coordinates and events

summary (oneliner)

doc

issues

youtube id

op collections: hardware  

collections

Related ops:  

related ops

Inputs

relative (boolean Number)

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


normalize (boolean Number)

Active (boolean Number)

smooth (boolean Number)

smoothSpeed (Number)

Area (string Number)

multiply (Number)

flip y (boolean Number)

Outputs

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 (Function)

Triggers when mouse was clicked / a touch click event occured


Button Up (Function)

Triggers when the mouse was released


click right (Function)

Triggers when the right mouse button was clicked


mouseOver (boolean Number)

True if the mouse is over the canvas


button (Number)

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.



Credits

Caught a mistake or want to contribute to the documentation?


Edit this documentcancel save

Examples using Mouse

Public Patches using Mouse