mirror of
https://github.com/glfw/glfw.git
synced 2026-08-29 03:04:14 +02:00
Unify key name string handling
This makes key names per-key static strings for all supported platforms.
Fixes #1200.
(cherry picked from commit 56ca0cb3b3)
This commit is contained in:
@@ -4193,9 +4193,11 @@ GLFWAPI int glfwRawMouseMotionSupported(void);
|
||||
* @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
|
||||
* GLFW_PLATFORM_ERROR.
|
||||
*
|
||||
* @remark The contents of the returned string may change when a keyboard
|
||||
* layout change event is received.
|
||||
*
|
||||
* @pointer_lifetime The returned string is allocated and freed by GLFW. You
|
||||
* should not free it yourself. It is valid until the next call to @ref
|
||||
* glfwGetKeyName, or until the library is terminated.
|
||||
* should not free it yourself. It is valid until the library is terminated.
|
||||
*
|
||||
* @thread_safety This function must only be called from the main thread.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user