Changeset 3143 for code/branches/pch/src/orxonox/gui/GUIManager.h
- Timestamp:
- Jun 10, 2009, 10:54:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pch/src/orxonox/gui/GUIManager.h
r3008 r3143 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" 40 41 #include <map> 42 #include <string> 38 43 #include <OgrePrerequisites.h> 39 44 #include <CEGUIForwardRefs.h> 40 #include <CEGUIInputEvent.h> 41 #include <CEGUISystem.h> 45 42 46 #include "core/input/InputInterfaces.h" 43 #include <map>44 #include "overlays/GUIOverlay.h"45 47 46 48 // Forward declaration … … 105 107 106 108 // 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); } 109 void keyPressed (const KeyEvent& evt); 110 void keyReleased(const KeyEvent& evt); 111 111 void keyHeld (const KeyEvent& evt) { } 112 112 … … 115 115 void mouseButtonReleased(MouseButtonCode::ByEnum id); 116 116 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);} 117 void mouseMoved (IntVector2 abs, IntVector2 rel, IntVector2 clippingSize); 118 void mouseScrolled (int abs, int rel); 121 119 122 120 void updateInput(float dt) { } 123 121 void updateKey (float dt) { } 124 122 void updateMouse(float dt) { } 125 126 static CEGUI::MouseButton convertButton(MouseButtonCode::ByEnum button);127 123 128 124 Ogre::RenderWindow* renderWindow_; //!< Ogre's render window to give CEGUI access to it
Note: See TracChangeset
for help on using the changeset viewer.