Mouse Cursor Problems!!

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
Legolas1681
Not too shy to talk
Not too shy to talk
Posts: 24
Joined: Fri Jan 28, 2005 00:32

Mouse Cursor Problems!!

Postby Legolas1681 » 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:

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.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Mouse Cursor Problems!!

Postby CrazyEddie » Thu Feb 24, 2005 09:51

:hammer: :lol: :hammer:

User avatar
spannerman
Home away from home
Home away from home
Posts: 330
Joined: Wed Jan 12, 2005 12:06

Re: Mouse Cursor Problems!!

Postby spannerman » Thu Feb 24, 2005 18:07

Tee hee. Dont worry mate, Happens to the Best of Us (T.M.).


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 10 guests