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
Copy file name to clipboardExpand all lines: ScreenManager.lua
+14-12Lines changed: 14 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -218,23 +218,25 @@ function ScreenManager.mousemoved( x, y, dx, dy )
218
218
end
219
219
220
220
---
221
-
-- Reroute the mousepressed callback to the currently active screen.
222
-
-- @param x
223
-
-- @param y
224
-
-- @param button
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.
225
226
--
226
-
functionScreenManager.mousepressed( x, y, button )
227
-
ScreenManager.peek():mousepressed( x, y, button );
227
+
functionScreenManager.mousepressed( x, y, button, istouch )
228
+
ScreenManager.peek():mousepressed( x, y, button, istouch );
228
229
end
229
230
230
231
---
231
-
-- Reroute the mousereleased callback to the currently active screen.
232
-
-- @param x
233
-
-- @param y
234
-
-- @param button
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.
235
237
--
236
-
functionScreenManager.mousereleased( x, y, button )
237
-
ScreenManager.peek():mousereleased( x, y, button );
238
+
functionScreenManager.mousereleased( x, y, button, istouch )
239
+
ScreenManager.peek():mousereleased( x, y, button, istouch );
0 commit comments