Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 22, 2008, 9:16:35 PM (17 years ago)
Author:
rgrieder
Message:

some de-bugging
added enum for joy stick buttons
some more little fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/core/Shell.cc

    r1638 r1641  
    3333#include "Core.h"
    3434#include "ConsoleCommand.h"
    35 #include "input/InputInterfaces.h"
    36 #include "input/SimpleInputState.h"
    37 #include "input/InputManager.h"
    3835
    3936#define SHELL_UPDATE_LISTENERS(function) \
     
    6158        this->inputBuffer_ = new InputBuffer();
    6259        this->configureInputBuffer();
    63         InputManager::createSimpleInputState("console", 40)->setKeyHandler(this->inputBuffer_);
    6460
    6561        this->outputBuffer_.registerListener(this);
     
    7066    Shell::~Shell()
    7167    {
    72         SimpleInputState * inputState = dynamic_cast<SimpleInputState*>(InputManager::getState("console"));
    73         if (inputState)
    74         {
    75             inputState->removeAndDestroyAllHandlers();
    76             InputManager::destroyState("console");
    77         }
     68        if (this->inputBuffer_)
     69            delete this->inputBuffer_;
    7870    }
    7971
Note: See TracChangeset for help on using the changeset viewer.