- Timestamp:
- Dec 9, 2009, 12:43:12 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/libraries/core/input/KeyBinderManager.h
r6280 r6281 34 34 #include <map> 35 35 #include <string> 36 #include <boost/shared_ptr.hpp> 37 #include <CEGUIForwardRefs.h> 38 36 39 #include "util/Singleton.h" 37 40 #include "core/OrxonoxClass.h" 38 39 #include <CEGUIForwardRefs.h>40 41 41 42 namespace orxonox //tolua_export … … 99 100 inline void tkeybind(const std::string& command) 100 101 { this->keybindInternal(command, true); } 102 inline void registerKeybindCallback(Functor* function) { this->callbackFunction_.reset(function); } // tolua_export 101 103 102 104 private: 103 105 KeyBinderManager(const KeyBinderManager&); 104 106 void keybindInternal(const std::string& command, bool bTemporary); 105 void callback(const std::string& keyName);107 void keybindKeyPressed(const std::string& keyName); 106 108 void defaultFilenameChanged(); 107 109 … … 113 115 114 116 // keybind command related 115 Functor* callbackFunction_;//! Function to be called when key was pressed after "keybind" command117 shared_ptr<Functor> callbackFunction_; //! Function to be called when key was pressed after "keybind" command 116 118 bool bBinding_; //! Tells whether a key binding process is active 117 119 bool bTemporary_; //! Stores tkeybind/keybind value
Note: See TracChangeset
for help on using the changeset viewer.