void LuaEventNode::ccTouchesCancelled(const std::vector<Touch*>& touches, Event *pEvent)
{
    CC_UNUSED_PARAM(touches);
    CC_UNUSED_PARAM(pEvent);
    {
        executeScriptTouchHandler(CCTOUCHCANCELLED, touches);
    }
}
void LuaEventNode::ccTouchesRemoved(const std::vector<Touch*>& touches, Event *pEvent)
{
    CC_UNUSED_PARAM(touches);
    CC_UNUSED_PARAM(pEvent);
    {
        executeScriptTouchHandler(CCTOUCHREMOVED, touches);
    }
}
void LuaEventNode::ccTouchCancelled(Touch *pTouch, Event *pEvent)
{
    CC_UNUSED_PARAM(pTouch);
    CC_UNUSED_PARAM(pEvent);
    {
        executeScriptTouchHandler(CCTOUCHCANCELLED, pTouch);
    }
}
void LuaEventNode::ccTouchesBegan(const std::vector<Touch*>& touches, Event *pEvent)
{
    CC_UNUSED_PARAM(touches);
    CC_UNUSED_PARAM(pEvent);
    {
        executeScriptTouchHandler(CCTOUCHBEGAN, touches);
    }
}
void LuaEventNode::ccTouchCaptureCancelled(Touch *pTouch, LuaEventNode *pTarget)
{
    CC_UNUSED_PARAM(pTouch);
    CC_UNUSED_PARAM(pTarget);
    {
        executeScriptTouchHandler(CCTOUCHCANCELLED, pTouch, NODE_TOUCH_CAPTURING_PHASE);
    }
}
void LuaEventNode::ccTouchEnded(Touch *pTouch, Event *pEvent)
{
    CC_UNUSED_PARAM(pTouch);
    CC_UNUSED_PARAM(pEvent);
    {
        executeScriptTouchHandler(CCTOUCHENDED, pTouch);
    }
}
void LuaEventNode::ccTouchesCaptureRemoved(const std::vector<Touch*>& touches, LuaEventNode *pTarget)
{
    CC_UNUSED_PARAM(touches);
    CC_UNUSED_PARAM(pTarget);
    {
        executeScriptTouchHandler(CCTOUCHREMOVED, touches, NODE_TOUCH_CAPTURING_PHASE);
    }
}
bool LuaEventNode::ccTouchCaptureMoved(Touch *pTouch, LuaEventNode *pTarget)
{
    CC_UNUSED_PARAM(pTouch);
    CC_UNUSED_PARAM(pTarget);
    {
        return executeScriptTouchHandler(CCTOUCHMOVED, pTouch, NODE_TOUCH_CAPTURING_PHASE);
    }
}
bool LuaEventNode::ccTouchBegan(Touch *pTouch, Event *pEvent)
{
    CC_UNUSED_PARAM(pTouch);
    CC_UNUSED_PARAM(pEvent);
    {
        executeScriptTouchHandler(CCTOUCHBEGAN, pTouch);
    }
    return true;
}
Ejemplo n.º 10
0
void Layer::ccTouchCancelled(Touch *pTouch, Event *pEvent)
{
    if (kScriptTypeNone != _scriptType)
    {
        executeScriptTouchHandler(CCTOUCHCANCELLED, pTouch);
        return;
    }

    CC_UNUSED_PARAM(pTouch);
    CC_UNUSED_PARAM(pEvent);
}    
Ejemplo n.º 11
0
void Layer::onTouchCancelled(Touch *touch, Event *event)
{
#if CC_ENABLE_SCRIPT_BINDING
    if (kScriptTypeLua == _scriptType)
    {
        executeScriptTouchHandler(EventTouch::EventCode::CANCELLED, touch, event);
        return;
    }
#endif
    
    CC_UNUSED_PARAM(event);
}    
Ejemplo n.º 12
0
bool Layer::onTouchBegan(Touch *touch, Event *event)
{
#if CC_ENABLE_SCRIPT_BINDING
    if (kScriptTypeLua == _scriptType)
    {
        return executeScriptTouchHandler(EventTouch::EventCode::BEGAN, touch, event) == 0 ? false : true;
    }
#endif
    CC_UNUSED_PARAM(event);
    CCASSERT(false, "Layer#ccTouchBegan override me");
    return true;
}
Ejemplo n.º 13
0
bool Layer::ccTouchBegan(Touch *pTouch, Event *pEvent)
{
    if (kScriptTypeNone != _scriptType)
    {
        return executeScriptTouchHandler(CCTOUCHBEGAN, pTouch) == 0 ? false : true;
    }

    CC_UNUSED_PARAM(pTouch);
    CC_UNUSED_PARAM(pEvent);
    CCASSERT(false, "Layer#ccTouchBegan override me");
    return true;
}
Ejemplo n.º 14
0
void System::onTouchEnded(Touch *touch, Event *event)
{
#if CC_ENABLE_SCRIPT_BINDING
    if (kScriptTypeLua == _scriptType)
    {
        executeScriptTouchHandler(EventTouch::EventCode::ENDED, touch, event);
        return;
    }
#endif
    
    CC_UNUSED_PARAM(event);
}
Ejemplo n.º 15
0
void Layer::onTouchMoved(Touch *touch, Event *event)
{
#if CC_ENABLE_SCRIPT_BINDING
    if (kScriptTypeLua == _scriptType)
    {
        executeScriptTouchHandler(EventTouch::EventCode::MOVED, touch, event);
        return;
    }
#else
    CC_UNUSED_PARAM(touch);
    CC_UNUSED_PARAM(event);
#endif
}