Mouse Cursor Problems!!
Posted: Thu Feb 24, 2005 02:18
Okay, I've set up my application to hide the cursor when I switch to unbuffered mouse input, but when I call 'show()' to bring it back upon entering buffered mouse input, nothing shows up. It's processing the mouse because I can get it to bring down a dropbox, etc., but it's still invisible. I've even tried implicitly resetting them cursor image, but to no evail. Any help here would be great.
Here's the code snippet I use to hide it:
And then to bring it back:
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.
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.