Difference between revisions of "love.event.wait"

(Add in fourth event argument, the fifth return value)
(love.event uses Variant, and doesn't accept all types)
Line 9: Line 9:
 
=== Returns ===
 
=== Returns ===
 
{{param|Event|e|The type of event.}}
 
{{param|Event|e|The type of event.}}
{{param|mixed|a|First event argument.}}
+
{{param|Variant|a|First event argument.}}
{{param|mixed|b|Second event argument.}}
+
{{param|Variant|b|Second event argument.}}
{{param|mixed|c|Third event argument.}}
+
{{param|Variant|c|Third event argument.}}
{{param|mixed|d|Fourth event argument.}}
+
{{param|Variant|d|Fourth event argument.}}
 
== See Also ==
 
== See Also ==
 
* [[parent::love.event]]
 
* [[parent::love.event]]

Revision as of 11:13, 31 January 2017

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.
Variant a
First event argument.
Variant b
Second event argument.
Variant c
Third event argument.
Variant d
Fourth event argument.

See Also


Other Languages