Difference between revisions of "Event"
Line 8: | Line 8: | ||
;mr: Mouse released | ;mr: Mouse released | ||
;q: Quit | ;q: Quit | ||
− | ;f: | + | ;f: Window focus gained or lost (since version [[0.7.0]]) |
+ | {{newin|[[0.8.0]]|080|type=function}} | ||
+ | == Constants == | ||
+ | Since [[0.8.0]], event names are no longer abbreviated. | ||
+ | ;focus: Window focus gained or lost | ||
+ | ;joystickpressed: Joystick pressed | ||
+ | ;joystickreleased: Joystick released | ||
+ | ;keypressed: Key pressed | ||
+ | ;keyreleased: Key releaed | ||
+ | ;mousepressed: Mouse pressed | ||
+ | ;mousereleased: Mouse released | ||
+ | ;quit: Quit | ||
== See Also == | == See Also == | ||
* [[parent::love.event]] | * [[parent::love.event]] |
Revision as of 06:44, 5 February 2012
Arguments to love.event.push() and the like.
Constants
- jp
- Joystick pressed
- jr
- Joystick released
- kp
- Key pressed
- kr
- Key released
- mp
- Mouse pressed
- mr
- Mouse released
- q
- Quit
- f
- Window focus gained or lost (since version 0.7.0)
Available since LÖVE 0.8.0 |
This function is not supported in earlier versions. |
Constants
Since 0.8.0, event names are no longer abbreviated.
- focus
- Window focus gained or lost
- joystickpressed
- Joystick pressed
- joystickreleased
- Joystick released
- keypressed
- Key pressed
- keyreleased
- Key releaed
- mousepressed
- Mouse pressed
- mousereleased
- Mouse released
- quit
- Quit
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