{{newin|[[0.6.0]]|060|type=function}}
Returns an iterator for messages in the event queue.
== Function ==
=== Synopsis ===
<source lang="lua">
i = love.event.poll( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|function|i|Iterator function usable in a for loop.}}
== Examples ==
=== Checking for events in 0.10.0 ===
<source lang="lua">
for n, a, b, c, d, e, f in love.event.poll() do
	if n == "quit" then
		-- Quit!
	end	
end
</source>
=== Checking for events in 0.8.0 ===
<source lang="lua">
for e, a, b, c, d in love.event.poll() do
	if e == "quit" then
		-- Quit!
	end	
end
</source>
=== Checking for events in 0.7.2 ===
<source lang="lua">
for e, a, b, c in love.event.poll() do
	if e == "q" then
		-- Quit!
	end	
end
</source>
== See Also ==
* [[parent::love.event]]
* [[love.event.wait]]
[[Category:Functions]]
{{#set:Description=Returns an iterator for messages in the event queue.}}
{{#set:Since=000}}
== Other Languages ==
{{i18n|love.event.poll}}