We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 513ee9c commit 7a77681Copy full SHA for 7a77681
src/main/java/tbooop/view/InputManagerImpl.java
@@ -86,9 +86,10 @@ public void handleInput(final Optional<Keybinds> keybind) {
86
case SHOOT_RIGHT -> sendCommand(new ShootCommand(CardinalDirection.RIGHT));
87
case FULLSCREEN -> view.getStage().setFullScreen(!view.getStage().isFullScreen());
88
case EXIT_FULLSCREEN -> {
89
- System.out.println("Exiting fullscreen");
90
- view.getStage().setWidth(view.getStage().getWidth() / 2);
91
- resizeWindow(false);
+ if (view.getStage().isFullScreen()) {
+ view.getStage().setWidth(view.getStage().getWidth() / 2);
+ resizeWindow(false);
92
+ }
93
}
94
case ZOOM_IN -> resizeWindow(true);
95
case ZOOM_OUT -> resizeWindow(false);
0 commit comments