auto listener = EventListenerTouchOneByOne::create();
listener->onTouchBegan = [](Touch * touch,Event* event){
utils::captureScreen([](bool flag,std::string filepath){ //是否成功,保存的路径
CCLOG("%s",filepath.c_str());
},"004.png");
return false;
};
Director::getInstance()->getEventDispatcher() ->addEventListenerWithSceneGraPHPriority(listener,this);