forked from Clones/Controlify
fix vmouse spawning top left when it should spawn in the middle
This commit is contained in:
1 parent
808f4eb27f
commit
a80498028f
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user