Completely fixed monitor size is 0x0 (Forge mouse input should work rn)

This commit is contained in:
khanhduytran0 committed 2021-02-21 07:44:51 +07:00
1 parent 39b21f6380
commit d4b962ae75
5 files changed
+45 -40

No files matched your search

@@ -16,8 +16,7 @@ public class UIKit {
}
public static void callback_SurfaceViewController_launchMinecraft(int width, int height) {
GLFW.mGLFWWindowWidth = width;
GLFW.mGLFWWindowHeight = height;
GLFW.internalChangeMonitorSize(width, height);
CallbackBridge.mouseX = width / 2;
CallbackBridge.mouseY = height / 2;
PLaunchApp.launchMinecraft();