Support disabling of keyboard and mouse capture for debugging. ===================================================================== --- src/input.cpp.bak 2008-05-04 14:51:35.000000000 -0400 +++ src/input.cpp 2008-05-04 14:35:00.000000000 -0400 @@ -37,6 +37,21 @@ OIS::ParamList pl; pl.insert(OIS::ParamList::value_type("WINDOW", Ogre::StringConverter::toString(hWnd))); + // Disable mouse capture for debugging. + #ifdef DISABLE_MOUSE_CAPTURE + #if defined OIS_WIN32_PLATFORM + pl.insert(std::make_pair(std::string("w32_mouse"), std::string("DISCL_FOREGROUND" ))); + pl.insert(std::make_pair(std::string("w32_mouse"), std::string("DISCL_NONEXCLUSIVE"))); + pl.insert(std::make_pair(std::string("w32_keyboard"), std::string("DISCL_FOREGROUND"))); + pl.insert(std::make_pair(std::string("w32_keyboard"), std::string("DISCL_NONEXCLUSIVE"))); + #elif defined OIS_LINUX_PLATFORM + pl.insert(std::make_pair(std::string("x11_mouse_grab"), std::string("false"))); + pl.insert(std::make_pair(std::string("x11_mouse_hide"), std::string("false"))); + pl.insert(std::make_pair(std::string("x11_keyboard_grab"), std::string("false"))); + pl.insert(std::make_pair(std::string("XAutoRepeatOn"), std::string("true"))); + #endif + #endif + mHWnd = hWnd; mInputManager = OIS::InputManager::createInputSystem(pl); mMouse = static_cast(mInputManager->createInputObject(OIS::OISMouse, true));