Changeset 1398 for code/branches/network/src/core
- Timestamp:
- May 23, 2008, 7:12:05 PM (16 years ago)
- Location:
- code/branches/network/src/core
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/core/InputHandler.cc
r1391 r1398 33 33 34 34 #include "InputHandler.h" 35 #include <fstream> 35 36 #include "util/Convert.h" 36 37 #include "util/SubString.h" … … 469 470 COUT(3) << "KeyBinder: Loading key bindings..." << std::endl; 470 471 472 clearBindings(); 473 474 /*std::ifstream infile; 475 infile.open("keybindings.ini"); 476 if (!infile.is_open()) 477 { 478 ConfigFileManager::getSingleton()->setFile(CFT_Keybindings, "keybindings_def.ini"); 479 setConfigValues(); 480 } 481 infile.close();*/ 471 482 ConfigFileManager::getSingleton()->setFile(CFT_Keybindings, "keybindings.ini"); 472 clearBindings();473 483 setConfigValues(); 474 484 … … 486 496 SetConfigValue(derivePeriod_, 0.1f).description("Accuracy of the mouse input deriver. The higher the more precise, but laggier."); 487 497 SetConfigValue(mouseSensitivityDerived_, 1.0f).description("Mouse sensitivity if mouse input is derived."); 498 SetConfigValue(keybindingsDefault_, "keybindings_def.ini").description("Default ini file for the keybindings."); 488 499 489 500 float oldThresh = buttonThreshold_; … … 580 591 if (halfAxes_[i].relVal_ > analogThreshold_ || halfAxes_[i].absVal_ > analogThreshold_) 581 592 { 582 COUT(3) << halfAxes_[i].name_ << "\t" << halfAxes_[i].absVal_ << std::endl;593 //COUT(3) << halfAxes_[i].name_ << "\t" << halfAxes_[i].absVal_ << std::endl; 583 594 halfAxes_[i].execute(); 584 595 } -
code/branches/network/src/core/InputHandler.h
r1391 r1398 226 226 //! mouse sensitivity if mouse input is derived 227 227 float mouseSensitivityDerived_; 228 //! default ini file for the keybindings 229 std::string keybindingsDefault_; 228 230 }; 229 231 -
code/branches/network/src/core/InputManager.cc
r1391 r1398 409 409 enableKeyHandler("keybinder"); 410 410 enableMouseHandler("keybinder"); 411 enableMouseHandler("SpaceShip");412 411 enableJoyStickHandler("keybinder", 0); 413 412 break; … … 419 418 case IS_CONSOLE: 420 419 enableMouseHandler("keybinder"); 421 enableMouseHandler("SpaceShip");422 420 enableJoyStickHandler("keybinder", 0); 423 421 enableKeyHandler("buffer");
Note: See TracChangeset
for help on using the changeset viewer.