From c2eee640cfd01d64e1a0576ca3d6d99d6615561d Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 25 May 2022 13:38:33 -0700 Subject: test and App helper for mouse clicks --- app.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app.lua') diff --git a/app.lua b/app.lua index 311be18..3ed3aa8 100644 --- a/app.lua +++ b/app.lua @@ -186,6 +186,12 @@ function App.run_after_keychord(key) App.draw() end +function App.run_after_mousepress(x,y, button) + App.mousepressed(x,y, button) + App.screen.contents = {} + App.draw() +end + function App.width(text) return text.text:getWidth() end -- cgit 1.4.1-2-gfad0