getDriver.lua 465 B

12345678910111213141516
  1. return {
  2. tag = 'headset',
  3. summary = 'Get the VR API currently in use.',
  4. description = [[
  5. Returns the `HeadsetDriver` that is currently powering the lovr.headset module. You can change
  6. the order of headset drivers using `lovr.conf` to prefer or exclude specific VR APIs.
  7. ]],
  8. arguments = {},
  9. returns = {
  10. {
  11. name = 'driver',
  12. type = 'HeadsetDriver',
  13. description = 'The driver of the headset in use, e.g. "OpenVR".'
  14. }
  15. }
  16. }