-
Notifications
You must be signed in to change notification settings - Fork 9
love.event
Harrison edited this page Apr 20, 2022
·
6 revisions
Manages events, such as button presses.
Pump events into the event queue.
This is a low-level function, and is usually not called by the developer, but by love.run
.
Note that this does need to be called for the system to think the game is still running, and if you want to handle system-generated events at all (think callbacks).
love.event.pump()
Iterator for messages in the event queue. Resets after love.event.pump
is called.
e, a, b, c, d, e, f = love.event.poll()
-
string e
- Name of the event.
-
Variant a, b, c, d, e, f
- Optional arguments passed to the event function.