From 200d270fee98bb618f3c768399a96264c7cb4d0f Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Wed, 22 Dec 2021 21:22:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=86=E6=9E=B6=E4=BC=9A=E7=BB=99=E5=9C=BA?= =?UTF-8?q?=E6=99=AF=E6=8F=90=E4=BE=9B=E8=A7=A6=E6=91=B8id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Zframework/init.lua b/Zframework/init.lua index 8d8b9325..dc5f9d93 100644 --- a/Zframework/init.lua +++ b/Zframework/init.lua @@ -249,13 +249,13 @@ function love.touchpressed(id,x,y) x,y=ITP(xOy,x,y) lastX,lastY=x,y WIDGET.cursorMove(x,y) - if SCN.touchDown then SCN.touchDown(x,y)end + if SCN.touchDown then SCN.touchDown(x,y,id)end if kb.hasTextInput()then kb.setTextInput(false)end end -function love.touchmoved(_,x,y,dx,dy) +function love.touchmoved(id,x,y,dx,dy) if SCN.swapping then return end x,y=ITP(xOy,x,y) - if SCN.touchMove then SCN.touchMove(x,y,dx/SCR.k,dy/SCR.k)end + if SCN.touchMove then SCN.touchMove(x,y,dx/SCR.k,dy/SCR.k,id)end WIDGET.drag(x,y,dx/SCR.k,dy/SCR.k) end function love.touchreleased(id,x,y) @@ -268,7 +268,7 @@ function love.touchreleased(id,x,y) WIDGET.unFocus() SCN.mainTouchID=false end - if SCN.touchUp then SCN.touchUp(x,y)end + if SCN.touchUp then SCN.touchUp(x,y,id)end if(x-lastX)^2+(y-lastY)^2<62 then if SCN.touchClick then SCN.touchClick(x,y)end if showClickFX then SYSFX.newTap(3,x,y)end