Changeset 3196 for code/trunk/src/orxonox/gui/GUIManager.h
- Timestamp:
- Jun 20, 2009, 9:20:47 AM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/pch (added) merged: 3114-3118,3124-3125,3127-3131,3133,3138-3194
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/gui/GUIManager.h
r3008 r3196 22 22 * Author: 23 23 * Reto Grieder 24 * Benjamin Knecht 24 25 * Co-authors: 25 * Benjamin Knecht26 * ... 26 27 * 27 28 */ 28 29 29 30 /** 30 @file 31 @brief Declaration of the GUIManager class. 31 @file 32 @brief 33 Declaration of the GUIManager class. 32 34 */ 33 35 … … 36 38 37 39 #include "OrxonoxPrereqs.h" 38 #include <OgrePrerequisites.h> 40 41 #include <map> 42 #include <string> 39 43 #include <CEGUIForwardRefs.h> 40 #include <CEGUIInputEvent.h> 41 #include <CEGUISystem.h>44 45 #include "util/OgreForwardRefs.h" 42 46 #include "core/input/InputInterfaces.h" 43 #include <map>44 #include "overlays/GUIOverlay.h"45 46 // Forward declaration47 namespace CEGUI { class DefaultLogger; }48 47 49 48 // tolua_begin … … 89 88 void executeCode(const std::string& str); 90 89 91 bool registerOverlay( std::stringname, GUIOverlay* overlay); //!< Register a GUIOverlay with the GUIManager.92 GUIOverlay* getOverlay( std::stringname); // Get the GUIOverlay of the GUI with the given name.90 bool registerOverlay(const std::string& name, GUIOverlay* overlay); //!< Register a GUIOverlay with the GUIManager. 91 GUIOverlay* getOverlay(const std::string& name); // Get the GUIOverlay of the GUI with the given name. 93 92 94 93 void setCamera(Ogre::Camera* camera); … … 105 104 106 105 // keyHandler functions 107 void keyPressed (const KeyEvent& evt) 108 { guiSystem_->injectKeyDown(evt.key); guiSystem_->injectChar(evt.text); } 109 void keyReleased(const KeyEvent& evt) 110 { guiSystem_->injectKeyUp(evt.key); } 106 void keyPressed (const KeyEvent& evt); 107 void keyReleased(const KeyEvent& evt); 111 108 void keyHeld (const KeyEvent& evt) { } 112 109 … … 115 112 void mouseButtonReleased(MouseButtonCode::ByEnum id); 116 113 void mouseButtonHeld (MouseButtonCode::ByEnum id) { } 117 void mouseMoved (IntVector2 abs, IntVector2 rel, IntVector2 clippingSize) 118 { guiSystem_->injectMouseMove(rel.x, rel.y); } 119 void mouseScrolled (int abs, int rel) 120 { guiSystem_->injectMouseWheelChange(rel);} 114 void mouseMoved (IntVector2 abs, IntVector2 rel, IntVector2 clippingSize); 115 void mouseScrolled (int abs, int rel); 121 116 122 117 void updateInput(float dt) { } 123 118 void updateKey (float dt) { } 124 119 void updateMouse(float dt) { } 125 126 static CEGUI::MouseButton convertButton(MouseButtonCode::ByEnum button);127 120 128 121 Ogre::RenderWindow* renderWindow_; //!< Ogre's render window to give CEGUI access to it
Note: See TracChangeset
for help on using the changeset viewer.