@@ -260,6 +260,39 @@ function ScreenManager.quit(dquit)
260260 ScreenManager .peek ():quit (dquit );
261261end
262262
263+ ---
264+ -- Callback function triggered when a touch press moves inside the touch screen.
265+ -- @param id - The identifier for the touch press.
266+ -- @param x - The x-axis position of the touch press inside the window, in pixels.
267+ -- @param y - The y-axis position of the touch press inside the window, in pixels.
268+ -- @param pressure - The amount of pressure being applied. Most touch screens aren't pressure sensitive, in which case the pressure will be 1.
269+ --
270+ function ScreenManager .touchmoved (id , x , y , pressure )
271+ ScreenManager .peek ():touchmoved (id , x , y , pressure );
272+ end
273+
274+ ---
275+ -- Callback function triggered when the touch screen is touched.
276+ -- @param id - The identifier for the touch press.
277+ -- @param x - The x-axis position of the touch press inside the window, in pixels.
278+ -- @param y - The y-axis position of the touch press inside the window, in pixels.
279+ -- @param pressure - The amount of pressure being applied. Most touch screens aren't pressure sensitive, in which case the pressure will be 1.
280+ --
281+ function ScreenManager .touchpressed (id , x , y , pressure )
282+ ScreenManager .peek ():touchpressed (id , x , y , pressure );
283+ end
284+
285+ ---
286+ -- Callback function triggered when the touch screen stops being touched.
287+ -- @param id - The identifier for the touch press.
288+ -- @param x - The x-axis position of the touch press inside the window, in pixels.
289+ -- @param y - The y-axis position of the touch press inside the window, in pixels.
290+ -- @param pressure - The amount of pressure being applied. Most touch screens aren't pressure sensitive, in which case the pressure will be 1.
291+ --
292+ function ScreenManager .touchreleased (id , x , y , pressure )
293+ ScreenManager .peek ():touchreleased (id , x , y , pressure );
294+ end
295+
263296---
264297-- Callback function triggered when the mouse wheel is moved.
265298-- @param x - Amount of horizontal mouse wheel movement. Positive values indicate movement to the right.
0 commit comments