getPassthroughModes.lua 596 B

12345678910111213141516171819202122232425
  1. return {
  2. tag = 'headset',
  3. summary = 'Get the supported passthrough modes.',
  4. description = 'Returns the set of supported passthrough modes.',
  5. arguments = {},
  6. returns = {
  7. modes = {
  8. type = 'table',
  9. description = [[
  10. The set of supported passthrough modes. Keys will be `PassthroughMode` strings, and values
  11. will be booleans indicating whether the mode is supported.
  12. ]]
  13. }
  14. },
  15. variants = {
  16. {
  17. arguments = {},
  18. returns = { 'modes' }
  19. }
  20. },
  21. related = {
  22. 'lovr.headset.getPassthrough',
  23. 'lovr.headset.setPassthrough'
  24. }
  25. }