Cocs2dx with IMGUI

Hello folks!
I’ve been looking to create a particle editor using cocos2dx with IMGUI (thank you for the recommendation!).
I did manage to set up a cocos2dx project where I get the IMGUI layer on top of a cocos2dx scene but I don’t understand how I can transfer events/communicate from the IMGUI layer back to cocos2dx - mainly to change emitter parameters and see the changes.
Would love to get some help :sweat:

Perhaps this can help.