lovr.system.getMouseX

Edit

Returns the x position of the mouse.

x = lovr.system.getMouseX()

Arguments

None

Returns

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

See also