Update of touch configuration scene

This commit is contained in:
Squishy (C6H12O6+NaCl+H2O)
2024-05-24 23:23:36 +07:00
parent 48ce04507e
commit 84df78a528
5 changed files with 180 additions and 79 deletions

View File

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