Function glfwSetJoystickUserPointer

  • This function sets the user-defined pointer of the specified joystick. The current value is retained until the joystick is disconnected. The initial value is NULL.

    This function may be called from the joystick callback, even for a joystick that is being disconnected.

    Parameters

    • jid: number

      The joystick whose pointer to set.

    • pointer: void

      The new value.

    Returns void

Generated using TypeDoc