Pārlūkot izejas kodu

Added documentation for glfwGetJoystickName.

Camilla Berglund 12 gadi atpakaļ
vecāks
revīzija
7d9b5c0127
1 mainītis faili ar 7 papildinājumiem un 0 dzēšanām
  1. 7 0
      include/GL/glfw3.h

+ 7 - 0
include/GL/glfw3.h

@@ -1534,6 +1534,13 @@ GLFWAPI int glfwGetJoystickAxes(int joy, float* axes, int numaxes);
  *  @ingroup input
  *  @ingroup input
  */
  */
 GLFWAPI int glfwGetJoystickButtons(int joy, unsigned char* buttons, int numbuttons);
 GLFWAPI int glfwGetJoystickButtons(int joy, unsigned char* buttons, int numbuttons);
+
+/*! @brief Returns the name of the specified joystick.
+ *  @param[in] joy The joystick to query.
+ *  @return The UTF-8 encoded name of the joystick, or @c NULL if the joystick
+ *  is not present.
+ *  @ingroup input
+ */
 GLFWAPI const char* glfwGetJoystickName(int joy);
 GLFWAPI const char* glfwGetJoystickName(int joy);
 
 
 /*! @brief Sets the clipboard to the specified string.
 /*! @brief Sets the clipboard to the specified string.