Changeset 1446 for code/branches/network/src/core/KeyBinder.cc
- Timestamp:
- May 28, 2008, 5:30:11 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/core/KeyBinder.cc
r1444 r1446 42 42 #include "CoreIncludes.h" 43 43 #include "CommandExecutor.h" 44 #include "ConsoleCommand.h" 44 45 #include "Executor.h" 45 46 // TODO: only needed by the CalibratorCallback class; move to new file … … 66 67 cmd.nValuesAdded_ = 0; 67 68 cmd.value_ = 0; 68 return CommandExecutor::execute(cmd.evaluation_);69 return cmd.evaluation_.execute(); 69 70 } 70 71 else … … 82 83 bool SimpleCommand::execute(float abs, float rel) 83 84 { 84 return CommandExecutor::execute(evaluation_);85 return evaluation_.execute(); 85 86 } 86 87 … … 183 184 SubString tokens(commandStrings[iCommand], " ", SubString::WhiteSpaces, false, 184 185 '\\', false, '"', false, '(', ')', false, '\0'); 185 186 186 187 unsigned int iToken = 0; 187 188 … … 238 239 239 240 // check for param command 240 int paramIndex = eval.get EvaluatedExecutor()->getAxisParamIndex();241 int paramIndex = eval.getConsoleCommand()->getAxisParamIndex(); 241 242 if (paramIndex >= 0) 242 243 { … … 244 245 ParamCommand* cmd = new ParamCommand(); 245 246 cmd->paramModifier_ = paramModifier; 246 cmd->bRelative_ = eval.get EvaluatedExecutor()->getIsAxisRelative();247 cmd->bRelative_ = eval.getConsoleCommand()->getIsAxisRelative(); 247 248 248 249 // add command to the buffer if not yet existing 249 250 for (unsigned int iParamCmd = 0; iParamCmd < paramCommandBuffer.size(); iParamCmd++) 250 251 { 251 if (getLowercase(paramCommandBuffer[iParamCmd]->evaluation_.get CommandString())252 if (getLowercase(paramCommandBuffer[iParamCmd]->evaluation_.getOriginalCommand()) 252 253 == getLowercase(commandStr)) 253 254 { … … 271 272 if (!addParamCommand(cmd)) 272 273 { 273 mode = eval.get EvaluatedExecutor()->getKeybindMode();274 mode = eval.getConsoleCommand()->getKeybindMode(); 274 275 commands[mode].push_back(cmd); 275 276 } … … 282 283 283 284 if (mode == KeybindMode::None) 284 mode = eval.get EvaluatedExecutor()->getKeybindMode();285 mode = eval.getConsoleCommand()->getKeybindMode(); 285 286 286 287 commands[mode].push_back(cmd); … … 331 332 } 332 333 } 333 334 334 335 bool HalfAxis::addParamCommand(ParamCommand* command) 335 336 {
Note: See TracChangeset
for help on using the changeset viewer.