Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 21, 2008, 12:23:29 AM (16 years ago)
Author:
rgrieder
Message:
  • tried a more object oriented approach for the KeyBinder
  • things work as far as I can tell
  • tested slomo command on joy stick slider: I was able to steer the time factor with the slider.
  • more infos to come..
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/input/src/core/InputManager.cc

    r1323 r1340  
    400400          // normal play mode
    401401          // note: we assume that the handlers exist since otherwise, something's wrong anyway.
    402           activeKeyHandlers_.push_back(keyHandlers_["keybinder"]);
    403           activeMouseHandlers_.push_back(mouseHandlers_["keybinder"]);
    404           if (getMouseHandler("SpaceShip"))
    405             activeMouseHandlers_.push_back(mouseHandlers_["SpaceShip"]);
    406           for (unsigned int i = 0; i < joySticksSize_; i++)
    407             activeJoyStickHandlers_[i].push_back(joyStickHandlers_["keybinder"]);
     402          enableKeyHandler("keybinder");
     403          enableMouseHandler("keybinder");
     404          enableMouseHandler("SpaceShip");
     405          enableJoyStickHandler("keybinder", 0);
    408406          break;
    409407
     
    413411
    414412        case IS_CONSOLE:
    415           activeMouseHandlers_.push_back(mouseHandlers_["keybinder"]);
    416           if (getMouseHandler("SpaceShip"))
    417             activeMouseHandlers_.push_back(mouseHandlers_["SpaceShip"]);
    418           for (unsigned int i = 0; i < joySticksSize_; i++)
    419             activeJoyStickHandlers_[i].push_back(joyStickHandlers_["keybinder"]);
    420 
    421           activeKeyHandlers_.push_back(keyHandlers_["buffer"]);
     413          enableMouseHandler("keybinder");
     414          enableMouseHandler("SpaceShip");
     415          enableJoyStickHandler("keybinder", 0);
     416          enableKeyHandler("buffer");
    422417          break;
    423418
Note: See TracChangeset for help on using the changeset viewer.