2015-12-02 92 views
0

出於某種原因(可能是因爲我無能)這永遠只能打印0.0 0.0LWJGL glfwGetCursorPos問題

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

刪除不必要的代碼,修復代碼格式 –

回答

0

固定它。我忘記調查事件。 DERP。