- local id = createHUD()
- showHUD(id,"请点击屏幕开始显示坐标",20,"0xffff0000","0xffffffff",1,0,0,0,0)
- for i=1,1000 do
- local results = catchTouchPoint(1);
- if i == 1 then
- hideHUD(id)
- end
- for n = 1, #results do
- toast("第"..i.."个坐标为:".."x="..results[n].x..",y="..results[n].y);
- end
- end
复制代码 |