소스 검색

Add missing errors section for glfwGetGamepadName

The reference documentation for glfwGetGamepadName lacked the possible
errors section.

Closes #2007
InKryption 3 년 전
부모
커밋
c19f36b28d
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      include/GLFW/glfw3.h

+ 2 - 0
include/GLFW/glfw3.h

@@ -5703,6 +5703,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.