haltendehand
09-08-2010 22:38:59
Hello,
I have a little problem with QuickGUI, which is that I can move the mouse pointer only for some(probably about 50)pixels. Everything else works great, including buttons.
Here is the code for the GUI initialization:
header:
.cpp:
I found out that all input is correctly injected, even after it's out of the "moving space".
I have a little problem with QuickGUI, which is that I can move the mouse pointer only for some(probably about 50)pixels. Everything else works great, including buttons.
Here is the code for the GUI initialization:
header:
QuickGUI::Root* QuickGUIRoot;
QuickGUI::Button* ExitButton;
QuickGUI::GUIManager* MainGUIManager;
.cpp:
QuickGUIRoot = new QuickGUI::Root();
QuickGUI::SkinTypeManager::getSingleton().loadTypes();
QuickGUI::GUIManagerDesc MainManagerDesc;
MainManagerDesc.sceneManager = MainSceneManager;
MainManagerDesc.viewport = MainRenderWindow->getViewport(0);
MainManagerDesc.queueID = Ogre::RENDER_QUEUE_OVERLAY;
MainGUIManager = QuickGUI::Root::getSingletonPtr()->createGUIManager(MainManagerDesc);
QuickGUI::SheetDesc* MainSheetDesc = QuickGUI::DescManager::getSingleton().getDefaultSheetDesc();
MainSheetDesc->resetToDefault();
MainSheetDesc->widget_dimensions.size = QuickGUI::Size(1280, 1024);//I've also tried to set it to the size of the viewport
QuickGUI::Sheet* MainSheet = QuickGUI::SheetManager::getSingleton().createSheet(MainSheetDesc);
MainGUIManager->setActiveSheet(MainSheet);
I found out that all input is correctly injected, even after it's out of the "moving space".