lovr.headset.connect
EditTries to connect to headset hardware. This will initialize OpenXR and query the system for any connected VR hardware. It must be called before other functions like lovr.headset.start can be called. It may be desirable to avoid calling this function until later, because it will e.g. cause the SteamVR window to pop up, and may delay the rest of LÖVR's startup.
Usually this is called automatically by boot.lua, but you can disable this behavior by setting t.headset.connect to false in lovr.conf.
success, error = lovr.headset.connect()Arguments
None
Returns
| Name | Type | Description |
| success | boolean | Whether the headset was successfully connected. |
| error | string | nil | The error message, on failure. |