Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 12, 2008, 11:23:32 PM (17 years ago)
Author:
rgrieder
Message:
  • minor Singleton changes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/SpaceShip.cc

    r1032 r1035  
    417417    void SpaceShip::tick(float dt)
    418418    {
    419       if (InputManager::getSingleton()->getMouse()->getEventCallback() != this)
    420         {
    421             if (InputManager::getSingleton()->getMouse())
     419      if (InputManager::getSingleton().getMouse()->getEventCallback() != this)
     420        {
     421            if (InputManager::getSingleton().getMouse())
    422422            {
    423                 InputManager::getSingleton()->getMouse()->setEventCallback(this);
     423                InputManager::getSingleton().getMouse()->setEventCallback(this);
    424424                this->setMouseEventCallback_ = true;
    425425            }
     
    446446        }
    447447
    448         OIS::Keyboard* mKeyboard = InputManager::getSingleton()->getKeyboard();
    449         OIS::Mouse* mMouse = InputManager::getSingleton()->getMouse();
     448        OIS::Keyboard* mKeyboard = InputManager::getSingleton().getKeyboard();
     449        OIS::Mouse* mMouse = InputManager::getSingleton().getMouse();
    450450
    451451
Note: See TracChangeset for help on using the changeset viewer.