1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 20:28:49 -05:00

Fixed docs for glfwGetJoystickButtons.

This commit is contained in:
Camilla Berglund 2013-06-16 02:33:33 +02:00
parent f1c88b41f2
commit e93bade240

View File

@ -2006,14 +2006,14 @@ GLFWAPI int glfwJoystickPresent(int joy);
*/ */
GLFWAPI const float* glfwGetJoystickAxes(int joy, int* count); GLFWAPI const float* glfwGetJoystickAxes(int joy, int* count);
/*! @brief Returns the values of all buttons of the specified joystick. /*! @brief Returns the state of all buttons of the specified joystick.
* *
* This function returns the values of all buttons of the specified joystick. * This function returns the state of all buttons of the specified joystick.
* *
* @param[in] joy The joystick to query. * @param[in] joy The joystick to query.
* @param[out] count Where to store the size of the returned array. This is * @param[out] count Where to store the size of the returned array. This is
* set to zero if an error occurred. * set to zero if an error occurred.
* @return An array of axis values, or `NULL` if the joystick is not present. * @return An array of button states, or `NULL` if the joystick is not present.
* *
* @note The returned array is allocated and freed by GLFW. You should not * @note The returned array is allocated and freed by GLFW. You should not
* free it yourself. * free it yourself.