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

Mouse_v3 Op

Ops.Devices.Mouse.Mouse_v3


Mouse

Op author: pandur

Get mouse coordinates and events




Inputs

Coordinates index (integer /Number)
Area index (integer /Number)
flip y (boolean /Number)
right click prevent default (boolean /Number)
Touch support (boolean /Number)
Active (boolean /Number)

Outputs

x (Number)
y (Number)
click (Trigger)
click right (Trigger)
Button is down (Number)
Mouse is hovering (Number)
Caught a mistake or want to contribute to the documentation?

Edit Documentation 

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_v3

Changelog


created op
2022-11-18 - pandur
Ops.User.pandur.MouseV3 renamed to Ops.Devices.Mouse.Mouse_v3
2022-11-18 - pandur
featureadd normalization switch: more normalizing options
2022-12-14 - pandur
improvementcleanup op ports and remove stuff thats mostly not used
2022-12-14 - pandur
improvementbetter default values
2022-12-14 - pandur