Get Mouse Position
Where the pointer is, 0 to 1 from the top left, and whether it's over the desktop.
ƒGet Mouse Position
Location X
Location Y
Result
Inputs
None.
Outputs
| Pin | Type |
|---|---|
Location Xx | number |
Location Yy | number |
Resultover | bool |
The code it becomes
The graph below written as a script would write it.
// On Scene Startscene.log(scene.pointer.x);In a graph
◆On Scene Start
ƒGet Mouse Position
Location X
Location Y
Result
ƒPrint
In Text
The node with what starts it and Print to show what it gives, as Studio draws them.
Related
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.