Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 28, 2008, 5:30:11 AM (16 years ago)
Author:
landauf
Message:

merged console branch into network branch

after several heavy troubles it compiles, but there is still a bug I couldn't fix: orxonox crashes as soon as one presses a key after opening the console… maybe someone else sees the problem?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/core/InputManager.cc

    r1444 r1446  
    4242#include "CommandExecutor.h"
    4343#include "ConsoleCommand.h"
     44#include "Shell.h"
    4445
    4546namespace orxonox
    4647{
    47   ConsoleCommandShortcut(InputManager, keyBind, AccessLevel::User);
    48   ConsoleCommandShortcut(InputManager, storeKeyStroke, AccessLevel::Offline);
    49   ConsoleCommandShortcut(InputManager, calibrate, AccessLevel::User);
     48  SetConsoleCommandShortcut(InputManager, keyBind);
     49  SetConsoleCommandShortcut(InputManager, storeKeyStroke);
     50  SetConsoleCommandShortcut(InputManager, calibrate);
    5051
    5152  // ###############################
     
    150151      buffer_ = new InputBuffer();
    151152      addKeyHandler(buffer_, "buffer");
     153      Shell::getInstance().setInputBuffer(buffer_);
    152154
    153155      keyBinder_ = new KeyBinder();
     
    233235        // register our listener in OIS.
    234236        mouse_->setEventCallback(this);
    235         CCOUT(ORX_DEBUG) << "Created OIS keyboard" << std::endl;
     237        CCOUT(ORX_DEBUG) << "Created OIS mouse" << std::endl;
    236238        return true;
    237239      }
     
    907909      for (unsigned int iHandler = 0; iHandler < activeJoyStickHandlers_[iJoyStick].size(); iHandler++)
    908910        activeJoyStickHandlers_[iJoyStick][iHandler]->joyStickAxisMoved(iJoyStick, axis, fValue);
    909     }   
     911    }
    910912  }
    911913
     
    953955    if (lastState & OIS::Pov::West)
    954956      buttonReleased(arg, 32 + id * 4 + 3);
    955    
     957
    956958    povStates_[iJoyStick].povStates[id] = arg.state.mPOV[id].direction;
    957959
Note: See TracChangeset for help on using the changeset viewer.