RT 我用的是 魅族的MX3!! 第一点会在第二点触摸的同时 ended。 也就是 没次began里 都只会有一个点的信息。。。。
self:setTouchEnabled(true)
self:setTouchMode(cc.TOUCH_MODE_ALL_AT_ONCE)
self:addNodeEventListener(cc.NODE_TOUCH_EVENT, function(event)
if event.name == "began" then
for id, point in pairs(event.points) do
printLog("touch", string.format("id: %s, x: %0.2f, y: %0.2f", point.id, point.x, point.y))
end
elseif event.name == "ended" then
printLog("touch", event.name)
for id, point in pairs(event.points) do
printLog("touchend", string.format("id: %s, x: %0.2f, y: %0.2f", point.id, point.x, point.y))
end
end
return true
end)
```