Specify that mouse buttons can only exceed the last named button when the init hint is set

This commit is contained in:
Grzesiek11 2023-12-11 22:20:58 +01:00
parent 4bc709b952
commit 747d0729fd
No known key found for this signature in database
GPG Key ID: 4A5445FB68CDB5C4

View File

@ -5204,7 +5204,8 @@ GLFWAPI GLFWcharmodsfun glfwSetCharModsCallback(GLFWwindow* window, GLFWcharmods
* [window focus callback](@ref glfwSetWindowFocusCallback) has been called.
*
* The reported `button` value can be higher than `GLFW_MOUSE_BUTTON_LAST` if
* the button is not a [named button](@ref buttons).
* the button is not a [named button](@ref buttons) and the
* @ref GLFW_MOUSE_BUTTON_LIMIT init hint is set to `GLFW_FALSE`.
*
* @param[in] window The window whose callback to set.
* @param[in] callback The new callback, or `NULL` to remove the currently set