void GestureDetector::ccTouchesMoved(CCSet *pTouches, CCEvent *pEvent) { CC_UNUSED_PARAM(pEvent); CCPoint tTouchPoint; for (CCSetIterator iter = pTouches->begin(); iter != pTouches->end(); iter++) { CCTouch *touch = (CCTouch *) (*iter); if (mIgnoreProceeded && !touch->getProceeded()) { mCurrentTouch = touch; tTouchPoint = mCurrentTouch->getLocation(); touch->setProceeded(touchDragged(tTouchPoint, mCurrentTouch->getID())); } } }
void GestureDetector::ccTouchesBegan(CCSet *pTouches, CCEvent *pEvent) { CC_UNUSED_PARAM(pEvent); CCPoint tTouchPoint; // CCObject *pObj; // CCNode *pNode; for (CCSetIterator iter = pTouches->begin(); iter != pTouches->end(); iter++) { CCTouch *touch = (CCTouch *) (*iter); if (mIgnoreProceeded && !touch->getProceeded()) { mCurrentTouch = touch; tTouchPoint = mCurrentTouch->getLocation(); touch->setProceeded(touchDown(tTouchPoint, mCurrentTouch->getID())); } // CCARRAY_FOREACH(m_pTrackingNodes, pObj) { // pNode = static_cast<CCNode *>(pObj); // if (Utils::isNodeAtPoint(pNode, tTouchPoint)) { // touchDown(tTouchPoint.x, tTouchPoint.y, pTouch->getID()); // break; // } // } } }