Page 1 of 1

SOLVED - how can I temporarily disable mouse events?

Posted: Wed Mar 28, 2007 19:53
by Arcanor
I'm using the following:

Code: Select all

CEGUI::MouseCursor::getSingleton().setMutedState(true);

... but when I double-click the cegui window's title bar it is still "rolling up". I would expect that in the muted state it shouldn't respond to the double-click. is that wrong?

I've also tried this with:

Code: Select all

CEGUI::System::getSingleton().setMutedState(true);

... but I still have same problem, as the cegui window continues to respond to the double-click event against my wishes.

How can I temporarily disable mouse events?

Posted: Wed Mar 28, 2007 22:54
by Arcanor
I have resolved this with the following code:

Code: Select all

CEGUI::System::getSingleton().getGUISheet()->setEnabled(false);