Changeset 6387 for code/branches/presentation2/src/libraries/core/input
- Timestamp:
- Dec 21, 2009, 1:18:36 PM (15 years ago)
- Location:
- code/branches/presentation2/src/libraries/core/input
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/libraries/core/input/InputManager.h
r6278 r6387 83 83 @brief 84 84 Loads the devices and initialises the KeyDetector and the Calibrator. 85 85 86 86 If either the OIS input system and/or the keyboard could not be created, 87 87 the constructor fails with an std::exception. … … 170 170 OIS::InputManager* getOISInputManager() { return this->oisInputManager_; } 171 171 std::pair<int, int> getMousePosition() const; 172 172 173 173 static InputManager& getInstance() { return Singleton<InputManager>::getInstance(); } // tolua_export 174 174 -
code/branches/presentation2/src/libraries/core/input/InputPrereqs.h
r5781 r6387 202 202 MediaSelect = OIS::KC_MEDIASELECT // Media Select 203 203 }; 204 204 205 205 //! Key codes as strings 206 206 const char* const ByString[] = -
code/branches/presentation2/src/libraries/core/input/InputState.cc
r5929 r6387 102 102 if (enterFunctor_) 103 103 (*enterFunctor_)(); 104 104 105 105 } 106 106 -
code/branches/presentation2/src/libraries/core/input/KeyBinder.cc
r6360 r6387 283 283 } 284 284 } 285 285 286 286 void KeyBinder::addButtonToCommand(std::string command, Button* button) 287 287 { 288 288 std::ostringstream stream; 289 289 stream << button->groupName_ << "." << button->name_; 290 290 291 291 std::vector<std::string>& oldKeynames = this->allCommands_[button->bindingString_]; 292 292 std::vector<std::string>::iterator it = std::find(oldKeynames.begin(), oldKeynames.end(), stream.str()); … … 295 295 oldKeynames.erase(it); 296 296 } 297 297 298 298 if(command != "") 299 299 { … … 305 305 } 306 306 } 307 307 308 308 /** 309 309 @brief … … 317 317 return keynames.front(); 318 318 } 319 319 320 320 return ""; 321 321 } 322 322 323 323 /** 324 324 @brief … … 338 338 return keynames[index]; 339 339 } 340 340 341 341 return ""; 342 342 } 343 343 344 344 return ""; 345 345 } 346 346 347 347 /** 348 348 @brief … … 358 358 return keynames.size(); 359 359 } 360 360 361 361 return 0; 362 362 } -
code/branches/presentation2/src/libraries/core/input/KeyBinder.h
r6311 r6387 69 69 std::string getBinding(std::string commandName, unsigned int index); //tolua_export 70 70 unsigned int getNumberOfBindings(std::string commandName); //tolua_export 71 71 72 72 const std::string& getBindingsFilename() 73 73 { return this->filename_; } … … 161 161 private: 162 162 void addButtonToCommand(std::string command, Button* button); 163 163 164 164 //##### ConfigValues ##### 165 165 //! Whether to filter small value analog input -
code/branches/presentation2/src/libraries/core/input/KeyBinderManager.cc
r6367 r6387 92 92 this->bDefaultFileLoaded_ = false; 93 93 } 94 94 95 95 inline void KeyBinderManager::unbind(const std::string& binding) 96 96 { 97 97 this->currentBinder_->setBinding("", binding, false); 98 98 } 99 99 100 100 inline void KeyBinderManager::tunbind(const std::string& binding) 101 101 {
Note: See TracChangeset
for help on using the changeset viewer.