From 747d0729fdbbd05d7f8919752f5e0028b5b1c40d Mon Sep 17 00:00:00 2001 From: Grzesiek11 Date: Mon, 11 Dec 2023 22:20:58 +0100 Subject: [PATCH] Specify that mouse buttons can only exceed the last named button when the init hint is set --- include/GLFW/glfw3.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/GLFW/glfw3.h b/include/GLFW/glfw3.h index 2767f0ec..ec357e09 100644 --- a/include/GLFW/glfw3.h +++ b/include/GLFW/glfw3.h @@ -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