Difference between revisions of "Event"

 
m (Added newin template and link to See Also)
 
(16 intermediate revisions by 11 users not shown)
Line 1: Line 1:
 
+
{{newin|[[0.6.0]]|060|type=enum}}
 
+
Arguments to <code>love.event.push()</code> and the like.
 
== Constants ==
 
== Constants ==
 +
Since [[0.8.0]], event names are no longer abbreviated.
 +
{{New feature|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}}
 +
{{New feature|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|thread]]
 +
;joystickadded: Joystick connected
 +
;joystickremoved: Joystick disconnected
 +
;joystickaxis: Joystick axis motion
 +
;joystickhat: Joystick hat pressed
 +
;gamepadpressed: Joystick's virtual gamepad button pressed
 +
;gamepadreleased: Joystick's virtual gamepad button released
 +
;gamepadaxis: Joystick's virtual gamepad axis moved
 +
;textinput: User entered text}}
 +
{{New feature|0.9.2|
 +
;mousemoved: Mouse position changed}}
 +
{{New feature|0.10.0|
 +
;lowmemory: Running out of memory on mobile devices system
 +
;textedited: Candidate text for an IME changed
 +
;wheelmoved: Mouse wheel moved
 +
;touchpressed: Touch screen touched
 +
;touchreleased: Touch screen stop touching
 +
;touchmoved: Touch press moved inside touch screen
 +
;directorydropped: Directory is dragged and dropped onto the window
 +
;filedropped: File is dragged and dropped onto the window.}}
 +
{{Removed feature|0.8.0|
 
;jp: Joystick pressed
 
;jp: Joystick pressed
 
;jr: Joystick released
 
;jr: Joystick released
Line 8: Line 43:
 
;mp: Mouse pressed
 
;mp: Mouse pressed
 
;mr: Mouse released
 
;mr: Mouse released
;q: Quit
+
;q: Quit}}
 +
{{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]]
 +
* [[love.event.push]]
 +
== Other Languages ==
 +
{{i18n|Event}}
 +
 
[[Category:Enums]]
 
[[Category:Enums]]
{{#set:Description=}}
+
{{#set:Description=Arguments to love.event.push() and the like.}}
 +
{{#set:Since=000}}

Latest revision as of 09:23, 30 December 2018

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.

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


Available since LÖVE 0.9.2
mousemoved
Mouse position changed


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


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