Skip to content

Commit

Permalink
Mouse is now reset whenever we enter any of the external views while …
Browse files Browse the repository at this point in the history
…coming from a GUI screen. This should fully address issue #237.
  • Loading branch information
AnotherCommander committed Jul 8, 2017
1 parent f972f6c commit 98eeb04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Core/Entities/PlayerEntityControls.m
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ - (void) switchToMainView
[UNIVERSE removeDemoShips];
}
[(MyOpenGLView *)[UNIVERSE gameView] allowStringInput:NO];
if ([self isMouseControlOn]) [[UNIVERSE gameView] resetMouse];
[UNIVERSE enterGUIViewModeWithMouseInteraction:NO];
[self noteGUIDidChangeFrom:oldScreen to:gui_screen];
}
Expand Down

0 comments on commit 98eeb04

Please sign in to comment.