GetMousePosition
From GECK
A function added by the SUP NVSE Plugin.
Contents
Description
Returns current mouse position;
Syntax
GetMousePosition fPosX:float fPosY:float
Example
float fPosX float fPosY GetMousePosition fPosX fPosY
Will output mouse position to fPosX and fPosY script variables.
Notes
- This function will return system mouse position, not in-game one.
- Mouse position can go beyong screen boundaries for X axis. You need to keep this in mind when working with the output coordinates.
- This function is supposed to be used when mouse movement input is disable by ToggleMouseMovement and you still want to get mouse inputs. if you want to know cursor position in-game use GetCursorPos which returns game mouse coordinates.