Mouse_v3 Op

Mouse

Get mouse coordinates and events



Full Name
  • Ops.Devices.Mouse.Mouse_v3
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorgithubTest Patches


Example Patch 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 In Editor

INPUT PORTS


Coordinates index (Number:

<i>integer</i>

)
 -1 to 1  Pixel Display  Pixel  0 to 1 
Area index (Number:

<i>integer</i>

)

flip y (Number:

<i>boolean</i>

)

right click prevent default (Number:

<i>boolean</i>

)

Touch support (Number:

<i>boolean</i>

)

Passive Events (Number:

<i>boolean</i>

)

Active (Number:

<i>boolean</i>

)

OUTPUT PORTS


x (Number)
y (Number)
click (Trigger)
click right (Trigger)
Button is down (

<i>boolean</i>

Number)

Mouse is hovering (

<i>boolean</i>

Number)

Movement X (Number)
Movement Y (Number)

Patches using Mouse_v3

  • Examples
  • Public
  • My Patches

Changelog


created opuser avatarpandur - 2022-11-18 09:31
Ops.User.pandur.MouseV3 renamed to Ops.Devices.Mouse.Mouse_v3user avatarpandur - 2022-11-18 11:10
featureadd normalization switch: more normalizing optionsuser avatarpandur - 2022-12-14 17:09
improvementcleanup op ports and remove stuff thats mostly not useduser avatarpandur - 2022-12-14 17:20
improvementbetter default valuesuser avatarpandur - 2022-12-14 17:20
featureadded outputs Movement X/Y outputs the delta of mouse positionuser avatarpandur - 2024-01-31 11:54