LWJGL glfwGetCursorPos 问题

LWJGL glfwGetCursorPos issue

出于某种原因(可能是因为我一无所知)这只会打印 0.0 0.0

ByteBuffer x = ByteBuffer.allocate(8);
ByteBuffer y = ByteBuffer.allocate(8);
GLFW.glfwGetCursorPos(Window.window, x, y);
System.out.println(x.getDouble() + "   " + y.getDouble());

已修复。我忘了轮询事件。德普