Exemplo n.º 1
0
void GameLayer::onTouchesCancelled(const std::vector<Touch*>& touches, Event * event) {
    
    if(_gameOver || _is_character_moving)
        return;
    
    _isTouching = false;
    onTouchesEnded(touches, event);
}
Exemplo n.º 2
0
void HFViewport::onTouchesCancelled(const std::vector<Touch*>& pTouches, Event *pEvent)
{
    onTouchesEnded(pTouches, pEvent);
//    if(mIsProcessingScroll)
//    {
//        mIsProcessingScroll = false;
//        if (mTouchDelegate) {
//            CCTouch* objTouch = dynamic_cast<CCTouch*>(*pTouches.begin());
//            mTouchDelegate->onEndScroll(m_TargetNode->convertTouchToNodeSpace(objTouch));
//        }
//    }
}
Exemplo n.º 3
0
void MutiTouchTestLayer::onTouchesCancelled(const std::vector<Touch*>& touches, Event  *event)
{
    onTouchesEnded(touches, event);
}
Exemplo n.º 4
0
void JoyStick::onTouchesCancelled(const std::vector<Touch*>& touches, Event  *event) {onTouchesEnded(touches, event);}
Exemplo n.º 5
0
void PadControlLayer::onTouchesCancelled(const std::vector<Touch*>& touches, Event  *event)
{
    onTouchesEnded(touches, event);
}