love.event.push( e, a, b, c )
Adds an event to the event queue.
Synopsis
love.event.push( e, a, b, c )
Parameters
e |
Event |
The type of event. |
a = nil |
mixed |
First event argument. |
b = nil |
mixed |
Second event argument. |
c = nil |
mixed |
Third event argument. |
Examples
Quitting an app
function love.keypressed(k)
if k == 'escape' then
love.event.push('q') -- quit the game
end
end