/** * Sets the cursor position callback for the window * @param callback The callback that will recieve mouse movement input */ public void setCursorPosCallback(GLFWCursorPosCallback callback) throws IllegalStateException { if(handle == 0) { throw new IllegalStateException("handle is NULL"); } GLFW.glfwSetCursorPosCallback(handle, callback); }
public static GLFWCursorPosCallback getMousePos() { return mousePos; }
public static void setMousePos(GLFWCursorPosCallback mousePos) { Input.mousePos = mousePos; }
public GLFWCursorPosCallback getCursorCallback() { return cursorCb; }