Difference between revisions of "love.event.poll"
m (1 revision: Importing from potato (again).) |
(Added link to love.event.wait) |
||
Line 1: | Line 1: | ||
− | |||
Gets an iterator for messages in the event queue. | Gets an iterator for messages in the event queue. | ||
== Function == | == Function == | ||
Line 21: | Line 20: | ||
== See Also == | == See Also == | ||
* [[parent::love.event]] | * [[parent::love.event]] | ||
+ | * [[love.event.wait]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
{{#set:Description=Gets an iterator for messages in the event queue.}} | {{#set:Description=Gets an iterator for messages in the event queue.}} |
Revision as of 20:46, 26 March 2010
Gets an iterator for messages in the event queue.
Contents
Function
Synopsis
i = love.event.poll( )
Arguments
None.
Returns
function i
- Iterator function usable in for loop.
Examples
Checking for events
for e,a,b,c in love.events.poll() do
if e == "q" then
-- Quit!
end
end