1
0
forked from Clones/Controlify

fix vmouse spawning top left when it should spawn in the middle

This commit is contained in:
isXander
2023-02-28 13:17:14 +00:00
parent 808f4eb27f
commit a80498028f

View File

@ -233,7 +233,7 @@ public class VirtualMouseHandler {
GLFW.glfwSetInputMode(minecraft.getWindow().getWindow(), GLFW.GLFW_CURSOR, GLFW.GLFW_CURSOR_DISABLED);
virtualMouseEnabled = true;
if (minecraft.mouseHandler.xpos() == 0 && minecraft.mouseHandler.ypos() == 0) {
if (minecraft.mouseHandler.xpos() == -50 && minecraft.mouseHandler.ypos() == -50) {
targetX = currentX = minecraft.getWindow().getScreenWidth() / 2f;
targetY = currentY = minecraft.getWindow().getScreenHeight() / 2f;
} else {