Creator导出给2dx CPP用的如何调用控件~

初学2dx,我用Creator做了一个简单的场景,一个按钮(“button") 一个标签。
我用插件导出到2dx以后,`
creator::CreatorReader* reader = creator::CreatorReader::createWithFilename(“creator/main.ccreator”);
reader->setup();

// get the scene graph
Scene* scene = reader->getSceneGraph();
_button = scene->getChildByName("button");
_mouseListener = EventListenerMouse::create();
_mouseListener->onMouseDown = CC_CALLBACK_1(HelloWorld::onMouseDown,this);

_eventDispatcher->addEventListenerWithSceneGraphPriority(_mouseListener, this);
_eventDispatcher->addEventListenerWithSceneGraphPriority(_mouseListener->clone(), _button);

void HelloWorld::onMouseDown(cocos2d::Event* event)
{
EventMouse* m = (EventMouse*)event;
cocos2d::Node* p = m->getCurrentTarget();
if (p== _button)
{
log(u8"当前是按钮");
}
}

我希望这个按钮响应鼠标事件,为什么我这么操作以后 ,在OnMouseDown`,无论我是否点击按钮, 都会打印呢~~

你不仅把事件加到了 Button 上,还加到了 this 上

eventDispatcher->addEventListenerWithSceneGraphPriority(mouseListener, this);

我试过只加到button~ 点到背景上也会 响应###