getRefreshRate.lua 472 B

123456789101112131415161718192021
  1. return {
  2. tag = 'headset',
  3. summary = 'Get the refresh rate of the headset display.',
  4. description = 'Returns the refresh rate of the headset display, in Hz.',
  5. arguments = {},
  6. returns = {
  7. rate = {
  8. type = 'number',
  9. description = 'The refresh rate of the display, or `nil` if I have no idea what it is.'
  10. }
  11. },
  12. variants = {
  13. {
  14. arguments = {},
  15. returns = { 'rate' }
  16. }
  17. },
  18. related = {
  19. 'lovr.headset.getRefreshRates'
  20. }
  21. }