Event

Available since LÖVE 0.6.0
This enum is not supported in earlier versions.

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
joystickadded Available since 0.9.0
Joystick connected
joystickremoved Available since 0.9.0
Joystick disconnected
joystickaxis Available since 0.9.0
Joystick axis motion
joystickhat Available since 0.9.0
Joystick hat pressed
gamepadpressed Available since 0.9.0
Joystick's virtual gamepad button pressed
gamepadreleased Available since 0.9.0
Joystick's virtual gamepad button released
gamepadaxis Available since 0.9.0
Joystick's virtual gamepad axis moved
textinput Available since 0.9.0
User entered text


mousemoved Available since 0.9.2
Mouse position changed


lowmemory Available since 0.10.0
Running out of memory on mobile devices system
textedited Available since 0.10.0
Candidate text for an IME changed
wheelmoved Available since 0.10.0
Mouse wheel moved
touchpressed Available since 0.10.0
Touch screen touched
touchreleased Available since 0.10.0
Touch screen stop touching
touchmoved Available since 0.10.0
Touch press moved inside touch screen
directorydropped Available since 0.10.0
Directory is dragged and dropped onto the window
filedropped Available since 0.10.0
File is dragged and dropped onto the window.


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–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Event