lovr.system.getWindowDimensions

Returns the dimensions of the desktop window.

width, height = lovr.system.getWindowDimensions()

Arguments

None

Returns

NameTypeDescription
widthnumber The width of the desktop window.
heightnumber The height of the desktop window.

Notes

If the window is not open, this will return zeros.

See also