1
0
forked from Clones/Controlify

✏️ Remove VMouse Escape in favour of existing GUI Back bind

This commit is contained in:
isXander
2023-05-07 12:41:20 +01:00
parent af83e5c712
commit f958a2b1b6
3 changed files with 5 additions and 13 deletions

View File

@ -114,10 +114,8 @@ public class VirtualMouseHandler {
mouseHandler.invokeOnPress(minecraft.getWindow().getWindow(), GLFW.GLFW_MOUSE_BUTTON_LEFT, GLFW.GLFW_RELEASE, 0);
}
if (controller.bindings().VMOUSE_ESCAPE.justPressed()) {
keyboardHandler.invokeKeyPress(minecraft.getWindow().getWindow(), GLFW.GLFW_KEY_ESCAPE, 0, GLFW.GLFW_PRESS, 0);
} else if (controller.bindings().VMOUSE_ESCAPE.justReleased()) {
keyboardHandler.invokeKeyPress(minecraft.getWindow().getWindow(), GLFW.GLFW_KEY_ESCAPE, 0, GLFW.GLFW_RELEASE, 0);
if (controller.bindings().GUI_BACK.justPressed() && minecraft.screen != null) {
minecraft.screen.onClose();
}
}