Try to get mouse works by force window pos to 0, 0
Also bug fix: Minecraft version not changed from builtin input box
This commit is contained in:
1 parent
012371d990
commit
10ddf848e1
2 files changed
+13
-6
No files matched your search
@@ -1000,8 +1000,15 @@ public class GLFW
|
||||
}
|
||||
|
||||
public static void glfwSetWindowPos(long window, int x, int y) {
|
||||
internalGetWindow(window).x = x;
|
||||
internalGetWindow(window).y = y;
|
||||
// internalGetWindow(window).x = x;
|
||||
// internalGetWindow(window).y = y;
|
||||
|
||||
internalGetWindow(window).x = 0;
|
||||
internalGetWindow(window).y = 0;
|
||||
|
||||
if (x != 0 || y != 0) {
|
||||
mGLFWWindowPosCallback.invoke(window, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
public static void glfwSetWindowSize(long window, int width, int height) {
|
||||
|
||||
Reference in new issue
Block a user