We have a GUISheet always present (it's transparent). All windows are a child of the GUISheet.
Here is what I am trying to do now:
Code: Select all
void clsFPFlightControl::readFlightControlMouse(void)
{
....
// Don't process mouse stuff if CEGUI has control of the mouse.
if ( mCEGUISystem->getGUISheet()->getActiveChild()->getName() != "RootSheet" ) return;
...
}
That sort-of works. What happens is, when a CHILD Window becomes active, the mouse works properly (i.e. the RETURN executes), but when the CHILD window is hidden, the above statement still returns the CHILD as being active.
What I am trying to do in code is this statement:
If ONLY the RootSheet is visible, then allow mouse input, otherwise, return. I suspect I am making this more complicated than it needs to be. Any help would be appreciated.
