Hidding the CEGUI mouse cursor using Ogre ( newbie question
Posted: Sun Aug 14, 2005 02:15
Hello everyone,
I have a question about the proper way to hide the mouse cursor using Ogre. Here's the situation :
1.) I have downloaded and compiled Ogre version 1.0.3 for Windows.
2.) I have downloaded and installed the Ogre Wizard, version 0.13.2, for the .Net frame work.
3.) I've created, compiled and run a simple application using the wizard mentionned above. Up to this point everything's going well.
4.) Now I wanted to test if I was able to hide the CEGUI mouse cursor. The idea being that I might want to make screenshots of the scene without the mouse cursor showing up. So what I did was to add two line to the keyPressed method of a class inhereting from FrameListener, actually ExampleFrameListener. These two lines are this :
if(e->getKey() == Ogre::KC_H)
CEGUI::MouseCursor::getSingleton().hide();
But this doesn't hide the mouse cursor. Can someone please tell me what I'm doing wrong or missing? I'm getting confused. I thank you all in advance for any help provided or any hints about my mistake.
PS : By the way if someone could explain the meaning of "injects a key down event to the system" that would be great? What system? Ogre? CEGUI? Windows? And how should I repond to this event?
I have a question about the proper way to hide the mouse cursor using Ogre. Here's the situation :
1.) I have downloaded and compiled Ogre version 1.0.3 for Windows.
2.) I have downloaded and installed the Ogre Wizard, version 0.13.2, for the .Net frame work.
3.) I've created, compiled and run a simple application using the wizard mentionned above. Up to this point everything's going well.
4.) Now I wanted to test if I was able to hide the CEGUI mouse cursor. The idea being that I might want to make screenshots of the scene without the mouse cursor showing up. So what I did was to add two line to the keyPressed method of a class inhereting from FrameListener, actually ExampleFrameListener. These two lines are this :
if(e->getKey() == Ogre::KC_H)
CEGUI::MouseCursor::getSingleton().hide();
But this doesn't hide the mouse cursor. Can someone please tell me what I'm doing wrong or missing? I'm getting confused. I thank you all in advance for any help provided or any hints about my mistake.
PS : By the way if someone could explain the meaning of "injects a key down event to the system" that would be great? What system? Ogre? CEGUI? Windows? And how should I repond to this event?