Changeset 6428 for code/trunk/src/libraries/core/input/KeyBinder.cc
- Timestamp:
- Dec 28, 2009, 11:10:37 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/input/KeyBinder.cc
r6422 r6428 57 57 RegisterRootObject(KeyBinder); 58 58 59 // in tialise all buttons and half axes to avoid creating everything with 'new'59 // initialise all buttons and half axes to avoid creating everything with 'new' 60 60 // keys 61 61 for (unsigned int i = 0; i < KeyCode::numberOfKeys; i++) … … 168 168 { 169 169 for (unsigned int i = 0; i < JoyStickButtonCode::numberOfButtons; ++i) 170 (*joyStickButtons_[iDev])[i].read ConfigValue(this->configFile_);170 (*joyStickButtons_[iDev])[i].readBinding(this->configFile_); 171 171 for (unsigned int i = 0; i < JoyStickAxisCode::numberOfAxes * 2; ++i) 172 (*joyStickAxes_[iDev])[i].read ConfigValue(this->configFile_);172 (*joyStickAxes_[iDev])[i].readBinding(this->configFile_); 173 173 } 174 174 } … … 257 257 for (std::map<std::string, Button*>::const_iterator it = allButtons_.begin(); it != allButtons_.end(); ++it) 258 258 { 259 it->second->read ConfigValue(this->configFile_);259 it->second->readBinding(this->configFile_); 260 260 addButtonToCommand(it->second->bindingString_, it->second); 261 261 } … … 270 270 { 271 271 addButtonToCommand(binding, it->second); 272 if (bTemporary) 273 it->second->configContainer_->tset(binding); 274 else 275 it->second->configContainer_->set(binding); 276 it->second->configContainer_->getValue(&(it->second->bindingString_), it->second); 272 it->second->setBinding(this->configFile_, binding, bTemporary); 277 273 return true; 278 274 }
Note: See TracChangeset
for help on using the changeset viewer.