Function glfwSetScrollCallback

  • This function sets the scroll callback of the specified window, which is called when a scrolling device is used, such as a mouse wheel or scrolling area of a touchpad.

    The scroll callback receives all scrolling input, like that from a mouse wheel or a touchpad scrolling area.

    Parameters

    • window: GLFWwindow

      The window whose callback to set.

    • callback: GLFWscrollfun

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

    Returns GLFWscrollfun

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

Generated using TypeDoc