I'm creating the root window on the init of the GUI like that :
Code: Select all
// Create the root window and set it as root window.
CEGUI::Window* RootWindow = CEGUI::WindowManager::getSingleton().createWindow( "DefaultWindow", "Root" );
CEGUI::System::getSingleton().getDefaultGUIContext().setRootWindow( RootWindow );
RootWindow->setMousePassThroughEnabled( true );
When I load layout I set the root of the loaded layout as child.
I have to set setMousePassThroughEnabled to true to not have the input issue because I bypass my events based on the return of the events of CEGUI.
Is it the correct method to use CEGUI ?
Thanks