Beta Documentation - Subject to change.

Gets the position of the mouse.

Syntax

Lua
function Display.GetMousePosition();

Returns

Type: number, number
The position of the mouse in screen coordinates.

Remarks

Gets the position of the mouse in screen coordinates.

See Also