Changeset 9981
- Timestamp:
- Jan 4, 2014, 11:25:18 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/input/Button.cc
r9978 r9981 213 213 214 214 // we don't know whether this is an actual axis or just a button 215 if (mode == KeybindMode::None) 216 { 217 if (!addParamCommand(cmd)) 218 { 219 mode = eval.getConsoleCommand()->getKeybindMode(); 220 this->addCommand(cmd, mode, commands); 221 } 222 } 223 else 224 cmd->setFixedKeybindMode(true); 215 if (mode != KeybindMode::None || !addParamCommand(cmd)) 216 this->addCommand(cmd, mode, commands); 225 217 } 226 218 else … … 228 220 SimpleCommand* cmd = new SimpleCommand(); 229 221 cmd->evaluation_ = eval; 230 231 if (mode == KeybindMode::None)232 mode = eval.getConsoleCommand()->getKeybindMode();233 else234 cmd->setFixedKeybindMode(true);235 222 236 223 this->addCommand(cmd, mode, commands); … … 255 242 inline void Button::addCommand(BaseCommand* cmd, KeybindMode::Value mode, std::vector<BaseCommand*> commands[3]) 256 243 { 244 if (mode == KeybindMode::None) 245 mode = cmd->getEvaluation()->getConsoleCommand()->getKeybindMode(); 246 else 247 cmd->setFixedKeybindMode(true); 248 257 249 if (mode == KeybindMode::OnPressAndRelease) 258 250 {
Note: See TracChangeset
for help on using the changeset viewer.