forked from mirror/openmw-tes3mp
Set cursor active when moving by controller
This commit is contained in:
parent
479f9535b4
commit
548e90a7bc
1 changed files with 1 additions and 0 deletions
|
@ -430,6 +430,7 @@ namespace MWInput
|
||||||
|
|
||||||
MyGUI::InputManager::getInstance().injectMouseMove(static_cast<int>(mGuiCursorX), static_cast<int>(mGuiCursorY), mMouseWheel);
|
MyGUI::InputManager::getInstance().injectMouseMove(static_cast<int>(mGuiCursorX), static_cast<int>(mGuiCursorY), mMouseWheel);
|
||||||
mInputManager->warpMouse(static_cast<int>(mGuiCursorX/mInvUiScalingFactor), static_cast<int>(mGuiCursorY/mInvUiScalingFactor));
|
mInputManager->warpMouse(static_cast<int>(mGuiCursorX/mInvUiScalingFactor), static_cast<int>(mGuiCursorY/mInvUiScalingFactor));
|
||||||
|
MWBase::Environment::get().getWindowManager()->setCursorActive(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (mMouseLookEnabled)
|
if (mMouseLookEnabled)
|
||||||
|
|
Loading…
Reference in a new issue