Page 1 of 1

Mouse Cursor Problems!!

Posted: Thu Feb 24, 2005 02:18
by Legolas1681
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:

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. :shock: 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. :oops: Disreguard this whole post.

Re: Mouse Cursor Problems!!

Posted: Thu Feb 24, 2005 09:51
by CrazyEddie
:hammer: :lol: :hammer:

Re: Mouse Cursor Problems!!

Posted: Thu Feb 24, 2005 18:07
by spannerman
Tee hee. Dont worry mate, Happens to the Best of Us (T.M.).