This commit is contained in:
Mikayla Fischler
2022-06-11 16:38:15 -04:00
parent 0950fc045d
commit 3004902ce5
3 changed files with 9 additions and 5 deletions

View File

@@ -29,9 +29,11 @@ local function push_button(args)
-- write the button text
e.window.setCursorPos(h_pad, v_pad)
e.write(args.text)
e.window.write(args.text)
-- handle touch
---@param event monitor_touch monitor touch event
---@diagnostic disable-next-line: unused-local
function e.handle_touch(event)
if args.active_fg_bg ~= nil then
-- show as pressed