Changeset 2053 for code/branches/lod/src/core/input
- Timestamp:
 - Oct 29, 2008, 3:39:35 PM (17 years ago)
 - File:
 - 
          
- 1 edited
 
- 
          code/branches/lod/src/core/input/InputManager.cc (modified) (3 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
code/branches/lod/src/core/input/InputManager.cc
r1934 r2053 47 47 #include "core/CommandExecutor.h" 48 48 #include "core/ConsoleCommand.h" 49 #include "core/CommandLine.h"50 49 #include "util/Debug.h" 51 50 … … 63 62 SetConsoleCommand(InputManager, calibrate, true); 64 63 SetConsoleCommand(InputManager, reload, false); 65 SetCommandLineSwitch(keyboard_no_grab);66 64 67 65 std::string InputManager::bindingCommmandString_s = ""; … … 155 153 #if defined OIS_LINUX_PLATFORM 156 154 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 else164 paramList.insert(std::make_pair(std::string("x11_keyboard_grab"), std::string("true")));165 155 #endif 166 156  
Note: See TracChangeset
          for help on using the changeset viewer.
      


            






