Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1084 for code/trunk/src/core


Ignore:
Timestamp:
Apr 16, 2008, 9:22:50 PM (17 years ago)
Author:
rgrieder
Message:
  • updated VC++ files for tolua
  • minor CMLs changes
Location:
code/trunk/src/core
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/core/CMakeLists.txt

    r1076 r1084  
    11#get the created files
    22AUX_SOURCE_DIRECTORY(tolua TOLUA_BIND_FILES)
    3 
    4 MESSAGE(STATUS "tolua sources: ${TOLUA_BIND_FILES}")
    53
    64SET( CORE_SRC_FILES
  • 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
  • code/trunk/src/core/InputManager.h

    r1066 r1084  
    7272    void tick(float dt);
    7373    void setWindowExtents(int width, int height);
    74     void setInputMode(InputMode mode);
    7574    InputMode getInputMode();
    7675
     
    8483    static InputManager& getSingleton();
    8584    static InputManager* getSingletonPtr() { return &getSingleton(); }
     85    static void setInputMode(int mode);
    8686
    8787  private:
Note: See TracChangeset for help on using the changeset viewer.