Difference between revisions of "Event"

m (More accurate text for f (focus) in 0.7)
(Adds oldin and updates newin flags)
Line 1: Line 1:
 
Arguments to love.event.push() and the like.
 
Arguments to love.event.push() and the like.
 +
 
== Constants ==
 
== Constants ==
 +
{{oldin|[[0.8.0]]|080|text=These values are not supported in that and later versions.}}
 
;jp: Joystick pressed
 
;jp: Joystick pressed
 
;jr: Joystick released
 
;jr: Joystick released
Line 9: Line 11:
 
;q: Quit
 
;q: Quit
 
;f: Window focus gained or lost (version [[0.7.0|0.7.x]] only)
 
;f: Window focus gained or lost (version [[0.7.0|0.7.x]] only)
{{newin|[[0.8.0]]|080|type=function}}
 
 
== Constants ==
 
== Constants ==
 +
{{newin|[[0.8.0]]|080|text=These values are not available before that version.}}
 
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

Revision as of 11:48, 5 February 2012

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

Constants

Removed in LÖVE 0.8.0
These values 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)

Constants

Available since LÖVE 0.8.0
These values are not available before that version..

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