Changeset 5670 for code/branches/resource2/src/core/GUIManager.cc
- Timestamp:
- Aug 24, 2009, 9:43:34 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/resource2/src/core/GUIManager.cc
r5661 r5670 37 37 #include <CEGUIExceptions.h> 38 38 #include <CEGUIInputEvent.h> 39 #include <CEGUIMouseCursor.h> 39 40 #include <CEGUIResourceProvider.h> 40 41 #include <CEGUISystem.h> … … 96 97 @return true if success, otherwise false 97 98 */ 98 GUIManager::GUIManager(Ogre::RenderWindow* renderWindow )99 GUIManager::GUIManager(Ogre::RenderWindow* renderWindow, const std::pair<int, int>& mousePosition, bool bFullScreen) 99 100 : renderWindow_(renderWindow) 100 101 , resourceProvider_(0) … … 127 128 rootFileInfo_ = Resource::getInfo("InitialiseGUI.lua", "GUI"); 128 129 this->luaState_->doFile("InitialiseGUI.lua", "GUI", false); 130 131 // Align CEGUI mouse with OIS mouse 132 guiSystem_->injectMousePosition(mousePosition.first, mousePosition.second); 133 134 #ifdef ORXONOX_PLATFORM_WINDOWS 135 // Hide the mouse cursor unless playing in fullscreen mode 136 if (!bFullScreen) 137 CEGUI::MouseCursor::getSingleton().hide(); 138 #endif 129 139 } 130 140 … … 254 264 void GUIManager::mouseMoved(IntVector2 abs, IntVector2 rel, IntVector2 clippingSize) 255 265 { 256 guiSystem_->injectMouse Move(static_cast<float>(rel.x), static_cast<float>(rel.y));266 guiSystem_->injectMousePosition(static_cast<float>(abs.x), static_cast<float>(abs.y)); 257 267 } 258 268 void GUIManager::mouseScrolled(int abs, int rel)
Note: See TracChangeset
for help on using the changeset viewer.