Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 21, 2009, 5:30:16 PM (16 years ago)
Author:
rgrieder
Message:

InputManager upgrade number one: InputState priorities are managed automatically. However you can still use the enum in InputManager.h and get yourself a high priority.
High priorities are only to be used for special cases like calibrator, console or detector.
All other states are simply pushed onto the normal stack.

Location:
code/branches/gui/src/orxonox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/orxonox/gamestates/GSLevel.cc

    r2801 r2814  
    8282        if (Core::showsGraphics())
    8383        {
    84             inputState_ = InputManager::getInstance().createInputState<SimpleInputState>("game", 20);
     84            inputState_ = InputManager::getInstance().createInputState<SimpleInputState>("game");
    8585            keyBinder_ = new KeyBinder();
    8686            keyBinder_->loadBindings("keybindings.ini");
  • code/branches/gui/src/orxonox/gui/GUIManager.cc

    r2808 r2814  
    167167
    168168                // register us as input handler
    169                 SimpleInputState* state = InputManager::getInstance().createInputState<SimpleInputState>("gui", 30);
     169                SimpleInputState* state = InputManager::getInstance().createInputState<SimpleInputState>("gui");
    170170                state->setHandler(this);
    171171                state->setJoyStickHandler(&InputManager::EMPTY_HANDLER);
  • code/branches/gui/src/orxonox/overlays/console/InGameConsole.cc

    r2801 r2814  
    173173    {
    174174        // create the corresponding input state
    175         inputState_ = InputManager::getInstance().createInputState<SimpleInputState>("console", 40);
     175        inputState_ = InputManager::getInstance().createInputState<SimpleInputState>("console", InputStatePriority::Console);
    176176        inputState_->setKeyHandler(Shell::getInstance().getInputBuffer());
    177177        bHidesAllInputChanged();
Note: See TracChangeset for help on using the changeset viewer.