From bdb9eaf7481b4445779fa61b1af4057855da5022 Mon Sep 17 00:00:00 2001 From: "Squishy (C6H12O6+NaCl+H2O)" <106439598+SweetSea-ButImNotSweet@users.noreply.github.com> Date: Tue, 21 May 2024 23:51:49 +0700 Subject: [PATCH] test --- scene/touch_config.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scene/touch_config.lua b/scene/touch_config.lua index be744dc..ef97fe5 100644 --- a/scene/touch_config.lua +++ b/scene/touch_config.lua @@ -8,7 +8,7 @@ TouchConfigScene.title = "Touchscreen config\n(you can tap anywhere on touch scr ]] local buttonList = { - select_widget = BUTTON.new{ + select_button = BUTTON.new{ text = "Select key\n[Rotate right 2]", x = 10, y = 10, w = 120, h = 110 }, @@ -83,7 +83,8 @@ function TouchConfigScene:onInputPress(e) end ---@param e SCENE_onInput function TouchConfigScene:onInputRelease(e) - if e.x and e.y then + if e.type == "mouse" or e.type == "touch" then + error() BUTTON.release(buttonList, e.x, e.y) end end