debug模式鼠标单击输出信息升级

This commit is contained in:
MrZ626
2020-11-16 11:33:51 +08:00
parent b1c15750b4
commit 025ef02e71

View File

@@ -94,7 +94,10 @@ function love.mousepressed(x,y,k,touch)
if touch then return end
mouseShow=true
mx,my=xOy:inverseTransformPoint(x,y)
if devMode==1 then DBP(mx,my)end
if devMode==1 then
local dx,dy=mx-lastX,my-lastY
DBP(("(%d,%d), D=(%d,%d)~~(%d,%d)(%d,%d)"):format(mx,my,dx,dy,int(mx/10)*10,int(my/10)*10,int(dx/10)*10,int(dy/10)*10))
end
if SCN.swapping then return end
if mouseDown[SCN.cur]then
mouseDown[SCN.cur](mx,my,k)