ProtoFlux:MousePosition: Difference between revisions

From Resonite Wiki
m YoshBot moved page ProtoFlux:Mouse Position to ProtoFlux:MousePosition: Automated: removing spaces from ProtoFlux namespace
copyedit, try to clarify when the position isn't useless
 
Line 8: Line 8:
|}}
|}}


The <code>Mouse Position</code> node returns the local [[User|user's]] mouse position from their [[Resonite]] application. The mouse position calculation starts at the top-left of the Resonite window. If you are focused on the Resonite window, the mouse will always be centered in that window while you move the mouse around, giving a consistent result from this node (in this case, x axis divided by 2 and y axis divided by 2). When the resonite application is not focused, this node will not calculate the position at all (returning "[min x; max y]" of your Resonite window size). Multiple monitors will not effect this node.
The <code>Mouse Position</code> node returns the local [[User|user's]] mouse position from their [[Resonite]] application in pixels. The mouse position calculation starts at the top-left of the Resonite window. If you are focused on the Resonite window, the mouse will usually be centered in that window while you move the mouse around (unless interacting with a UI or in freecam mode), giving an almost constant output from this node (in this case, x axis divided by 2 and y axis divided by 2). When the Resonite application is not focused, the cursor won't be tracked at all and will snap to the bottom left (returning "[0; max Y]" of your Resonite window size). Having multiple monitors will not affect this node.


== Outputs ==
== Outputs ==

Latest revision as of 21:06, 19 September 2025

Mouse Position
*
Mouse

The Mouse Position node returns the local user's mouse position from their Resonite application in pixels. The mouse position calculation starts at the top-left of the Resonite window. If you are focused on the Resonite window, the mouse will usually be centered in that window while you move the mouse around (unless interacting with a UI or in freecam mode), giving an almost constant output from this node (in this case, x axis divided by 2 and y axis divided by 2). When the Resonite application is not focused, the cursor won't be tracked at all and will snap to the bottom left (returning "[0; max Y]" of your Resonite window size). Having multiple monitors will not affect this node.

Outputs

* (float2)

The position of the mouse on the Resonite application currently.