Exemple #1
0
void CCEGLViewProtocol::handleTouchesCancel(int num, int ids[], float xs[],
											float ys[])
{
	CCSet set;
	getSetOfTouchesEndOrCancel(set, num, ids, xs, ys);
	m_pDelegate->touchesCancelled(&set, NULL);
}
Exemple #2
0
void CCEGLViewProtocol::handleTouchesCancel(int num, int ids[], float xs[], float ys[])
{
    CCSet set;
    CCEvent event;
    CCSet *allTouches= new CCSet;
    allTouches->autorelease();
    getCurrentSetOfTouches(*allTouches);
    event.setAllTouches(allTouches);
    getSetOfTouchesEndOrCancel(set, num, ids, xs, ys);
    m_pDelegate->touchesCancelled(&set, &event);
}
void CCEGLViewProtocol::handleTouchesCancel(int num, intptr_t ids[], float xs[], float ys[], CAEvent* event)
{
    CCSet set;
    getSetOfTouchesEndOrCancel(set, num, ids, xs, ys, event);
    m_pDelegate->touchesCancelled(&set, event);
}
void EGLViewProtocol::handleTouchesEnd(int num, int ids[], float xs[], float ys[])
{
    Set set;
    getSetOfTouchesEndOrCancel(set, num, ids, xs, ys);
    _delegate->touchesEnded(&set, NULL);
}