Changeset 1420
- Timestamp:
- May 25, 2008, 2:19:39 PM (17 years ago)
- Location:
- code/branches/network/src/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/core/KeyBinder.cc
r1414 r1420 474 474 if (!infile.is_open()) 475 475 { 476 ConfigFileManager::getSingleton()->setFile(CFT_Keybindings, keybindingsDefault_);476 ConfigFileManager::getSingleton()->setFile(CFT_Keybindings, "def_keybindings.ini"); 477 477 ConfigFileManager::getSingleton()->save(CFT_Keybindings, "keybindings.ini"); 478 478 } … … 496 496 SetConfigValue(derivePeriod_, 0.1f).description("Accuracy of the mouse input deriver. The higher the more precise, but laggier."); 497 497 SetConfigValue(mouseSensitivityDerived_, 1.0f).description("Mouse sensitivity if mouse input is derived."); 498 SetConfigValue(keybindingsDefault_, "def_keybindings.ini").description("Default ini file for the keybindings.");499 498 500 499 float oldThresh = buttonThreshold_; … … 586 585 halfAxes_[i].execute(KeybindMode::OnRelease); 587 586 } 588 if (halfAxes_[i].wasDown_)589 {590 if (halfAxes_[i].nCommands_[KeybindMode::OnHold])591 halfAxes_[i].execute(KeybindMode::OnHold);592 }593 587 halfAxes_[i].hasChanged_ = false; 588 } 589 590 if (halfAxes_[i].wasDown_) 591 { 592 if (halfAxes_[i].nCommands_[KeybindMode::OnHold]) 593 halfAxes_[i].execute(KeybindMode::OnHold); 594 594 } 595 595 -
code/branches/network/src/core/KeyBinder.h
r1414 r1420 222 222 //! mouse sensitivity if mouse input is derived 223 223 float mouseSensitivityDerived_; 224 //! default ini file for the keybindings225 std::string keybindingsDefault_;226 224 }; 227 225
Note: See TracChangeset
for help on using the changeset viewer.