Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 16, 2010, 12:50:52 PM (15 years ago)
Author:
rgrieder
Message:

Removed obsolete InputState from GSMainMenu.

Location:
code/branches/gamestates2/src/orxonox/gamestates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gamestates2/src/orxonox/gamestates/GSMainMenu.cc

    r6739 r6741  
    3131#include <OgreSceneManager.h>
    3232
    33 #include "core/input/InputManager.h"
    34 #include "core/input/InputState.h"
    3533#include "core/input/KeyBinderManager.h"
    3634#include "core/Game.h"
     
    4947    GSMainMenu::GSMainMenu(const GameStateInfo& info)
    5048        : GameState(info)
    51         , inputState_(0)
    5249    {
    5350        RegisterRootObject(GSMainMenu);
    54         inputState_ = InputManager::getInstance().createInputState("mainMenu");
    55         inputState_->setMouseExclusive(TriBool::False);
    56         inputState_->setHandler(&GUIManager::getInstance());
    57         inputState_->setKeyHandler(KeyBinderManager::getInstance().getDefaultAsHandler());
    58         inputState_->setJoyStickHandler(&InputHandler::EMPTY);
    5951
    6052        // create an empty Scene
     
    7567        if (GameMode::playsSound())
    7668            this->ambient_->destroy();
    77 
    78         InputManager::getInstance().destroyState("mainMenu");
    7969
    8070        this->scene_->getSceneManager()->destroyCamera(this->camera_);
     
    10090
    10191        KeyBinderManager::getInstance().setToDefault();
    102         //InputManager::getInstance().enterState("mainMenu");
    10392
    10493        this->setConfigValues();
     
    117106            this->ambient_->stop();
    118107        }
    119 
    120         //InputManager::getInstance().leaveState("mainMenu");
    121108
    122109        GUIManager::getInstance().setCamera(0);
  • code/branches/gamestates2/src/orxonox/gamestates/GSMainMenu.h

    r6417 r6741  
    6161
    6262    private:
    63         InputState*       inputState_;
    6463        Scene*            scene_;
    6564        Ogre::Camera*     camera_;
Note: See TracChangeset for help on using the changeset viewer.