Changeset 7859 for code/trunk/src/orxonox/controllers
- Timestamp:
- Feb 12, 2011, 11:34:40 AM (14 years ago)
- Location:
- code/trunk/src/orxonox/controllers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/controllers/NewHumanController.cc
r7801 r7859 38 38 #include "core/CoreIncludes.h" 39 39 #include "core/command/ConsoleCommand.h" 40 #include "core/input/KeyBinder.h" 41 #include "core/input/KeyBinderManager.h" 40 42 #include "worldentities/ControllableEntity.h" 41 43 #include "worldentities/pawns/Pawn.h" … … 347 349 this->firemode_ = -1; 348 350 hideArrows(); 351 } 352 353 void NewHumanController::centerCursor() 354 { 355 this->currentYaw_ = 0; 356 this->currentPitch_ = 0; 357 358 KeyBinderManager::getInstance().getCurrent()->resetMouseAxes(); 349 359 } 350 360 … … 481 491 { 482 492 this->controlMode_ = 0; 483 this->currentYaw_ = 0; 484 this->currentPitch_ = 0; 493 this->centerCursor(); 485 494 if (this->getControllableEntity() && (this->getControllableEntity()->isExactlyA(ClassByString("SpaceShip")) || this->getControllableEntity()->isExactlyA(ClassByString("Rocket")))) 486 495 { -
code/trunk/src/orxonox/controllers/NewHumanController.h
r7163 r7859 61 61 virtual void doUnfire(); 62 62 63 void centerCursor(); 64 63 65 static void changeMode(); 64 66
Note: See TracChangeset
for help on using the changeset viewer.