Difference between revisions of "love.event.poll"

(Undo revision 4177 by Minicz (Talk))
Line 23: Line 23:
 
[[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.}}
 +
{{#set:Since=000}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.event.poll}}
 
{{i18n|love.event.poll}}

Revision as of 09:30, 25 March 2011

Gets an iterator for messages in the event queue.

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

See Also


Other Languages