From 6801478a1315a4881fbce7f9d7795663761588e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Wed, 1 Feb 2017 04:36:38 +0100 Subject: [PATCH] Lengthen lifetime of joystick information pointers This is possible because publicly available joystick information is now managed by shared code and there is now a joystick callback. [ci skip] --- include/GLFW/glfw3.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/include/GLFW/glfw3.h b/include/GLFW/glfw3.h index 4be29de9..8b2fe860 100644 --- a/include/GLFW/glfw3.h +++ b/include/GLFW/glfw3.h @@ -3949,8 +3949,7 @@ GLFWAPI int glfwJoystickPresent(int jid); * * @pointer_lifetime The returned array is allocated and freed by GLFW. You * should not free it yourself. It is valid until the specified joystick is - * disconnected, this function is called again for that joystick or the library - * is terminated. + * disconnected or the library is terminated. * * @thread_safety This function must only be called from the main thread. * @@ -3983,8 +3982,7 @@ GLFWAPI const float* glfwGetJoystickAxes(int jid, int* count); * * @pointer_lifetime The returned array is allocated and freed by GLFW. You * should not free it yourself. It is valid until the specified joystick is - * disconnected, this function is called again for that joystick or the library - * is terminated. + * disconnected or the library is terminated. * * @thread_safety This function must only be called from the main thread. * @@ -4016,8 +4014,7 @@ GLFWAPI const unsigned char* glfwGetJoystickButtons(int jid, int* count); * * @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, this function is called again for that joystick or the library - * is terminated. + * disconnected or the library is terminated. * * @thread_safety This function must only be called from the main thread. *