Mouse_v3 Op
Get mouse coordinates and events
Summary (oneliner)
Full Name
- Ops.Devices.Mouse.Mouse_v3
- Core Op - Official cables op
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
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.
INPUT PORTS
Coordinates index (Number:integer ) -1 to 1 Pixel Display Pixel 0 to 1
Area index (Number:integer )
flip y (Number:boolean )
right click prevent default (Number:boolean )
Touch support (Number:boolean )
Passive Events (Number:boolean )
Active (Number:boolean )
OUTPUT PORTS
x (Number)
y (Number)
click (Trigger)
click right (Trigger)
Button is down (boolean Number)
Mouse is hovering (boolean Number)
Movement X (Number)
Movement Y (Number)
Patches using Mouse_v3
Changelog
created op | pandur - 2022-11-18 09:31 | |
Ops.User.pandur.MouseV3 renamed to Ops.Devices.Mouse.Mouse_v3 | pandur - 2022-11-18 11:10 | |
feature | add normalization switch: more normalizing options | pandur - 2022-12-14 17:09 |
improvement | cleanup op ports and remove stuff thats mostly not used | pandur - 2022-12-14 17:20 |
improvement | better default values | pandur - 2022-12-14 17:20 |
feature | added outputs Movement X/Y outputs the delta of mouse position | pandur - 2024-01-31 11:54 |