lovr.headset.update

Edit

Updates the headset module, blocking until it is time to start a new frame and polling new input states. This should only be called once at the beginning of a frame, and is normally taken care of by the default lovr.run implementation.

dt = lovr.headset.update()

Arguments

None

Returns

NameTypeDescription
dtnumber The delta time since the last frame. This is the same value returned by lovr.headset.getDeltaTime, and is used by boot.lua.

See also