Java 类org.lwjgl.glfw.GLFWCursorPosCallback 实例源码

项目:open-world    文件:Window.java   
/**
    * 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);
   }
项目:Global-Gam-Jam-2017    文件:Input.java   
public static GLFWCursorPosCallback getMousePos() {
    return mousePos;
}
项目:Global-Gam-Jam-2017    文件:Input.java   
public static void setMousePos(GLFWCursorPosCallback mousePos) {
    Input.mousePos = mousePos;
}
项目:OpenAargon    文件:InputManager.java   
public GLFWCursorPosCallback getCursorCallback() {
    return cursorCb;
}