MISC
GetCursorPos
Returns the cursor position in screen coordinates.
Syntax
local cursorPos = ONYX.GetCursorPos()Parameters
None
Return(s)
cursorPos (Vector2) — x and y relative to the monitor dimensions.
Behavior
- Returns the cursor position used internally by the overlay, not the game cursor.
- The values track the real mouse so ImGui-based elements stay accurate.
Example(s)
local cursorPos = ONYX.GetCursorPos()