Ejemplo n.º 1
0
void CCTouchDispatcher::setPriority(int nPriority, CCTouchDelegate *pDelegate)
{
    CCAssert(pDelegate != NULL, "");

	CCTouchHandler *handler = NULL;

	handler = this->findHandler(pDelegate);

	CCAssert(handler != NULL, "");

	handler->setPriority(nPriority);

	this->rearrangeHandlers(m_pTargetedHandlers);
	this->rearrangeHandlers(m_pStandardHandlers);
}