Changeset 3274 for code/branches/core4/src/orxonox/gui
- Timestamp:
- Jul 12, 2009, 4:12:04 PM (15 years ago)
- Location:
- code/branches/core4/src/orxonox/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core4/src/orxonox/gui/GUIManager.cc
r3261 r3274 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/branches/core4/src/orxonox/gui/GUIManager.h
r3261 r3274 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.