Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 3, 2009, 5:33:31 PM (15 years ago)
Author:
rgrieder
Message:

New class: KeyBinderManager (yes, it really was necessary, I'm not such a Fan of zillions of classes as well) and moved the keybind command to it from GSLevel.
This new Singleton simply maps the keybind command to the right KeyBinder, selected by KeyBinderManager::setCurrent().
There is also a default KeyBinder (with keybindings.ini as file), which should do the Trick for now. Other Keybinders should only server special purposes (like in mini games or so).

DELETE YOUR keybindings.ini FILE! =
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/libraries/core/Core.cc

    r5855 r5863  
    6969#include "TclThreadManager.h"
    7070#include "input/InputManager.h"
     71#include "input/KeyBinderManager.h"
    7172
    7273namespace orxonox
     
    288289        inputManager_.reset(new InputManager());
    289290
     291        // Manages KeyBinders and makes them available
     292        keyBinderManager_.reset(new KeyBinderManager());
     293
    290294        // load the CEGUI interface
    291295        guiManager_.reset(new GUIManager(graphicsManager_->getRenderWindow(),
     
    304308        this->graphicsScope_.reset();
    305309        this->guiManager_.reset();
     310        this->keyBinderManager_.reset();
    306311        this->inputManager_.reset();
    307312        this->graphicsManager_.reset();
Note: See TracChangeset for help on using the changeset viewer.