From 9f6bf2ca39510f2e93aa5db8d4f68c182081fa5c Mon Sep 17 00:00:00 2001 From: Grzesiek11 Date: Sat, 18 Nov 2023 03:24:26 +0100 Subject: [PATCH] Specify that synthetic button releases are only generated for named buttons The current wording states that all mouse buttons have synthetic release events generated after focus is lost, but buttons that aren't named don't have any state held, so no such events are generated for them. --- include/GLFW/glfw3.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/GLFW/glfw3.h b/include/GLFW/glfw3.h index 5e6fad42..d73d9826 100644 --- a/include/GLFW/glfw3.h +++ b/include/GLFW/glfw3.h @@ -5193,9 +5193,9 @@ GLFWAPI GLFWcharmodsfun glfwSetCharModsCallback(GLFWwindow* window, GLFWcharmods * is called when a mouse button is pressed or released. * * When a window loses input focus, it will generate synthetic mouse button - * release events for all pressed mouse buttons. You can tell these events - * from user-generated events by the fact that the synthetic ones are generated - * after the focus loss event has been processed, i.e. after the + * release events for all pressed named mouse buttons. You can tell these + * events from user-generated events by the fact that the synthetic ones are + * generated after the focus loss event has been processed, i.e. after the * [window focus callback](@ref glfwSetWindowFocusCallback) has been called. * * @param[in] window The window whose callback to set.