Adds an event to the event queue.
love.event.push( e, a, b, c, d )
Event emixed a (nil)mixed b (nil)mixed c (nil)mixed d (nil) Available since 0.8.0
Nothing.
function love.keypressed(k)
if k == 'escape' then
love.event.push('quit') -- Quit the game.
end
end function love.keypressed(k)
if k == 'escape' then
love.event.push('q') -- Quit the game.
end
end
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.event.push