Update #8 - Added ayunami's seamless fullscreen controls

When you enter fullscreen via F11 or video settings you can now use regular ESC again to pause and unpause the game and close your inventory and use CTRL as the sprint key without closing the tab.

This greatly improves user experience when you are a new player and don't understand yet that regular vanilla ESC and CTRL+W messes up the game.
This commit is contained in:
LAX1DUDE
2023-01-04 00:11:39 -08:00
parent 93eb1f51eb
commit 0aeb0ccac5
14 changed files with 164 additions and 28 deletions

View File

@ -69,4 +69,12 @@ public class Display {
return PlatformInput.wasResized();
}
public static boolean isFullscreen() {
return PlatformInput.isFullscreen();
}
public static void toggleFullscreen() {
PlatformInput.toggleFullscreen();
}
}