Function glfwSetCursorPosCallback

  • This function sets the cursor position callback of the specified window, which is called when the cursor is moved. The callback is provided with the position, in screen coordinates, relative to the upper-left corner of the content area of the window.

    Parameters

    • window: GLFWwindow

      The window whose callback to set.

    • callback: GLFWcursorposfun

      The new callback, or NULL to remove the currently set callback.

    Returns GLFWcursorposfun

    The previously set callback, or NULL if no callback was set or the library had not been initialized.

Generated using TypeDoc