getDisplayFrequencies.lua 595 B

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