getName.lua 567 B

1234567891011121314151617181920
  1. return {
  2. tag = 'headset',
  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. {
  11. name = 'name',
  12. type = 'string',
  13. description = 'The name of the headset as a string.'
  14. }
  15. },
  16. notes = [[
  17. - The keyboard and mouse VR simulator is named `VR Simulator`.
  18. - Oculus headsets will usually contain the string `Oculus`.
  19. ]]
  20. }