1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-20 19:39:41 +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.
}