本文整理汇总了C++中CCTouchDispatcher::setPriority方法的典型用法代码示例。如果您正苦于以下问题:C++ CCTouchDispatcher::setPriority方法的具体用法?C++ CCTouchDispatcher::setPriority怎么用?C++ CCTouchDispatcher::setPriority使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CCTouchDispatcher
的用法示例。
在下文中一共展示了CCTouchDispatcher::setPriority方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: setTouchPriority
void CWidgetLayout::setTouchPriority(int nTouchPriority)
{
if( m_nTouchPriority != nTouchPriority )
{
m_nTouchPriority = nTouchPriority;
if( m_bTouchEnabled && m_bRunning )
{
CCTouchDispatcher* pDispatcher = CCDirector::sharedDirector()->getTouchDispatcher();
pDispatcher->setPriority(nTouchPriority, this);
}
}
}
示例2: enableTouch
void MessageTableLayer::enableTouch(){
DialogLayer::enableTouch();
CCTouchDispatcher* pDispatcher = S_DR->getTouchDispatcher();
pDispatcher->setPriority(this->getDelegate()->topHandlerPriority()-1, m_pTableView);
}
示例3: enableTouch
void AchieveLayer::enableTouch(){
DialogLayer::enableTouch();
CCTouchDispatcher* pDispatcher = CCDirector::sharedDirector()->getTouchDispatcher();
pDispatcher->setPriority(this->getDelegate()->topHandlerPriority()-1, m_pTableView);
}
示例4: setHandlerPriority
void Props::setHandlerPriority(int newPriority)
{
CCTouchDispatcher* pDispatcher = CCDirector::sharedDirector()->getTouchDispatcher();
pDispatcher->setPriority(newPriority, this);
}
示例5: setTouchPriority
void Palette::setTouchPriority(int newVal)
{
CCTouchDispatcher* pDispatcher = CCDirector::sharedDirector()->getTouchDispatcher();
pDispatcher->setPriority(newVal, this);
}