1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-18 22:20:53 +00:00

Merge pull request #2320 from akortunov/cursorfix

[Regression] Fix disappearing cursor in the self-enchanting menu
This commit is contained in:
Bret Curtis 2019-04-12 11:10:29 +02:00 committed by GitHub
commit 4fa529e093
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -779,7 +779,7 @@ namespace MWInput
mMouseLookEnabled = !guiMode;
if (guiMode)
MWBase::Environment::get().getWindowManager()->showCrosshair(false);
MWBase::Environment::get().getWindowManager()->setCursorVisible(guiMode && (mJoystickLastUsed && !mGamepadGuiCursorEnabled));
MWBase::Environment::get().getWindowManager()->setCursorVisible(guiMode && (!mJoystickLastUsed || mGamepadGuiCursorEnabled));
// if not in gui mode, the camera decides whether to show crosshair or not.
}