Difference between revisions of "Event"

(Added 0.9.0 event names)
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|text=These values are not available before that version.}}
+
{{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.
 
;focus: Window focus gained or lost
 
;focus: Window focus gained or lost
Line 11: Line 11:
 
;mousereleased: Mouse released
 
;mousereleased: Mouse released
 
;quit: Quit
 
;quit: Quit
 +
{{newin|[[0.9.0]]|090|type=constants|plural=y}}
 +
;resize: Window size changed by the user
 +
;mousefocus: Window mouse focus gained or lost
 +
;joystickaxis: Joystick axis motion
 +
;joystickball: Joystick ball motion
 +
;joystickhat: Joystick hat pressed
 
== Constants ==
 
== Constants ==
{{oldin|[[0.8.0]]|080|text=These values are not supported in that and later versions.}}
+
{{oldin|[[0.8.0]]|080|type=constants|plural=y}}
 
;jp: Joystick pressed
 
;jp: Joystick pressed
 
;jr: Joystick released
 
;jr: Joystick released

Revision as of 17:32, 6 June 2013

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

Constants

Available since LÖVE 0.8.0
These constants are not supported in earlier versions.

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 released
mousepressed
Mouse pressed
mousereleased
Mouse released
quit
Quit
Available since LÖVE 0.9.0
These constants are not supported in earlier versions.
resize
Window size changed by the user
mousefocus
Window mouse focus gained or lost
joystickaxis
Joystick axis motion
joystickball
Joystick ball motion
joystickhat
Joystick hat pressed

Constants

Removed in LÖVE 0.8.0
These constants are not supported in that and later versions.
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 (version 0.7.x only)

See Also


Other Languages