From db648db83a9e88a185a1a1efc0312815916d8d09 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Mon, 17 Mar 2025 12:01:17 +0800 Subject: feat(controller): use mouse wheel to quickly select next bullet --- main.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'main.lua') diff --git a/main.lua b/main.lua index 7a7ecef..df44043 100644 --- a/main.lua +++ b/main.lua @@ -82,6 +82,10 @@ function love.mousereleased(x, y, button) controller.mousereleased(x, y, button) end +function love.wheelmoved(x, y) + controller.wheelmoved(x, y) +end + function onContact(a, b, contact) local objectA = utils.whoseBody(a:getBody()) local objectB = utils.whoseBody(b:getBody()) -- cgit v1.2.3