Here's the code snippet I use to hide it:
Code: Select all
CEGUI::MouseCursor::getSingleton().hide();
And then to bring it back:
Code: Select all
using namespace CEGUI;
MouseCursor::getSingleton().show();
MouseCursor::getSingleton().setImage ( ( &ImagesetManager::getSingleton().getImageset ( ( utf8* ) "QMX_GUI" )->getImage ( ( utf8* ) "DefaultMouseCursor" ) ) );
Edit:
Okay, just found something intersting... Whenever the keyboard is set to buffered mode in OGRE, the mouse cursor will not reappear after hiding it until the keyboard is switched to unbuffered mode. Surely this was not an intended behavior.
Edit:
DOH!! Forgive my stupidity... I simply had the code to show and hide the cursor in the wrong place. Disreguard this whole post.