- Timestamp:
- Dec 2, 2009, 8:41:44 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/libraries/core/input/KeyBinder.h
r6155 r6214 43 43 #include "JoyStickQuantityListener.h" 44 44 45 // tolua_begin 45 46 namespace orxonox 46 47 { 48 // tolua_end 47 49 /** 48 50 @brief … … 54 56 KeyBinders. If you need to load other bindings, just create a new one. 55 57 */ 56 class _CoreExport KeyBinder : public InputHandler, public JoyStickQuantityListener 57 { 58 class _CoreExport KeyBinder // tolua_export 59 : public InputHandler, public JoyStickQuantityListener 60 { // tolua_export 58 61 public: 59 62 KeyBinder (const std::string& filename); … … 62 65 void clearBindings(); 63 66 bool setBinding(const std::string& binding, const std::string& name, bool bTemporary = false); 67 std::string getBinding(std::string commandName); //tolua_export 64 68 const std::string& getBindingsFilename() 65 69 { return this->filename_; } … … 130 134 //! Pointer list with all half axes 131 135 std::vector<HalfAxis*> allHalfAxes_; 136 //! Maps input commands to all Button names, including half axes 137 std::map<std::string, std::string> allCommands_; 132 138 133 139 /** … … 174 180 // Use some value at about 1000. This can be configured with mouseSensitivity_ anyway. 175 181 static const int mouseClippingSize_ = 1024; 176 }; 182 };// tolua_export 177 183 178 184 … … 219 225 mouseAxes_[i].relVal_ = 0.0f; 220 226 } 221 } 227 }// tolua_export 222 228 223 229 #endif /* _KeyBinder_H__ */
Note: See TracChangeset
for help on using the changeset viewer.