Function glfwGetJoystickName

  • This function returns the name, encoded as UTF-8, of the specified joystick. The returned string is allocated and freed by GLFW. You should not free it yourself.

    If the specified joystick is not present this function will return NULL but will not generate an error. This can be used instead of first calling glfwJoystickPresent.

    Parameters

    Returns string

    The UTF-8 encoded name of the joystick, or NULL if the joystick is not present or an error occurred.

Generated using TypeDoc