Difference between revisions of "love.event"

(added custom event info)
m (Added since properties.)
Line 28: Line 28:
 
== See Also ==
 
== See Also ==
 
* [[parent::love]]
 
* [[parent::love]]
{{#set:Since=000}}
+
{{#set:Since=060}}
 +
{{#set:PrettySince=0.6.0}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.event}}
 
{{i18n|love.event}}

Revision as of 01:37, 23 August 2016

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.

Functions

love.event.clear Clears the event queue. Added since 0.7.2
love.event.poll Returns an iterator for messages in the event queue. Added since 0.6.0
love.event.pump Pump events into the event queue. Added since 0.6.0
love.event.push Adds an event to the event queue. Added since 0.6.0
love.event.quit Exits or restarts the LÖVE program. Added since 0.8.0
love.event.wait Like love.event.poll(), but blocks until there is an event in the queue. Added since 0.6.0

Enums

Event Arguments to love.event.push() and the like. Added since 0.6.0

See Also


Other Languages