触屏可以开关mod

This commit is contained in:
MrZ626
2020-11-21 21:16:32 +08:00
parent 046d173090
commit 95bee07317

View File

@@ -51,6 +51,13 @@ function mouseDown.mod(x,y,k)
SCN.back()
end
end
function touchMove.mod(_,x,y)
mouseMove.mod(x,y)
end
function touchDown.mod(_,x,y)
mouseMove.mod(x,y)
mouseDown.mod(x,y)
end
function keyDown.mod(key)
if key=="tab"or key=="delete"or key=="`"then
for _,M in next,MODOPT do