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:
1 parent
93eb1f51eb
commit
0aeb0ccac5
14 files changed
+164
-28
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user