Beta Documentation - Subject to change.

Gets the X position of the mouse.

Syntax

Lua
function Display.GetMouseX();

Returns

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

Remarks

Gets the X position of the mouse in screen coordinates.

See Also