getRefreshRates.lua 595 B

1234567891011121314151617181920212223242526
  1. return {
  2. tag = 'headset',
  3. summary = 'Get the list of refresh rates supported by the display.',
  4. description = [[
  5. Returns a table with all the refresh rates supported by the headset display, in Hz.
  6. ]],
  7. arguments = {},
  8. returns = {
  9. rates = {
  10. type = 'table',
  11. description = [[
  12. A flat table of the refresh rates supported by the headset display, or nil if not supported.
  13. ]]
  14. }
  15. },
  16. variants = {
  17. {
  18. arguments = {},
  19. returns = { 'rates' }
  20. }
  21. },
  22. related = {
  23. 'lovr.headset.getRefreshRate',
  24. 'lovr.headset.setRefreshRate'
  25. }
  26. }