lovr.system.getMousePosition

Edit

Returns the position of the mouse.

x, y = lovr.system.getMousePosition()

Arguments

None

Returns

NameTypeDescription
xnumber The x position of the mouse, relative to the top-left of the window.
ynumber The y position of the mouse, relative to the top-left of the window.

See also