Changeset 7861 for code/trunk/src/libraries/core/command
- Timestamp:
- Feb 12, 2011, 11:54:07 AM (14 years ago)
- Location:
- code/trunk/src/libraries/core/command
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/command/ConsoleCommand.cc
r7401 r7861 38 38 #include "core/Language.h" 39 39 #include "core/GameMode.h" 40 #include "core/input/KeyBinder.h" 41 #include "core/input/KeyBinderManager.h" 40 42 41 43 namespace orxonox … … 575 577 576 578 /** 579 @brief Changes the keybind mode. 580 */ 581 ConsoleCommand& ConsoleCommand::changeKeybindMode(KeybindMode::Value mode) 582 { 583 KeyBinderManager::getInstance().getCurrent()->changeMode(this, mode); 584 585 this->keybindMode(mode); 586 return *this; 587 } 588 589 /** 577 590 @brief Returns the command with given group an name. 578 591 @param group The group of the requested command -
code/trunk/src/libraries/core/command/ConsoleCommand.h
r7401 r7861 510 510 /// Changes the keybind mode of the command. 511 511 inline ConsoleCommandManipulator& keybindMode(KeybindMode::Value mode) 512 { if (this->command_) { this->command_-> keybindMode(mode); } return *this; }512 { if (this->command_) { this->command_->changeKeybindMode(mode); } return *this; } 513 513 /// Sets the input configured param to the given index. 514 514 inline ConsoleCommandManipulator& inputConfiguredParam(int index) … … 598 598 } 599 599 600 /// Changes the keybindmode.600 /// Sets the keybind mode. Note: use changeKeybindMode if you intend to change the mode. 601 601 inline ConsoleCommand& keybindMode(KeybindMode::Value mode) 602 602 { this->keybindMode_ = mode; return *this; } … … 604 604 inline KeybindMode::Value getKeybindMode() const 605 605 { return this->keybindMode_; } 606 607 ConsoleCommand& changeKeybindMode(KeybindMode::Value mode); 606 608 607 609 /// Changes the input configured param to the given index.
Note: See TracChangeset
for help on using the changeset viewer.