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; }
void Layer::ccTouchCancelled(Touch *pTouch, Event *pEvent) { if (kScriptTypeNone != _scriptType) { executeScriptTouchHandler(CCTOUCHCANCELLED, pTouch); return; } CC_UNUSED_PARAM(pTouch); CC_UNUSED_PARAM(pEvent); }
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); }
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; }
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; }
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); }
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 }