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.
This commit is contained in:
Grzesiek11 2023-11-18 03:24:26 +01:00
parent 42cc7705ca
commit 9f6bf2ca39
No known key found for this signature in database
GPG Key ID: 4A5445FB68CDB5C4

View File

@ -5193,9 +5193,9 @@ GLFWAPI GLFWcharmodsfun glfwSetCharModsCallback(GLFWwindow* window, GLFWcharmods
* is called when a mouse button is pressed or released. * is called when a mouse button is pressed or released.
* *
* When a window loses input focus, it will generate synthetic mouse button * When a window loses input focus, it will generate synthetic mouse button
* release events for all pressed mouse buttons. You can tell these events * release events for all pressed named mouse buttons. You can tell these
* from user-generated events by the fact that the synthetic ones are generated * events from user-generated events by the fact that the synthetic ones are
* after the focus loss event has been processed, i.e. after the * generated after the focus loss event has been processed, i.e. after the
* [window focus callback](@ref glfwSetWindowFocusCallback) has been called. * [window focus callback](@ref glfwSetWindowFocusCallback) has been called.
* *
* @param[in] window The window whose callback to set. * @param[in] window The window whose callback to set.