visible.lua 696 B

12345678910111213141516171819202122
  1. return {
  2. tag = 'callbacks',
  3. summary = 'Called when the application gains or loses visibility.',
  4. description = [[
  5. The `lovr.visible` callback is called whenever the application becomes visible or invisible.
  6. `lovr.draw` may still be called even while invisible to give the VR runtime timing info. If the
  7. VR runtime decides the application doesn't need to render anymore, LÖVR will detect this and
  8. stop calling `lovr.draw`.
  9. ]],
  10. arguments = {
  11. {
  12. name = 'visible',
  13. type = 'boolean',
  14. description = 'Whether the application is visible in the headset display.'
  15. }
  16. },
  17. returns = {},
  18. related = {
  19. 'lovr.headset.isVisible',
  20. 'lovr.focus'
  21. }
  22. }