Difference between revisions of "love.event"
(Concept:Current-ize the page) |
(Added newin template) |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{newin|[[0.6.0]]|060|type=module}} | ||
Manages events, like keypresses. | Manages events, like keypresses. | ||
+ | |||
+ | It is possible to define new events by appending the table <code>love.handlers</code>. Such functions can be invoked as usual, via [[love.event.push]] using the table index as an argument. | ||
== Functions == | == Functions == | ||
{{#ask: [[Category:Functions]] [[parent::love.event]] [[Concept:Current]] | {{#ask: [[Category:Functions]] [[parent::love.event]] [[Concept:Current]] | ||
| headers=hide | | headers=hide | ||
+ | | format=template | ||
+ | | template=ListingFields | ||
+ | | introtemplate=ListingIntro | ||
+ | | outrotemplate=ListingOutro | ||
| ?Description | | ?Description | ||
+ | | ?PrettySince | ||
+ | | ?PrettyRemoved | ||
+ | | ?PrettyDeprecated | ||
}} | }} | ||
== Enums == | == Enums == | ||
{{#ask: [[Category:Enums]] [[parent::love.event]] [[Concept:Current]] | {{#ask: [[Category:Enums]] [[parent::love.event]] [[Concept:Current]] | ||
| headers=hide | | headers=hide | ||
+ | | format=template | ||
+ | | template=ListingFields | ||
+ | | introtemplate=ListingIntro | ||
+ | | outrotemplate=ListingOutro | ||
| ?Description | | ?Description | ||
+ | | ?PrettySince | ||
+ | | ?PrettyRemoved | ||
+ | | ?PrettyDeprecated | ||
}} | }} | ||
[[Category:Modules]] | [[Category:Modules]] | ||
Line 14: | Line 31: | ||
== See Also == | == See Also == | ||
* [[parent::love]] | * [[parent::love]] | ||
− | {{#set:Since= | + | {{#set:Since=060}} |
+ | {{#set:PrettySince=0.6.0}} | ||
== Other Languages == | == Other Languages == | ||
{{i18n|love.event}} | {{i18n|love.event}} |
Latest revision as of 13:55, 29 December 2018
Available since LÖVE 0.6.0 |
This module is not supported in earlier versions. |
Manages events, like keypresses.
It is possible to define new events by appending the table love.handlers
. Such functions can be invoked as usual, via love.event.push using the table index as an argument.
Contents
Functions
love.event.clear | Clears the event queue. | 0.7.2 | |
love.event.poll | Returns an iterator for messages in the event queue. | 0.6.0 | |
love.event.pump | Pump events into the event queue. | 0.6.0 | |
love.event.push | Adds an event to the event queue. | 0.6.0 | |
love.event.quit | Exits or restarts the LÖVE program. | 0.8.0 | |
love.event.wait | Like love.event.poll(), but blocks until there is an event in the queue. | 0.6.0 |
Enums
Event | Arguments to love.event.push() and the like. | 0.6.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