blob: 759b5b36a23547435cf99e34ee9017c7e03e03bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
|
---@meta
---
---Manages events, like keypresses.
---
---@class love.event
love.event = {}
---
---Clears the event queue.
---
function love.event.clear() end
---
---Returns an iterator for messages in the event queue.
---
function love.event.poll() end
---
---Pump events into the event queue.
---
---This is a low-level function, and is usually not called by the user, but by love.run.
---
---Note that this does need to be called for any OS to think you're still running,
---
---and if you want to handle OS-generated events at all (think callbacks).
---
function love.event.pump() end
---
---Adds an event to the event queue.
---
---From 0.10.0 onwards, you may pass an arbitrary amount of arguments with this function, though the default callbacks don't ever use more than six.
---
function love.event.push() end
---
---Adds the quit event to the queue.
---
---The quit event is a signal for the event handler to close LÖVE. It's possible to abort the exit process with the love.quit callback.
---
---@overload fun(restart: string|"'restart'")
---@param exitstatus number # The program exit status to use when closing the application.
function love.event.quit(exitstatus) end
---
---Like love.event.poll(), but blocks until there is an event in the queue.
---
function love.event.wait() end
---
---Arguments to love.event.push() and the like.
---
---Since 0.8.0, event names are no longer abbreviated.
---
---@class love.Event
---
---Window focus gained or lost
---
---@field focus integer
---
---Joystick pressed
---
---@field joystickpressed integer
---
---Joystick released
---
---@field joystickreleased integer
---
---Key pressed
---
---@field keypressed integer
---
---Key released
---
---@field keyreleased integer
---
---Mouse pressed
---
---@field mousepressed integer
---
---Mouse released
---
---@field mousereleased integer
---
---Quit
---
---@field quit integer
---
---Window size changed by the user
---
---@field resize integer
---
---Window is minimized or un-minimized by the user
---
---@field visible integer
---
---Window mouse focus gained or lost
---
---@field mousefocus integer
---
---A Lua error has occurred in a thread
---
---@field threaderror integer
---
---Joystick connected
---
---@field joystickadded integer
---
---Joystick disconnected
---
---@field joystickremoved integer
---
---Joystick axis motion
---
---@field joystickaxis integer
---
---Joystick hat pressed
---
---@field joystickhat integer
---
---Joystick's virtual gamepad button pressed
---
---@field gamepadpressed integer
---
---Joystick's virtual gamepad button released
---
---@field gamepadreleased integer
---
---Joystick's virtual gamepad axis moved
---
---@field gamepadaxis integer
---
---User entered text
---
---@field textinput integer
---
---Mouse position changed
---
---@field mousemoved integer
---
---Running out of memory on mobile devices system
---
---@field lowmemory integer
---
---Candidate text for an IME changed
---
---@field textedited integer
---
---Mouse wheel moved
---
---@field wheelmoved integer
---
---Touch screen touched
---
---@field touchpressed integer
---
---Touch screen stop touching
---
---@field touchreleased integer
---
---Touch press moved inside touch screen
---
---@field touchmoved integer
---
---Directory is dragged and dropped onto the window
---
---@field directorydropped integer
---
---File is dragged and dropped onto the window.
---
---@field filedropped integer
---
---Joystick pressed
---
---@field jp integer
---
---Joystick released
---
---@field jr integer
---
---Key pressed
---
---@field kp integer
---
---Key released
---
---@field kr integer
---
---Mouse pressed
---
---@field mp integer
---
---Mouse released
---
---@field mr integer
---
---Quit
---
---@field q integer
---
---Window focus gained or lost
---
---@field f integer
|