Changeset 6266 for code/branches/presentation2/src/libraries/core/input
- Timestamp:
- Dec 7, 2009, 9:45:39 PM (15 years ago)
- Location:
- code/branches/presentation2/src/libraries/core/input
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/libraries/core/input/KeyBinderManager.cc
r6182 r6266 37 37 #include "InputManager.h" 38 38 #include "KeyDetector.h" 39 40 #include <CEGUIWindow.h> 39 41 40 42 namespace orxonox … … 90 92 else 91 93 this->bDefaultFileLoaded_ = false; 94 } 95 96 void KeyBinderManager::subscribeEventHelper(CEGUI::Window* window, const std::string& event, const std::string& function) 97 { 98 window->subscribeScriptedEvent(event, function); 92 99 } 93 100 -
code/branches/presentation2/src/libraries/core/input/KeyBinderManager.h
r6214 r6266 36 36 #include "util/Singleton.h" 37 37 #include "core/OrxonoxClass.h" 38 39 #include <CEGUIForwardRefs.h> 38 40 39 41 namespace orxonox //tolua_export … … 79 81 void setToDefault() 80 82 { this->setCurrent(this->defaultFilename_); } 83 84 void subscribeEventHelper(CEGUI::Window* window, const std::string& event, const std::string& function); //tolua_export 81 85 82 86 //! Returns a pointer to a KeyBinder (creates it if not yet loaded) … … 91 95 92 96 //! Bind 'command' to any key pressed after this call (use with care!) 93 inline void keybind(const std::string& command) 94 { this->keybindInternal(command, false); } 97 inline void keybind(const std::string& command) { this->keybindInternal(command, false); } //tolua_export 95 98 //! Bind 'command' to any key pressed after this call (use with care!), but temporarily (no file save) 96 99 inline void tkeybind(const std::string& command)
Note: See TracChangeset
for help on using the changeset viewer.