Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9368


Ignore:
Timestamp:
Sep 4, 2012, 10:47:49 AM (12 years ago)
Author:
jo
Message:

Trying to change the mouselook keybinding according to the suggestion in the forum. BUT the outcome stays the same.

Location:
code/branches/release2012/src/orxonox/controllers
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/release2012/src/orxonox/controllers/HumanController.cc

    r9256 r9368  
    5757    SetConsoleCommand("HumanController", "greet",                  &HumanController::greet         ).addShortcut();
    5858    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);
    6061    SetConsoleCommand("HumanController", __CC_suicide_name,        &HumanController::suicide       ).addShortcut();
    6162    SetConsoleCommand("HumanController", "toggleGodMode",          &HumanController::toggleGodMode ).addShortcut();
     
    249250        if (HumanController::localController_s && HumanController::localController_s->controllableEntity_)
    250251            HumanController::localController_s->controllableEntity_->mouseLook();
     252    }
     253
     254    void HumanController::mouseLookOFF()
     255    {
     256        HumanController::mouseLook();
    251257    }
    252258
  • code/branches/release2012/src/orxonox/controllers/HumanController.h

    r9256 r9368  
    7979            static void switchCamera();
    8080            static void mouseLook();
     81            static void mouseLookOFF();
    8182            static void cycleNavigationFocus();
    8283            static void releaseNavigationFocus();
  • code/branches/release2012/src/orxonox/controllers/NewHumanController.cc

    r9367 r9368  
    5151namespace orxonox
    5252{
    53     SetConsoleCommand("NewHumanController", "changeMode", &NewHumanController::changeMode).keybindMode(KeybindMode::OnPress); //disabling free aiming
     53    SetConsoleCommand("NewHumanController", "changeMode", &NewHumanController::changeMode).keybindMode(KeybindMode::OnPress); //disabled
    5454    SetConsoleCommand("NewHumanController", "accelerate", &NewHumanController::accelerate).keybindMode(KeybindMode::OnPress);
    5555    SetConsoleCommand("NewHumanController", "decelerate", &NewHumanController::decelerate).keybindMode(KeybindMode::OnPress);
Note: See TracChangeset for help on using the changeset viewer.