Skip to content

Commit edf3978

Browse files
committed
Add wheelmoved callback
1 parent b0ebb65 commit edf3978

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ScreenManager.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,14 @@ function ScreenManager.quit(dquit)
253253
ScreenManager.peek():quit(dquit);
254254
end
255255

256+
---
257+
-- Callback function triggered when the mouse wheel is moved.
258+
-- @param x - Amount of horizontal mouse wheel movement. Positive values indicate movement to the right.
259+
-- @param y - Amount of vertical mouse wheel movement. Positive values indicate upward movement.
260+
function ScreenManager.wheelmoved(x, y)
261+
ScreenManager.peek():wheelmoved(x, y);
262+
end
263+
256264
-- ------------------------------------------------
257265
-- Return Module
258266
-- ------------------------------------------------

0 commit comments

Comments
 (0)