diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-06-12 10:46:25 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-06-12 10:59:42 -0700 |
commit | 26640c9101c68f504a552e131e35dd9063172c45 (patch) | |
tree | f122ee691fd9b972e5c57de3828c3b2a8a573832 /app.lua | |
parent | 4f6478483306bcd1f1b8aa033134b20c4a116aad (diff) | |
download | view.love-26640c9101c68f504a552e131e35dd9063172c45.tar.gz |
new test
For commit e4e12c77ad which fixed a regression caused by commit 24a0d162ef.
Diffstat (limited to 'app.lua')
-rw-r--r-- | app.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app.lua b/app.lua index ae36495..20fd027 100644 --- a/app.lua +++ b/app.lua @@ -236,6 +236,15 @@ function App.run_after_keychord(key) App.draw() end +function App.run_after_mouse_click(x,y, button) + App.fake_mouse_press(x,y, button) + App.mousepressed(x,y, button) + App.fake_mouse_release(x,y, button) + App.mousereleased(x,y, button) + App.screen.contents = {} + App.draw() +end + function App.run_after_mouse_press(x,y, button) App.fake_mouse_press(x,y, button) App.mousepressed(x,y, button) |