getDisplayDimensions.lua 527 B

12345678910111213141516171819202122
  1. return {
  2. tag = 'headset',
  3. summary = 'Get the dimensions of the headset display.',
  4. description = 'Returns the texture dimensions of the headset display (for one eye), in pixels.',
  5. arguments = {},
  6. returns = {
  7. {
  8. name = 'width',
  9. type = 'number',
  10. description = 'The width of the display.'
  11. },
  12. {
  13. name = 'height',
  14. type = 'number',
  15. description = 'The height of the display.'
  16. }
  17. },
  18. related = {
  19. 'lovr.headset.getDisplayWidth',
  20. 'lovr.headset.getDisplayHeight'
  21. }
  22. }