lovr.system.getWindowWidth

Returns the width of the desktop window.

width = lovr.system.getWindowWidth()

Arguments

None

Returns

NameTypeDescription
widthnumber The width of the desktop window.

Notes

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

See also