Function glfwGetGamepadName

  • This function returns the human-readable name of the gamepad from the gamepad mapping assigned to the specified joystick.

    If the specified joystick is not present or does not have a gamepad mapping this function will return NULL but will not generate an error. Call glfwJoystickPresent to check whether it is present regardless of whether it has a mapping.

    Parameters

    Returns string

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

Generated using TypeDoc