love.event

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.clearClears the event queue.Added since 0.7.2
love.event.pollReturns an iterator for messages in the event queue.
love.event.pumpPump events into the event queue.
love.event.pushAdds an event to the event queue.
love.event.quitExits the LÖVE program.Added since 0.8.0
love.event.waitLike love.event.poll(), but blocks until there is an event in the queue.

Enums

EventArguments to love.event.push() and the like.

See Also

Other Languages

Personal tools