Mouse problems
Posted: Wed Feb 23, 2005 12:32
I don't know if anyone can help me, but i'm having problems with using the mouse in CEGUI... I am using Ogre 1.0 and have basically comented out and adjust the Gui tutorial that comes standard with that. My create Scene function is below..
The main problem i am having is with my mouse... It seems to be random as to whether it shows it or not. I can't really understand it. I have set the scene up with the standard GuiFrameListener from the tutorial and adjusted to my own layout, posted here
I have compiled this and get no errors and even run it and sometimes it works and then seems to not work for a while, i don't know if my layout is wrong or code, has any body else had any problems with the mouse or are there any common faults that i should know about...
Thanks for any help
Code: Select all
void GuiApplication::createScene(void)
{
// Setup the scene
...................
// setup GUI system
mGUIRenderer = new CEGUI::OgreRenderer(mWindow,Ogre::RENDER_QUEUE_OVERLAY, false, 3000);
mGUISystem = new CEGUI::System(mGUIRenderer);
CEGUI::Logger::getSingleton().setLoggingLevel(CEGUI::Informative);
// load scheme and set up defaults
CEGUI::SchemeManager::getSingleton().loadScheme((CEGUI::utf8*)"TaharezLook.scheme");
mGUISystem->setDefaultMouseCursor((CEGUI::utf8*)"TaharezLook", (CEGUI::utf8*)"MouseArrow");
mGUISystem->setDefaultFont((CEGUI::utf8*)"Tahoma-12");
// Main bits loads and shows my layout
guiWindow = CEGUI::WindowManager::getSingleton().loadWindowLayout((CEGUI::utf8*)"gamegui.layout");
mGUISystem->setGUISheet(guiWindow);
// To handle events
setupEventHandlers();
}
The main problem i am having is with my mouse... It seems to be random as to whether it shows it or not. I can't really understand it. I have set the scene up with the standard GuiFrameListener from the tutorial and adjusted to my own layout, posted here
I have compiled this and get no errors and even run it and sometimes it works and then seems to not work for a while, i don't know if my layout is wrong or code, has any body else had any problems with the mouse or are there any common faults that i should know about...
Thanks for any help