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