lovr.mount

The lovr.mount callback is called when the headset is put on or taken off. This hardware feature is sometimes called a "proximity sensor" and it not supported by all headsets. You can use it to pause the app or show a message in the window if the headset isn't put on yet.

function lovr.mount(mounted)
  -- your code here
end

Arguments

NameTypeDescription
mountedbooleanWhether the headset is mounted.

Returns

Nothing