Difference between revisions of "love.event.wait"

(Add in fourth event argument, the fifth return value)
Line 3: Line 3:
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
e, a, b, c = love.event.wait( )
+
e, a, b, c, d = love.event.wait( )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
Line 12: Line 12:
 
{{param|mixed|b|Second event argument.}}
 
{{param|mixed|b|Second event argument.}}
 
{{param|mixed|c|Third event argument.}}
 
{{param|mixed|c|Third event argument.}}
 +
{{param|mixed|d|Fourth event argument.}}
 
== See Also ==
 
== See Also ==
 
* [[parent::love.event]]
 
* [[parent::love.event]]

Revision as of 23:20, 1 September 2012

Like love.event.poll(), but blocks until there is an event in the queue.

Function

Synopsis

e, a, b, c, d = love.event.wait( )

Arguments

None.

Returns

Event e
The type of event.
mixed a
First event argument.
mixed b
Second event argument.
mixed c
Third event argument.
mixed d
Fourth event argument.

See Also


Other Languages