lovr.system.pollEvents
EditFills the event queue with unprocessed events from the operating system. This function should be called often, otherwise the operating system will consider the application unresponsive. This function is called in the default implementation of lovr.run, and the events are later processed by lovr.event.poll.
lovr.system.pollEvents(timeout)Arguments
| Name | Type | Default | Description |
| timeout | number | 0 |
How long to wait for an event to arrive, in seconds. Use a negative value or math.huge for an infinite timeout, sleeping until an event arrives. This is useful for an interface that only needs to re-render after a user input event occurs.
|
Returns
Nothing