Difference between revisions of "love.event.wait"
Shingoscar (talk | contribs) m (Add the return value nil) |
|||
Line 9: | Line 9: | ||
None. | None. | ||
=== Returns === | === Returns === | ||
− | {{param|Event|n|The name of event.}} | + | {{param|Event|n (nil)|The name of event, or nil if the event is unrecognized.}} |
{{param|Variant|a|First event argument.}} | {{param|Variant|a|First event argument.}} | ||
{{param|Variant|b|Second event argument.}} | {{param|Variant|b|Second event argument.}} |
Revision as of 03:23, 19 October 2020
Available since LÖVE 0.6.0 |
This function is not supported in earlier versions. |
Like love.event.poll()
, but blocks until there is an event in the queue.
Function
Synopsis
n, a, b, c, d, e, f, ... = love.event.wait( )
Arguments
None.
Returns
Event n (nil)
- The name of event, or nil if the event is unrecognized.
Variant a
- First event argument.
Variant b
- Second event argument.
Variant c
- Third event argument.
Available since LÖVE 0.8.0
Variant d
- Fourth event argument.
Available since LÖVE 0.10.0
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info