getName.lua 554 B

12345678910111213141516171819202122
  1. return {
  2. tag = 'headset-misc',
  3. summary = 'Get the name of the connected headset display.',
  4. description = [[
  5. Returns the name of the headset as a string. The exact string that is returned depends on the
  6. hardware and VR SDK that is currently in use.
  7. ]],
  8. arguments = {},
  9. returns = {
  10. name = {
  11. type = 'string',
  12. description = 'The name of the headset as a string.'
  13. }
  14. },
  15. variants = {
  16. {
  17. arguments = {},
  18. returns = { 'name' }
  19. }
  20. },
  21. notes = 'The desktop driver name will always be `Simulator`.'
  22. }