0
出於某種原因(可能是因爲我無能)這永遠只能打印0.0 0.0
LWJGL glfwGetCursorPos問題
ByteBuffer x = ByteBuffer.allocate(8);
ByteBuffer y = ByteBuffer.allocate(8);
GLFW.glfwGetCursorPos(Window.window, x, y);
System.out.println(x.getDouble() + " " + y.getDouble());
刪除不必要的代碼,修復代碼格式 –