mirror of
https://github.com/glfw/glfw.git
synced 2024-11-29 05:22:00 +00:00
Documentation work
[ci skip]
This commit is contained in:
parent
49d228207f
commit
386b60396f
@ -1260,13 +1260,14 @@ GLFWAPI void glfwGetVersion(int* major, int* minor, int* rev);
|
|||||||
* This function returns the compile-time generated
|
* This function returns the compile-time generated
|
||||||
* [version string](@ref intro_version_string) of the GLFW library binary. It
|
* [version string](@ref intro_version_string) of the GLFW library binary. It
|
||||||
* describes the version, platform, compiler and any platform-specific
|
* describes the version, platform, compiler and any platform-specific
|
||||||
* compile-time options.
|
* compile-time options. It should not be confused with the OpenGL or OpenGL
|
||||||
|
* ES version string, queried with `glGetString`.
|
||||||
*
|
*
|
||||||
* __Do not use the version string__ to parse the GLFW library version. The
|
* __Do not use the version string__ to parse the GLFW library version. The
|
||||||
* @ref glfwGetVersion function already provides the version of the running
|
* @ref glfwGetVersion function provides the version of the running library
|
||||||
* library binary.
|
* binary in numerical format.
|
||||||
*
|
*
|
||||||
* @return The GLFW version string.
|
* @return The ASCII encoded GLFW version string.
|
||||||
*
|
*
|
||||||
* @errors None.
|
* @errors None.
|
||||||
*
|
*
|
||||||
@ -3256,6 +3257,10 @@ GLFWAPI int glfwJoystickPresent(int joy);
|
|||||||
* This function returns the values of all axes of the specified joystick.
|
* This function returns the values of all axes of the specified joystick.
|
||||||
* Each element in the array is a value between -1.0 and 1.0.
|
* Each element in the array is a value between -1.0 and 1.0.
|
||||||
*
|
*
|
||||||
|
* Querying a joystick slot with no device present is not an error, but will
|
||||||
|
* cause this function to return `NULL`. Call @ref glfwJoystickPresent to
|
||||||
|
* check device presence.
|
||||||
|
*
|
||||||
* @param[in] joy The [joystick](@ref joysticks) to query.
|
* @param[in] joy The [joystick](@ref joysticks) to query.
|
||||||
* @param[out] count Where to store the number of axis values in the returned
|
* @param[out] count Where to store the number of axis values in the returned
|
||||||
* array. This is set to zero if an error occurred.
|
* array. This is set to zero if an error occurred.
|
||||||
@ -3284,6 +3289,10 @@ GLFWAPI const float* glfwGetJoystickAxes(int joy, int* count);
|
|||||||
* This function returns the state of all buttons of the specified joystick.
|
* This function returns the state of all buttons of the specified joystick.
|
||||||
* Each element in the array is either `GLFW_PRESS` or `GLFW_RELEASE`.
|
* Each element in the array is either `GLFW_PRESS` or `GLFW_RELEASE`.
|
||||||
*
|
*
|
||||||
|
* Querying a joystick slot with no device present is not an error, but will
|
||||||
|
* cause this function to return `NULL`. Call @ref glfwJoystickPresent to
|
||||||
|
* check device presence.
|
||||||
|
*
|
||||||
* @param[in] joy The [joystick](@ref joysticks) to query.
|
* @param[in] joy The [joystick](@ref joysticks) to query.
|
||||||
* @param[out] count Where to store the number of button states in the returned
|
* @param[out] count Where to store the number of button states in the returned
|
||||||
* array. This is set to zero if an error occurred.
|
* array. This is set to zero if an error occurred.
|
||||||
@ -3314,6 +3323,10 @@ GLFWAPI const unsigned char* glfwGetJoystickButtons(int joy, int* count);
|
|||||||
* The returned string is allocated and freed by GLFW. You should not free it
|
* The returned string is allocated and freed by GLFW. You should not free it
|
||||||
* yourself.
|
* yourself.
|
||||||
*
|
*
|
||||||
|
* Querying a joystick slot with no device present is not an error, but will
|
||||||
|
* cause this function to return `NULL`. Call @ref glfwJoystickPresent to
|
||||||
|
* check device presence.
|
||||||
|
*
|
||||||
* @param[in] joy The [joystick](@ref joysticks) to query.
|
* @param[in] joy The [joystick](@ref joysticks) to query.
|
||||||
* @return The UTF-8 encoded name of the joystick, or `NULL` if the joystick
|
* @return The UTF-8 encoded name of the joystick, or `NULL` if the joystick
|
||||||
* is not present.
|
* is not present.
|
||||||
|
Loading…
Reference in New Issue
Block a user