You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- Callback function triggered when the system is running out of memory on mobile devices.
209
+
-- Reroute the lowmemory callback to the currently active screen.
210
+
-- mobile devices.
196
211
--
197
212
functionScreenManager.lowmemory()
198
213
ScreenManager.peek():lowmemory();
199
214
end
200
215
201
216
---
202
217
-- Reroute the mousefocus callback to the currently active screen.
203
-
-- @param focus - Wether the window has mouse focus or not.
218
+
-- @param focus (boolean) Wether the window has mouse focus or not.
204
219
--
205
220
functionScreenManager.mousefocus( focus )
206
221
ScreenManager.peek():mousefocus( focus );
207
222
end
208
223
209
224
---
210
-
-- Callback function triggered when the mouse is moved.
211
-
-- @param x - Mouse x position.
212
-
-- @param y - Mouse y position.
213
-
-- @param dx - The amount moved along the x-axis since the last time love.mousemoved was called.
214
-
-- @param dy - The amount moved along the y-axis since the last time love.mousemoved was called.
225
+
-- Reroute the mousemoved callback to the currently active screen.
226
+
-- @param x (number) Mouse x position.
227
+
-- @param y (number) Mouse y position.
228
+
-- @param dx (number) The amount moved along the x-axis since the last time
229
+
-- love.mousemoved was called.
230
+
-- @param dy (number) The amount moved along the y-axis since the last time
231
+
-- love.mousemoved was called.
215
232
--
216
233
functionScreenManager.mousemoved( x, y, dx, dy )
217
234
ScreenManager.peek():mousemoved( x, y, dx, dy );
218
235
end
219
236
220
237
---
221
-
-- Callback function triggered when a mouse button is pressed.
222
-
-- @param x - Mouse x position, in pixels.
223
-
-- @param y - Mouse y position, in pixels.
224
-
-- @param button - The button index that was pressed. 1 is the primary mouse button, 2 is the secondary mouse button and 3 is the middle button. Further buttons are mouse dependant.
225
-
-- @param istouch - True if the mouse button press originated from a touchscreen touch-press.
238
+
-- Reroute the mousepressed callback to the currently active screen.
239
+
-- @param x (number) Mouse x position, in pixels.
240
+
-- @param y (number) Mouse y position, in pixels.
241
+
-- @param button (number) The button index that was pressed. 1 is the primary
242
+
-- mouse button, 2 is the secondary mouse button and 3
243
+
-- is the middle button. Further buttons are mouse
244
+
-- dependent.
245
+
-- @param istouch (boolean) True if the mouse button press originated from a
246
+
-- touchscreen touch-press.
226
247
--
227
248
functionScreenManager.mousepressed( x, y, button, istouch )
228
249
ScreenManager.peek():mousepressed( x, y, button, istouch );
229
250
end
230
251
231
252
---
232
-
-- Callback function triggered when a mouse button is released.
233
-
-- @param x - Mouse x position, in pixels.
234
-
-- @param y - Mouse y position, in pixels.
235
-
-- @param button - The button index that was released. 1 is the primary mouse button, 2 is the secondary mouse button and 3 is the middle button. Further buttons are mouse dependant.
236
-
-- @param istouch - True if the mouse button release originated from a touchscreen touch-release.
253
+
-- Reroute the mousereleased callback to the currently active screen.
254
+
-- @param x (number) Mouse x position, in pixels.
255
+
-- @param y (number) Mouse y position, in pixels.
256
+
-- @param button (number) The button index that was released. 1 is the primary
257
+
-- mouse button, 2 is the secondary mouse button and 3
258
+
-- is the middle button. Further buttons are mouse
259
+
-- dependent.
260
+
-- @param istouch (boolean) True if the mouse button release originated from a
261
+
-- touchscreen touch-release.
237
262
--
238
263
functionScreenManager.mousereleased( x, y, button, istouch )
239
264
ScreenManager.peek():mousereleased( x, y, button, istouch );
240
265
end
241
266
242
267
---
243
268
-- Reroute the quit callback to the currently active screen.
244
-
-- @param dquit - Abort quitting. If true, do not close the game.
269
+
-- @return quit (boolean) Abort quitting. If true, do not close the game.
245
270
--
246
-
functionScreenManager.quit(dquit)
247
-
ScreenManager.peek():quit(dquit);
271
+
functionScreenManager.quit()
272
+
ScreenManager.peek():quit();
248
273
end
249
274
250
275
---
251
-
-- Called when the window is resized, for example if the user resizes the window, or if love.window.setMode is called with an unsupported width or height in fullscreen and the window chooses the closest appropriate size.
252
-
--
253
-
-- @param w - The new width, in pixels.
254
-
-- @param h - The new height, in pixels.
276
+
-- Reroute the resize callback to all screens on the stack.
277
+
-- @param w (number) The new width, in pixels.
278
+
-- @param h (number) The new height, in pixels.
255
279
--
256
280
functionScreenManager.resize( w, h )
257
281
fori=1, #stackdo
@@ -260,19 +284,18 @@ function ScreenManager.resize( w, h )
260
284
end
261
285
262
286
---
263
-
-- Called when the candidate text for an IME (Input Method Editor) has changed.
264
-
-- The candidate text is not the final text that the user will eventually choose. Use love.textinput for that.
265
-
-- @param text - The UTF-8 encoded unicode candidate text.
266
-
-- @param start - The start cursor of the selected candidate text.
267
-
-- @param length - The length of the selected candidate text. May be 0.
287
+
-- Reroute the textedited callback to the currently active screen.
288
+
-- @param text (string) The UTF-8 encoded unicode candidate text.
289
+
-- @param start (number) The start cursor of the selected candidate text.
290
+
-- @param length (number) The length of the selected candidate text. May be 0.
0 commit comments