Blocked Touch in Menu

Hello!

I have a menu scene where I pick up 1 of 3 games that I have, I have also a NagivatorMenu thanks to which I can come back to the MainMenu scene where again I can pick 1 of 3 games however when I come back from the Games and create a new MainMenu scene my touch for the 3 menu buttons (corresponding to the games) are blocked. Is there an easy way to bring back the touches? My MainMenu is for now really simple:

bool MainMenu::init()
{
    if ( !Layer::init() )
    {
        return false;
    }
    
    Size visibleSize = Director::getInstance()->getVisibleSize();
    Vec2 origin = Director::getInstance()->getVisibleOrigin();
    
    auto menu_item_1 = MenuItemFont::create("Game1", CC_CALLBACK_1(MainMenu::Game1, this));
    auto menu_item_2 = MenuItemFont::create("Game2", CC_CALLBACK_1(MainMenu::Game2, this));
    auto menu_item_3 = MenuItemFont::create("Game3", CC_CALLBACK_1(MainMenu::Game3, this));
            
    menu_item_1->setPosition(Point(100, 200));
    menu_item_2->setPosition(Point(600, 400));
    menu_item_3->setPosition(Point(1000, 600));
    
    auto *menu = Menu::create(menu_item_1, menu_item_2, menu_item_3, NULL);
    menu->setPosition(Point(0, 0));
    this->addChild(menu);
    
    return true;
}

For my Game 1-3 I have a EventListenerHelper which is a singleton, so every time a PopUp window or something appears I block the touches like this:

EventListenerHandler::getInstance()->getSceneListener()->setEnabled(false);

But in the MainMenu scene I dont have a listener or anything, just the 3 buttons, and they are blocked :frowning:

Any idea whats wrong?

EDIT:
I also tried:

Director::getInstance()->getEventDispatcher()->removeAllEventListeners();

But did not help :frowning:

why don’t you try to remove them when you are coming back from your game to the main scene again…!!

Is that not working… ??

@pabitrapadhy
Nope, it does not work :confused: Somehow I’m completely losing control of the touches when I go back grrr :confused: Is there a way to completely clean the listeners and stuff like this? So we just start from “clean” beginning?