lovr.event.poll
EditThis function returns a Lua iterator for all of the unprocessed items in the event queue. Each event consists of a name as a string, followed by event-specific arguments. This function is called in the default implementation of lovr.run, so it is normally not necessary to poll for events yourself.
iterator = lovr.event.poll()Arguments
None
Returns
| Name | Type | Description |
| iterator | function | The iterator function, usable in a for loop. |