Function
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
  1. function love.keypressed(k)
  2.     if k == 'escape' then
  3.         love.event.push('q') -- quit the game
  4.     end
  5. end
Copyright © 2006-2010 LÖVE Development Team.