mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
test
This commit is contained in:
@@ -8,7 +8,7 @@ TouchConfigScene.title = "Touchscreen config\n(you can tap anywhere on touch scr
|
|||||||
]]
|
]]
|
||||||
|
|
||||||
local buttonList = {
|
local buttonList = {
|
||||||
select_widget = BUTTON.new{
|
select_button = BUTTON.new{
|
||||||
text = "Select key\n[Rotate right 2]",
|
text = "Select key\n[Rotate right 2]",
|
||||||
x = 10, y = 10, w = 120, h = 110
|
x = 10, y = 10, w = 120, h = 110
|
||||||
},
|
},
|
||||||
@@ -83,7 +83,8 @@ function TouchConfigScene:onInputPress(e)
|
|||||||
end
|
end
|
||||||
---@param e SCENE_onInput
|
---@param e SCENE_onInput
|
||||||
function TouchConfigScene:onInputRelease(e)
|
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)
|
BUTTON.release(buttonList, e.x, e.y)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user