lovr.headset.getDriver

Returns the HeadsetDriver that is currently in use, optionally for a specific device. The order of headset drivers can be changed using lovr.conf to prefer or exclude specific VR APIs.

Get the current headset driver that LÖVR is submitting frames to.

driver = lovr.headset.getDriver()

Arguments

None

Returns

NameTypeDescription
driverHeadsetDriverThe driver of the headset in use, e.g. "OpenVR".

Get the current input driver for a device.

driver = lovr.headset.getDriver(device)

Arguments

NameTypeDescription
deviceDeviceThe device to get the active driver of. This will be the first driver that is currently returning a pose for the device.

Returns

NameTypeDescription
driverHeadsetDriverThe driver of the headset in use, e.g. "OpenVR".

See also