diff options
Diffstat (limited to 'main.lua')
-rw-r--r-- | main.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/main.lua b/main.lua index 31b7f5b..13f2d6a 100644 --- a/main.lua +++ b/main.lua @@ -250,6 +250,16 @@ function App.mousereleased(x,y, mouse_button) end end +function App.wheelmoved(dx,dy) + if Current_app == 'run' then + if run.mouse_wheel_move then run.mouse_wheel_move(dx,dy) end + elseif Current_app == 'source' then + if source.mouse_wheel_move then source.mouse_wheel_move(dx,dy) end + else + assert(false, 'unknown app "'..Current_app..'"') + end +end + function love.quit() if Current_app == 'run' then local source_settings = Settings.source |