diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-05-12 08:27:41 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-05-12 08:27:41 -0700 |
commit | 07e2b7b897b087b187f6f74e765fd3ba100ec96f (patch) | |
tree | c893e622243098ddb408c2241ef707b9a69a51ce | |
parent | eef22f424268d7927890df804c64fb9c219bf1a6 (diff) | |
download | text.love-07e2b7b897b087b187f6f74e765fd3ba100ec96f.tar.gz |
fix a typo
-rw-r--r-- | button.lua | 2 | ||||
-rw-r--r-- | main.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/button.lua b/button.lua index c495b5f..10f32ff 100644 --- a/button.lua +++ b/button.lua @@ -9,7 +9,7 @@ function button(name, params) end -- process button event handlers -function propagate_to_button_handers(x, y, button) +function propagate_to_button_handlers(x, y, button) for _,ev in ipairs(button_handlers) do if x>ev.x and x<ev.x+ev.w and y>ev.y and y<ev.y+ev.h then if ev.onpress1 and button == 1 then ev.onpress1() end diff --git a/main.lua b/main.lua index e612448..00014a5 100644 --- a/main.lua +++ b/main.lua @@ -92,7 +92,7 @@ function love.update(dt) end function love.mousepressed(x,y, button) - propagate_to_button_handers(x,y, button) + propagate_to_button_handlers(x,y, button) propagate_to_drawings(x,y, button) end |