Difference between revisions of "love.event.push"

m (1 revision: Imported docs from potato.)
Line 1: Line 1:
  
 
+
Adds an event to the event queue.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 25: Line 25:
 
* [[parent::love.event]]
 
* [[parent::love.event]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=}}
+
{{#set:Description=Adds an event to the event queue.}}

Revision as of 16:17, 14 February 2010

Adds an event to the event queue.

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

See Also