Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 10, 2008, 5:12:02 PM (17 years ago)
Author:
rgrieder
Message:
  • modified the input handler
  • few more little changes
Location:
code/branches/input/src/orxonox/objects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/input/src/orxonox/objects/Fighter.cc

    r973 r1022  
    267267        OIS::Mouse* mMouse = InputManager::getSingleton()->getMouse();
    268268
    269         mKeyboard->capture();
    270         mMouse->capture();
     269        //mKeyboard->capture();
     270        //mMouse->capture();
    271271
    272272        if (leftButtonPressed_)
  • code/branches/input/src/orxonox/objects/SpaceShip.cc

    r973 r1022  
    417417    void SpaceShip::tick(float dt)
    418418    {
    419         if (!this->setMouseEventCallback_)
     419      if (InputManager::getSingleton()->getMouse()->getEventCallback() != this)
    420420        {
    421421            if (InputManager::getSingleton()->getMouse())
     
    448448        OIS::Keyboard* mKeyboard = InputManager::getSingleton()->getKeyboard();
    449449        OIS::Mouse* mMouse = InputManager::getSingleton()->getMouse();
    450 
    451         mKeyboard->capture();
    452         mMouse->capture();
    453450
    454451
Note: See TracChangeset for help on using the changeset viewer.