TouchElf是否支持多点触控

发布于 2021-02-12 12:11:02

以下代码无法在iPad上缩小屏幕。 有人知道TouchElf是否支持多点触控吗?

y1 = 1000
y2 = 400
touchDown(1, 1000, y1)
touchDown(2, 1000, y2)
mSleep(500) -- 1st sleep after touchDown needs to around half a second for it to register

-- keep zooming out until the "fingers" are close together
while math.abs(y1-y2) > 20 do
   touchMove(1, 1000, y1)
   touchMove(2, 1000, y2)
   y1 = y1 - 10 
   y2 = y2 + 10
   -- you can change the 10's to whatever you want - lower = slower zooming. 
   -- (for a 300px distance, I recommend a change less than 20)
   mSleep(30)
end

touchUp(1, 1000, y1)
touchUp(2, 1000, y2)

查看更多

关注者
0
被浏览
629
1 个回答
Evan
Evan 认证专家 2021-02-23

支持的.手册触摸模块里面的滑动下面有例子

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览