about summary refs log tree commit diff stats
path: root/main.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-05-11 21:55:06 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-05-11 21:55:06 -0700
commit4850e78568c89da414501259fc9472df87eec33b (patch)
treed690dd583a0f55cf063251ea7c29ba7ae3a048e4 /main.lua
parent83b893df8ceed11ad2d03ddd7b8c765be8ac577b (diff)
downloadlines.love-4850e78568c89da414501259fc9472df87eec33b.tar.gz
reorg
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.lua b/main.lua
index 12f03fb..6cb7a2e 100644
--- a/main.lua
+++ b/main.lua
@@ -88,6 +88,10 @@ function love.update(dt)
   end
 end
 
+function love.mousepressed(x,y, button)
+  propagate_to_button_handers(x,y, button)
+end
+
 function love.mousereleased(x,y, button)
   if lines.current then
     if lines.current.pending then
@@ -125,7 +129,3 @@ end
 
 function love.keyreleased(key, scancode)
 end
-
-function love.mousepressed(x,y, button)
-  propagate_to_button_handers(x,y, button)
-end