Changeset 3327 for code/trunk/src/orxonox/gui
- Timestamp:
- Jul 19, 2009, 5:31:02 PM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core4 merged: 3269,3271-3275,3278,3285,3290-3294,3310
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/gui/GUIManager.cc
r3287 r3327 69 69 void logEvent(const CEGUI::String& message, CEGUI::LoggingLevel level = CEGUI::Standard) 70 70 { 71 int orxonoxLevel ;71 int orxonoxLevel = CEGUI::Standard; 72 72 switch (level) 73 73 { … … 366 366 void GUIManager::keyPressed(const KeyEvent& evt) 367 367 { 368 guiSystem_->injectKeyDown(evt.key); guiSystem_->injectChar(evt.text); 368 guiSystem_->injectKeyDown(evt.getKeyCode()); 369 guiSystem_->injectChar(evt.getText()); 369 370 } 370 371 void GUIManager::keyReleased(const KeyEvent& evt) 371 372 { 372 guiSystem_->injectKeyUp(evt. key);373 guiSystem_->injectKeyUp(evt.getKeyCode()); 373 374 } 374 375 … … 382 383 It is for CEGUI to process the event. 383 384 */ 384 void GUIManager:: mouseButtonPressed(MouseButtonCode::ByEnum id)385 void GUIManager::buttonPressed(MouseButtonCode::ByEnum id) 385 386 { 386 387 try … … 404 405 It is for CEGUI to process the event. 405 406 */ 406 void GUIManager:: mouseButtonReleased(MouseButtonCode::ByEnum id)407 void GUIManager::buttonReleased(MouseButtonCode::ByEnum id) 407 408 { 408 409 try -
code/trunk/src/orxonox/gui/GUIManager.h
r3280 r3327 44 44 45 45 #include "util/OgreForwardRefs.h" 46 #include "core/input/Input Interfaces.h"46 #include "core/input/InputHandler.h" 47 47 48 48 // tolua_begin … … 62 62 class _OrxonoxExport GUIManager 63 63 // tolua_end 64 : public KeyHandler, public MouseHandler64 : public InputHandler 65 65 // tolua_begin 66 66 { … … 106 106 void keyPressed (const KeyEvent& evt); 107 107 void keyReleased(const KeyEvent& evt); 108 void keyHeld (const KeyEvent& evt) { }109 108 110 109 // mouseHandler functions 111 void mouseButtonPressed (MouseButtonCode::ByEnum id); 112 void mouseButtonReleased(MouseButtonCode::ByEnum id); 113 void mouseButtonHeld (MouseButtonCode::ByEnum id) { } 114 void mouseMoved (IntVector2 abs, IntVector2 rel, IntVector2 clippingSize); 115 void mouseScrolled (int abs, int rel); 116 117 void updateInput(float dt) { } 118 void updateKey (float dt) { } 119 void updateMouse(float dt) { } 110 void buttonPressed (MouseButtonCode::ByEnum id); 111 void buttonReleased(MouseButtonCode::ByEnum id); 112 void mouseMoved (IntVector2 abs, IntVector2 rel, IntVector2 clippingSize); 113 void mouseScrolled (int abs, int rel); 120 114 121 115 Ogre::RenderWindow* renderWindow_; //!< Ogre's render window to give CEGUI access to it
Note: See TracChangeset
for help on using the changeset viewer.