Difference between revisions of "love.event.wait"
m (Some linkifying) |
|||
(9 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
− | Like [[love.event.poll]], but blocks until there is an event in the queue. | + | {{newin|[[0.6.0]]|060|type=function}} |
+ | Like <code>[[love.event.poll]]()</code>, but blocks until there is an event in the queue. | ||
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | n, a, b, c, d, e, f, ... = love.event.wait( ) | |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
None. | None. | ||
=== Returns === | === Returns === | ||
− | {{param|Event| | + | {{param|Event|n|The name of event.}} |
− | {{param| | + | {{param|Variant|a|First event argument.}} |
− | {{param| | + | {{param|Variant|b|Second event argument.}} |
− | {{param| | + | {{param|Variant|c|Third event argument.}} |
+ | {{New_feature|0.8.0| | ||
+ | {{param|Variant|d|Fourth event argument.}} }} | ||
+ | {{New_feature|0.10.0| | ||
+ | {{param|Variant|e|Fifth event argument.}} | ||
+ | {{param|Variant|f|Sixth event argument.}} | ||
+ | {{param|Variant|...|Further event arguments may follow.}} }} | ||
== See Also == | == See Also == | ||
* [[parent::love.event]] | * [[parent::love.event]] | ||
+ | * [[love.event.poll]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | {{#set:Description=Like love.event.poll, but blocks until there is an event in the queue.}} | + | {{#set:Description=Like love.event.poll(), but blocks until there is an event in the queue.}} |
+ | {{#set:Since=000}} | ||
+ | |||
+ | == Other Languages == | ||
+ | {{i18n|love.event.wait}} |
Revision as of 21:29, 17 November 2019
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
- The name of event.
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