Changeset 11071 for code/trunk/src/libraries/core/input/KeyBinderManager.h
- Timestamp:
- Jan 17, 2016, 10:29:21 PM (8 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/libraries/core/input/KeyBinderManager.h
r9667 r11071 34 34 #include <map> 35 35 #include <string> 36 #include <memory> 36 37 37 38 #include "util/Singleton.h" … … 101 102 102 103 private: 103 KeyBinderManager(const KeyBinderManager&); 104 // non-copyable: 105 KeyBinderManager(const KeyBinderManager&) = delete; 106 KeyBinderManager& operator=(const KeyBinderManager&) = delete; 107 104 108 void keybindInternal(const std::string& command, bool bTemporary); 105 109 void keybindKeyPressed(const std::string& keyName); … … 107 111 108 112 // KeyBinder management 109 KeyBinder* currentBinder_; //! Currently selected KeyBinder (never NULL!)110 std::map<std::string, KeyBinder*> binders_; //! All loaded KeyBinders111 bool bDefaultFileLoaded_; //! Tells whether the default one is loaded112 std::string defaultFilename_; //! Name of the file with the default key bindings113 KeyBinder* currentBinder_; //! Currently selected KeyBinder (never nullptr!) 114 std::map<std::string, KeyBinder*> binders_; //! All loaded KeyBinders 115 bool bDefaultFileLoaded_; //! Tells whether the default one is loaded 116 std::string defaultFilename_; //! Name of the file with the default key bindings 113 117 114 118 // keybind command related 115 SharedPtr<LuaFunctor> callbackFunction_;//! Function to be called when key was pressed after "keybind" command116 bool bBinding_; //! Tells whether a key binding process is active117 bool bTemporary_; //! Stores tkeybind/keybind value118 std::string command_; //! Stores the command received by (t)keybind119 std::shared_ptr<LuaFunctor> callbackFunction_; //! Function to be called when key was pressed after "keybind" command 120 bool bBinding_; //! Tells whether a key binding process is active 121 bool bTemporary_; //! Stores tkeybind/keybind value 122 std::string command_; //! Stores the command received by (t)keybind 119 123 120 124 static KeyBinderManager* singletonPtr_s;
Note: See TracChangeset
for help on using the changeset viewer.