Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Regression] Fix disappearing cursor in the self-enchanting menu #2320

Merged
merged 1 commit into from
Apr 12, 2019

Conversation

akortunov
Copy link
Collaborator

The regression was added in the commit 37f5ab2

Currently mJoystickLastUsed is alway "false" if a player does not use a controller, so the argument of setCursorVisible is always "false".
As a result, there is no cursor in the self-enchanting menu.
Judging by logic, we should enable cursor in two cases:

  1. When player does not use a joystick and the game is in the GUI mode.
  2. When player uses a joystick, the game is in the GUI mode and the gamepad cursor is enabled.

So the resolution is to invert the second statement in the setCursorVisible.
It would be nice if a user with gamepad could test this change.

@akortunov akortunov changed the title Fix a regression with disappearing cursor in the self-enchanting menu [Regression] Fix disappearing cursor in the self-enchanting menu Apr 12, 2019
@psi29a psi29a merged commit 4fa529e into OpenMW:master Apr 12, 2019
@akortunov akortunov deleted the cursorfix branch October 30, 2019 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants