Difference between revisions of "love.event.push"
(oldin notice correction.) |
|||
Line 1: | Line 1: | ||
Adds an event to the event queue. | Adds an event to the event queue. | ||
== Function == | == Function == | ||
− | {{newin|[[0.8.0]]|type=variant}} | + | {{newin|[[0.8.0]]|080|type=variant}} |
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
Line 15: | Line 15: | ||
Nothing. | Nothing. | ||
== Function == | == Function == | ||
− | {{oldin|[[0.8.0]]|type=variant}} | + | {{oldin|[[0.8.0]]|080|type=variant}} |
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> |
Revision as of 12:55, 4 May 2012
Adds an event to the event queue.
Contents
Function
Available since LÖVE 0.8.0 |
This variant is not supported in earlier versions. |
Synopsis
love.event.push( e, a, b, c, d )
Arguments
Event e
- The name of the event.
mixed a (nil)
- First event argument.
mixed b (nil)
- Second event argument.
mixed c (nil)
- Third event argument.
mixed d (nil)
- Fourth event argument.
Returns
Nothing.
Function
Removed in LÖVE 0.8.0 |
This variant is not supported in that and later versions. |
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 a game in 0.8.0
function love.keypressed(k)
if k == 'escape' then
love.event.push('quit') -- Quit the game.
end
end
Quitting a game in 0.7.2
function love.keypressed(k)
if k == 'escape' then
love.event.push('q') -- Quit the game.
end
end
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info