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

@ -49,6 +49,8 @@ public class PlatformInput {
private static boolean enableRepeatEvents = false;
private static int functionKeyModifier = GLFW_KEY_F;
public static boolean lockKeys = false;
private static final List<Character> keyboardCharList = new LinkedList();
private static class KeyboardEvent {
@ -370,5 +372,13 @@ public class PlatformInput {
public static void setFunctionKeyModifier(int key) {
functionKeyModifier = KeyboardConstants.getGLFWKeyFromEagler(key);
}
public static void toggleFullscreen() {
//
}
public static boolean isFullscreen() {
return false;
}
}