summaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-03-17 12:01:17 +0800
committerEltrac <hi@guhub.cn>2025-03-17 12:01:17 +0800
commitdb648db83a9e88a185a1a1efc0312815916d8d09 (patch)
tree0ea85f689fdb1afb32ecffa5e3f2c2a956235871 /main.lua
parent59fe8bcb4fa355f30d1981908353c2730fd157ed (diff)
feat(controller): use mouse wheel to quickly select next bullet
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua4
1 files changed, 4 insertions, 0 deletions
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())