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

Mouse_v2 Op

Ops.Devices.Mouse.Mouse_v2


Mouse

Op author: pandur

Get mouse coordinates and events


summary (oneliner)



doc

issues

example patch id

youtube id

caniuse query

collections

related ops

Inputs

Active (boolean /Number)

Behavior

relative (boolean /Number)

normalize (boolean /Number)

flip y (boolean /Number)

Area index (integer /Number)

right click prevent default (boolean /Number)

Touch support (boolean /Number)

Smoothing

smooth (boolean /Number)

smoothSpeed (Number)

multiply (Number)

Outputs

x (Number)

y (Number)

button down (boolean Number)

click (Trigger)

Button Up (Trigger)

click right (Trigger)

mouseOver (boolean Number)

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.

Open Example In Editor


Patches using Mouse_v2

Changelog


created op
2020-02-19 - pandur