poll.lua 623 B

12345678910111213141516171819
  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. {
  12. name = 'iterator',
  13. type = 'function',
  14. arguments = {},
  15. returns = {},
  16. description = 'The iterator function, usable in a for loop.'
  17. }
  18. }
  19. }