Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2058 for code/branches/lod


Ignore:
Timestamp:
Oct 29, 2008, 4:00:45 PM (16 years ago)
Author:
rgrieder
Message:

Reverted unintentional changes in lod branch.

Location:
code/branches/lod
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • code/branches/lod/bin/def_keybindings.ini

    r2053 r2058  
    254254
    255255[MouseAxes]
    256 MouseXNeg=
    257 MouseXPos=
    258 MouseYNeg=
    259 MouseYPos=
     256MouseXNeg="scale 1 moveYaw"
     257MouseXPos="scale -1 moveYaw"
     258MouseYNeg="scale 1 movePitch"
     259MouseYPos="scale -1 movePitch"
    260260
  • code/branches/lod/src/core/XMLPort.h

    r2053 r2058  
    468468                            for (ticpp::Iterator<ticpp::Element> child = xmlsubelement->FirstChildElement(false); child != child.end(); child++)
    469469                            {
    470                                 COUT(2) << child->Value() << std::endl;
    471470                                Identifier* identifier = ClassByName(child->Value());
    472471                                if (identifier)
  • code/branches/lod/src/core/input/InputManager.cc

    r2053 r2058  
    4747#include "core/CommandExecutor.h"
    4848#include "core/ConsoleCommand.h"
     49#include "core/CommandLine.h"
    4950#include "util/Debug.h"
    5051
     
    6263    SetConsoleCommand(InputManager, calibrate, true);
    6364    SetConsoleCommand(InputManager, reload, false);
     65    SetCommandLineSwitch(keyboard_no_grab);
    6466
    6567    std::string InputManager::bindingCommmandString_s = "";
     
    153155#if defined OIS_LINUX_PLATFORM
    154156            paramList.insert(std::make_pair(std::string("XAutoRepeatOn"), std::string("true")));
     157            paramList.insert(std::make_pair(std::string("x11_mouse_grab"), "true"));
     158            paramList.insert(std::make_pair(std::string("x11_mouse_hide"), "true"));
     159            bool kbNoGrab;
     160            CommandLine::getValue("keyboard_no_grab", &kbNoGrab);
     161            if (kbNoGrab)
     162                paramList.insert(std::make_pair(std::string("x11_keyboard_grab"), std::string("false")));
     163            else
     164                paramList.insert(std::make_pair(std::string("x11_keyboard_grab"), std::string("true")));
    155165#endif
    156166
  • code/branches/lod/src/orxonox/OrxonoxStableHeaders.h

    r2053 r2058  
    4646#endif
    4747#include <Ogre.h>
    48 #include <OgreProgressiveMesh.h>
    4948#include <CEGUI.h>
    5049#include <boost/thread/recursive_mutex.hpp>
  • code/branches/lod/src/orxonox/gamestates/GSLevel.cc

    r2053 r2058  
    3838#include "core/CommandExecutor.h"
    3939#include "core/ConsoleCommand.h"
     40#include "core/CommandLine.h"
    4041#include "core/ConfigValueIncludes.h"
    4142#include "core/CoreIncludes.h"
     
    4950namespace orxonox
    5051{
     52    SetCommandLineArgument(level, "sample.oxw").setShortcut("l");
     53
    5154    GSLevel::GSLevel(const std::string& name)
    5255        : GameState<GSGraphics>(name)
     
    157160        // call the loader
    158161        COUT(0) << "Loading level..." << std::endl;
    159         startLevel_ = new Level(Settings::getDataPath() + "levels/sample.oxw");
     162        std::string levelName;
     163        CommandLine::getValue("level", &levelName);
     164        startLevel_ = new Level(Settings::getDataPath() + std::string("levels/") + levelName);
    160165        Loader::open(startLevel_);
    161166    }
  • code/branches/lod/src/util/OrxonoxPlatform.h

    r2053 r2058  
    137137}
    138138
     139//-----------------------------------------------------------------------
     140// Version Information
     141//-----------------------------------------------------------------------
     142
     143#define ORXONOX_VERSION_MAJOR 0
     144#define ORXONOX_VERSION_MINOR 1
     145#define ORXONOX_VERSION_PATCH 2
     146#define ORXONOX_VERSION_SUFFIX ""
     147#define ORXONOX_VERSION_NAME "Bellatrix"
     148
     149#define ORXONOX_VERSION ((ORXONOX_VERSION_MAJOR << 16) | (ORXONOX_VERSION_MINOR << 8) | ORXONOX_VERSION_PATCH)
    139150
    140151
Note: See TracChangeset for help on using the changeset viewer.