Changeset 9368 for code/branches/release2012/src/orxonox
- Timestamp:
- Sep 4, 2012, 10:47:49 AM (12 years ago)
- Location:
- code/branches/release2012/src/orxonox/controllers
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/release2012/src/orxonox/controllers/HumanController.cc
r9256 r9368 57 57 SetConsoleCommand("HumanController", "greet", &HumanController::greet ).addShortcut(); 58 58 SetConsoleCommand("HumanController", "switchCamera", &HumanController::switchCamera ).addShortcut(); 59 SetConsoleCommand("HumanController", "mouseLook", &HumanController::mouseLook ).addShortcut(); 59 SetConsoleCommand("HumanController", "mouseLook", &HumanController::mouseLook ).addShortcut().keybindMode(KeybindMode::OnPress); 60 SetConsoleCommand("HumanController", "mouseLookOFF", &HumanController::mouseLookOFF ).addShortcut().keybindMode(KeybindMode::OnRelease); 60 61 SetConsoleCommand("HumanController", __CC_suicide_name, &HumanController::suicide ).addShortcut(); 61 62 SetConsoleCommand("HumanController", "toggleGodMode", &HumanController::toggleGodMode ).addShortcut(); … … 249 250 if (HumanController::localController_s && HumanController::localController_s->controllableEntity_) 250 251 HumanController::localController_s->controllableEntity_->mouseLook(); 252 } 253 254 void HumanController::mouseLookOFF() 255 { 256 HumanController::mouseLook(); 251 257 } 252 258 -
code/branches/release2012/src/orxonox/controllers/HumanController.h
r9256 r9368 79 79 static void switchCamera(); 80 80 static void mouseLook(); 81 static void mouseLookOFF(); 81 82 static void cycleNavigationFocus(); 82 83 static void releaseNavigationFocus(); -
code/branches/release2012/src/orxonox/controllers/NewHumanController.cc
r9367 r9368 51 51 namespace orxonox 52 52 { 53 SetConsoleCommand("NewHumanController", "changeMode", &NewHumanController::changeMode).keybindMode(KeybindMode::OnPress); //disabl ing free aiming53 SetConsoleCommand("NewHumanController", "changeMode", &NewHumanController::changeMode).keybindMode(KeybindMode::OnPress); //disabled 54 54 SetConsoleCommand("NewHumanController", "accelerate", &NewHumanController::accelerate).keybindMode(KeybindMode::OnPress); 55 55 SetConsoleCommand("NewHumanController", "decelerate", &NewHumanController::decelerate).keybindMode(KeybindMode::OnPress);
Note: See TracChangeset
for help on using the changeset viewer.