This commit is contained in:
Squishy (C6H12O6+NaCl+H2O)
2024-05-21 23:51:49 +07:00
parent 083a642ab3
commit bdb9eaf748

View File

@@ -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