W3cubDocs

/LÖVE

Event

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

Constants

Since 0.8.0, event names are no longer abbreviated.

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


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


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


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

See Also


© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Event