|
|
@ -99,7 +99,6 @@ namespace MWInput
|
|
|
|
, mMouseWheel(0)
|
|
|
|
, mMouseWheel(0)
|
|
|
|
, mDragDrop(false)
|
|
|
|
, mDragDrop(false)
|
|
|
|
, mGuiCursorEnabled(false)
|
|
|
|
, mGuiCursorEnabled(false)
|
|
|
|
, mDebug(Settings::Manager::getBool("debug", "Engine"))
|
|
|
|
|
|
|
|
, mUserFile(userFile)
|
|
|
|
, mUserFile(userFile)
|
|
|
|
, mUserFileExists(userFileExists)
|
|
|
|
, mUserFileExists(userFileExists)
|
|
|
|
, mInvertY (Settings::Manager::getBool("invert y axis", "Input"))
|
|
|
|
, mInvertY (Settings::Manager::getBool("invert y axis", "Input"))
|
|
|
@ -272,8 +271,6 @@ namespace MWInput
|
|
|
|
// event callbacks (which may crash)
|
|
|
|
// event callbacks (which may crash)
|
|
|
|
mWindows.update();
|
|
|
|
mWindows.update();
|
|
|
|
|
|
|
|
|
|
|
|
if(!mDebug)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
bool main_menu = mWindows.containsMode(MWGui::GM_MainMenu);
|
|
|
|
bool main_menu = mWindows.containsMode(MWGui::GM_MainMenu);
|
|
|
|
|
|
|
|
|
|
|
|
bool was_relative = mInputManager->getMouseRelative();
|
|
|
|
bool was_relative = mInputManager->getMouseRelative();
|
|
|
@ -292,7 +289,6 @@ namespace MWInput
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mInputManager->warpMouse(mMouseX, mMouseY);
|
|
|
|
mInputManager->warpMouse(mMouseX, mMouseY);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Disable movement in Gui mode
|
|
|
|
// Disable movement in Gui mode
|
|
|
|
if (mWindows.isGuiMode()) return;
|
|
|
|
if (mWindows.isGuiMode()) return;
|
|
|
@ -597,19 +593,12 @@ namespace MWInput
|
|
|
|
|
|
|
|
|
|
|
|
bool InputManager::windowFocusChange(bool have_focus)
|
|
|
|
bool InputManager::windowFocusChange(bool have_focus)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(!mDebug)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool InputManager::windowVisibilityChange(bool visible)
|
|
|
|
bool InputManager::windowVisibilityChange(bool visible)
|
|
|
|
{
|
|
|
|
|
|
|
|
if(!mDebug)
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
//TODO: Pause game?
|
|
|
|
//TODO: Pause game?
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|