mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
Update of touch configuration scene
This commit is contained in:
@@ -177,7 +177,7 @@ end
|
||||
|
||||
---@param force? boolean Forcing click on hidden widgets?
|
||||
function VCTRL.press(x,y,id,force)
|
||||
if not global_toggle then return end
|
||||
if not (global_toggle and id) then return end
|
||||
local obj,closestDist=false,1e99
|
||||
for _, w in ipairs(VCTRL) do
|
||||
if w.show or force then
|
||||
@@ -196,7 +196,7 @@ function VCTRL.press(x,y,id,force)
|
||||
end
|
||||
|
||||
function VCTRL.release(id)
|
||||
if not global_toggle then return end
|
||||
if not (global_toggle and id) then return end
|
||||
if touches[id] then
|
||||
touches[id]:release()
|
||||
touches[id]=nil
|
||||
|
||||
Reference in New Issue
Block a user