Difference between revisions of "love.event.push"
Line 25: | Line 25: | ||
[[Category:Functions]] | [[Category:Functions]] | ||
{{#set:Description=Adds an event to the event queue.}} | {{#set:Description=Adds an event to the event queue.}} | ||
+ | {{#set:Since=000}} | ||
== Other Languages == | == Other Languages == | ||
{{i18n|love.event.push}} | {{i18n|love.event.push}} |
Revision as of 09:30, 25 March 2011
Adds an event to the event queue.
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
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