Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Reverted unintentional changes in lod branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.