//老版本cocos2d-x 2.x
addTouchEventListener(this, toucheventselector(MyLayer::touchEvent));
void touchEvent(cocos2d::Ref* pSender,cocos2d::ui::TouchEventType type)
//新版本cocos2d-x 3.x
addTouchEventListener( CC_CALLBACK_2( MyLayer::touchEvent,this ));
void touchEvent(cocos2d::Ref* pSender,cocos2d::ui::Widget::TouchEventType type);