##### Views

- Page
- Discussion
- View source
- History

# 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.clear | Clears the event queue. | 0.7.2 |
love.event.poll | Returns an iterator for messages in the event queue. |  |
love.event.pump | Pump events into the event queue. |  |
love.event.push | Adds an event to the event queue. |  |
love.event.quit | Exits the LÖVE program. | 0.8.0 |
love.event.wait | Like love.event.poll(), but blocks until there is an event in the queue. |  |

## Enums

Event | Arguments to love.event.push() and the like. |  |

## See Also

- love

## 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

Retrieved from "https://www.love2d.org/wiki/love.event"
Category: Modules

##### Personal tools

- Log in

##### Search

##### Toolbox

- What links here
- Related changes
- Special pages
- Printable version
- Permanent link
- Browse properties