Changeset 7199 for code/branches/consolecommands3/src/libraries/core/input
- Timestamp:
- Aug 21, 2010, 10:20:09 PM (14 years ago)
- Location:
- code/branches/consolecommands3/src/libraries/core/input
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands3/src/libraries/core/input/KeyBinderManager.cc
r7198 r7199 34 34 #include "core/ConsoleCommand.h" 35 35 #include "core/CoreIncludes.h" 36 #include "core/LuaState.h" 36 37 #include "core/ScopedSingletonManager.h" 37 38 #include "InputManager.h" … … 187 188 // else: A key was probably pressed within the same tick, ignore it. 188 189 } 190 191 void KeyBinderManager::registerKeybindCallback(LuaFunctor* function) 192 { 193 this->callbackFunction_ = function; 194 } 189 195 } -
code/branches/consolecommands3/src/libraries/core/input/KeyBinderManager.h
r7198 r7199 99 99 void unbind(const std::string& binding); //tolua_export 100 100 void tunbind(const std::string& binding); 101 inline void registerKeybindCallback(const FunctorPtr& function) { this->callbackFunction_ = function; } // tolua//_//export // <-- FIXME101 void registerKeybindCallback(LuaFunctor* function); //tolua_export 102 102 103 103 private: … … 114 114 115 115 // keybind command related 116 FunctorPtr callbackFunction_;//! Function to be called when key was pressed after "keybind" command116 SharedPtr<LuaFunctor> callbackFunction_; //! Function to be called when key was pressed after "keybind" command 117 117 bool bBinding_; //! Tells whether a key binding process is active 118 118 bool bTemporary_; //! Stores tkeybind/keybind value
Note: See TracChangeset
for help on using the changeset viewer.