mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 00:51:47 +00:00
Clarified sticky keys docs.
This commit is contained in:
parent
3274dc9a61
commit
e6bfbba429
@ -1741,13 +1741,16 @@ GLFWAPI int glfwGetInputMode(GLFWwindow* window, int mode);
|
||||
* enable sticky keys, or `GL_FALSE` to disable it. If sticky keys are
|
||||
* enabled, a key press will ensure that @ref glfwGetKey returns @ref
|
||||
* GLFW_PRESS the next time it is called even if the key had been released
|
||||
* before the call.
|
||||
* before the call. This is useful when you are only interested in whether
|
||||
* keys have been pressed but not when or in which order.
|
||||
*
|
||||
* If `mode` is `GLFW_STICKY_MOUSE_BUTTONS`, the value must be either `GL_TRUE`
|
||||
* to enable sticky mouse buttons, or `GL_FALSE` to disable it. If sticky
|
||||
* mouse buttons are enabled, a mouse button press will ensure that @ref
|
||||
* glfwGetMouseButton returns @ref GLFW_PRESS the next time it is called even
|
||||
* if the mouse button had been released before the call.
|
||||
* if the mouse button had been released before the call. This is useful when
|
||||
* you are only interested in whether mouse buttons have been pressed but not
|
||||
* when or in which order.
|
||||
*
|
||||
* @sa glfwGetInputMode
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user