Skip to content

Commit

Permalink
Add missing errors section for glfwGetGamepadName
Browse files Browse the repository at this point in the history
The reference documentation for glfwGetGamepadName lacked the possible
errors section.

Closes #2007

(cherry picked from commit c19f36b)
  • Loading branch information
InKryption authored and elmindreda committed Dec 8, 2021
1 parent a69648e commit 7d5a16c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/GLFW/glfw3.h
Expand Up @@ -5227,6 +5227,8 @@ GLFWAPI int glfwUpdateGamepadMappings(const char* string);
* joystick is not present, does not have a mapping or an
* [error](@ref error_handling) occurred.
*
* @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref GLFW_INVALID_ENUM.
*
* @pointer_lifetime The returned string is allocated and freed by GLFW. You
* should not free it yourself. It is valid until the specified joystick is
* disconnected, the gamepad mappings are updated or the library is terminated.
Expand Down

0 comments on commit 7d5a16c

Please sign in to comment.