poll.lua 694 B

123456789101112131415161718192021222324
  1. return {
  2. summary = 'Iterate over unprocessed events in the queue.',
  3. description = [[
  4. This function returns a Lua iterator for all of the unprocessed items in the event queue. Each
  5. event consists of a name as a string, followed by event-specific arguments. This function is
  6. called in the default implementation of `lovr.run`, so it is normally not necessary to poll for
  7. events yourself.
  8. ]],
  9. arguments = {},
  10. returns = {
  11. iterator = {
  12. type = 'function',
  13. arguments = {},
  14. returns = {},
  15. description = 'The iterator function, usable in a for loop.'
  16. }
  17. },
  18. variants = {
  19. {
  20. arguments = {},
  21. returns = { 'iterator' }
  22. }
  23. }
  24. }