cocos2dx 事件问题

首先我是小白蛤,
---------------------------背景分割线

写了一个虚拟摇杆,在事件中只能处理当前精灵,如果我需要处理主角和地图一起移动怎么办,?

//触摸移动事件
    joystickEvent->onTouchMoved = [](Touch* touch,Event* event){
        //获取事件精灵
        auto target = static_cast<Sprite*>(event->getCurrentTarget());
        Point s = target->convertToNodeSpaceAR(touch->getStartLocation());
        log("%f++++%f",s.x,s.y);

        target->setPosition(target->getPosition() + touch->getDelta());
        return true;
    };
    
    //触摸结束事件
    joystickEvent->onTouchEnded = [](Touch* touch,Event* event){
        //获取事件精灵
        auto target = static_cast<Sprite*>(event->getCurrentTarget());
        Size  size = target->getContentSize();
        //松手回到原坐标
        target->setPosition(size.width,size.height);
        return true;
    };