cocos2dx3.0 多点触摸 为什么只有单点

void onTouchesBegan(const std::vector<Touch*>& touches,Event *event);
void onTouchesMoved(const std::vector<Touch*>& touches,Event *event);
void onTouchesEnded(const std::vector<Touch*>& touches,Event *event);

auto dispatcher = Director::getInstance()->getEventDispatcher();
auto listener = EventListenerTouchAllAtOnce::create();
listener->onTouchesBegan = CC_CALLBACK_2(GameLayer::onTouchesBegan,this);
listener->onTouchesMoved = CC_CALLBACK_2(GameLayer::onTouchesMoved,this);
listener->onTouchesEnded = CC_CALLBACK_2(GameLayer::onTouchesEnded,this);
dispatcher->addEventListenerWithSceneGraphPriority(listener, this);

void GameLayer::onTouchesBegan(const std::vector<Touch*>& touches,Event *event)
{
for( auto &item: touches)
{
auto touch = item;
Point p = touch->getLocation();

}

}

写的对啊 为什么只有单点

this->setTouchMode(Touch::DispatchMode::ALL_AT_ONCE);

是否将触摸方式设为多点的