Returns the absolute position of the mouse cursor


See also Cursor functions.

Signature:

cursorX, cursorY = GetCursorPosition()

Returns:

  • cursorX - Scale-independent X coordinate of the cursor's current position (number)
  • cursorY - Scale-independent Y coordinate of the cursor's current position (number)