From d4a08b10fdf162e34e3e42b95cfbfab3327bf3b8 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 2 Dec 2012 17:13:41 +0100 Subject: [PATCH] Documented joystick name caveat. --- include/GL/glfw3.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/GL/glfw3.h b/include/GL/glfw3.h index 966234d7..23fcefa7 100644 --- a/include/GL/glfw3.h +++ b/include/GL/glfw3.h @@ -1540,6 +1540,9 @@ GLFWAPI int glfwGetJoystickButtons(int joy, unsigned char* buttons, int numbutto * @return The UTF-8 encoded name of the joystick, or @c NULL if the joystick * is not present. * @ingroup input + * + * @note The returned string is valid only until the next call to @ref + * glfwGetJoystickName. */ GLFWAPI const char* glfwGetJoystickName(int joy);