Difference between revisions of "Event"

m (Updated new 0.9.0 events)
(Use the feature templates)
Line 1: Line 1:
 
Arguments to love.event.push() and the like.
 
Arguments to love.event.push() and the like.
 
== Constants ==
 
== Constants ==
{{newin|[[0.8.0]]|080|type=constants|plural=y}}
 
 
Since [[0.8.0]], event names are no longer abbreviated.
 
Since [[0.8.0]], event names are no longer abbreviated.
 +
{{New feature|0.8.0|
 
;focus: Window focus gained or lost
 
;focus: Window focus gained or lost
 
;joystickpressed: Joystick pressed
 
;joystickpressed: Joystick pressed
Line 10: Line 10:
 
;mousepressed: Mouse pressed
 
;mousepressed: Mouse pressed
 
;mousereleased: Mouse released
 
;mousereleased: Mouse released
;quit: Quit
+
;quit: Quit}}
{{newin|[[0.9.0]]|090|type=constants|plural=y}}
+
{{New feature|0.9.0|
 
;resize: Window size changed by the user
 
;resize: Window size changed by the user
 
;visible: Window is minimized or un-minimized by the user
 
;visible: Window is minimized or un-minimized by the user
Line 17: Line 17:
 
;threaderror: A Lua error has occurred in a [[Thread|thread]].
 
;threaderror: A Lua error has occurred in a [[Thread|thread]].
 
;joystickaxis: Joystick axis motion
 
;joystickaxis: Joystick axis motion
;joystickhat: Joystick hat pressed
+
;joystickhat: Joystick hat pressed}}
== Constants ==
+
{{Removed feature|0.8.0|
{{oldin|[[0.8.0]]|080|type=constants|plural=y}}
 
 
;jp: Joystick pressed
 
;jp: Joystick pressed
 
;jr: Joystick released
 
;jr: Joystick released
Line 26: Line 25:
 
;mp: Mouse pressed
 
;mp: Mouse pressed
 
;mr: Mouse released
 
;mr: Mouse released
;q: Quit
+
;q: Quit}}
;f: Window focus gained or lost (version [[0.7.0|0.7.x]] only)
+
{{Removed new feature|0.7.0|0.8.0|
 +
;f: Window focus gained or lost}}
 
== See Also ==
 
== See Also ==
 
* [[parent::love.event]]
 
* [[parent::love.event]]

Revision as of 14:41, 16 May 2016

Arguments to love.event.push() and the like.

Constants

Since 0.8.0, event names are no longer abbreviated.

Available since LÖVE 0.8.0
focus
Window focus gained or lost
joystickpressed
Joystick pressed
joystickreleased
Joystick released
keypressed
Key pressed
keyreleased
Key released
mousepressed
Mouse pressed
mousereleased
Mouse released
quit
Quit


Available since LÖVE 0.9.0
resize
Window size changed by the user
visible
Window is minimized or un-minimized by the user
mousefocus
Window mouse focus gained or lost
threaderror
A Lua error has occurred in a thread.
joystickaxis
Joystick axis motion
joystickhat
Joystick hat pressed


Removed in LÖVE 0.8.0
jp
Joystick pressed
jr
Joystick released
kp
Key pressed
kr
Key released
mp
Mouse pressed
mr
Mouse released
q
Quit


Available since LÖVE 0.7.0 and removed in LÖVE 0.8.0
f
Window focus gained or lost

See Also


Other Languages