Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 16, 2008, 9:22:50 PM (16 years ago)
Author:
rgrieder
Message:
  • updated VC++ files for tolua
  • minor CMLs changes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/core/InputManager.cc

    r1066 r1084  
    3939#include "InputHandler.h"
    4040#include "InputBuffer.h"
     41#include "ConsoleCommand.h"
    4142
    4243namespace orxonox
    4344{
     45  ConsoleCommand(InputManager, setInputMode, AccessLevel::Admin, true).setDefaultValue(0, IM_INGAME);
     46
    4447  /**
    4548    @brief Constructor only resets the pointer values to 0.
     
    227230    @remark Only has an affect if the mode actually changes
    228231  */
    229   void InputManager::setInputMode(InputMode mode)
    230   {
    231     this->setMode_ = mode;
     232  void InputManager::setInputMode(int mode)
     233  {
     234    if (mode > 0 && mode < 4)
     235      getSingleton().setMode_ = (InputMode)mode;
    232236  }
    233237
Note: See TracChangeset for help on using the changeset viewer.