mirror of
https://github.com/glfw/glfw.git
synced 2025-07-27 01:50:02 +00:00
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:
parent
42cc7705ca
commit
9f6bf2ca39
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user