Camilla Löwy
bfa24c9f2d
Fix glfwGetKeyName incorrectly emitting error
...
glfwGetKeyName emitted GLFW_INVALID_VALUE when passed GLFW_KEY_UNKNOWN
and any scancode not associated with a key token on that platform.
This causes physical keys with no associated key token to emit
GLFW_INVALID_VALUE when the key and scancode are passed directly from
the key event to glfwGetKeyName. This breaks the promise made in the
reference documentation for glfwGetKeyName.
This commit removes that error for the whole range of valid scancodes.
Fixes #1785
Fixes #2214
This was adapted to 3.3-stable from
86bf5698ec .
2024-02-05 16:25:27 +01:00
..
2023-11-27 17:01:35 +01:00
2023-11-16 22:50:41 +01:00
2021-08-03 16:01:03 +02:00
2023-12-12 18:48:53 +01:00
2022-05-06 19:34:05 +02:00
2022-02-15 21:25:42 +01:00
2019-05-27 16:33:22 +02:00
2024-02-05 16:25:27 +01:00
2023-12-07 18:04:08 +01:00
2023-12-12 16:04:57 +01:00
2021-12-24 01:51:24 +01:00
2023-11-27 17:01:35 +01:00
2016-02-02 06:00:18 +01:00
2022-02-15 21:20:28 +01:00
2023-12-07 18:04:48 +01:00
2022-10-31 21:57:21 +01:00
2023-07-19 17:23:25 +02:00
2023-12-07 18:04:48 +01:00
2023-07-19 17:23:25 +02:00
2024-01-14 23:56:09 +01:00
2023-11-28 22:17:40 +01:00
2021-08-27 17:13:12 +02:00
2021-08-27 17:13:12 +02:00
2022-06-09 19:41:56 +02:00
2022-02-15 21:25:42 +01:00
2023-12-07 18:04:48 +01:00
2019-05-27 16:33:22 +02:00
2019-05-27 16:33:22 +02:00
2019-11-05 17:59:15 +01:00
2019-05-27 16:33:22 +02:00
2019-11-05 17:59:15 +01:00
2022-06-10 17:11:01 +02:00
2022-03-13 16:43:58 +01:00
2021-10-28 12:14:58 +02:00
2019-05-27 16:33:22 +02:00
2021-10-28 12:14:58 +02:00
2019-05-27 16:33:22 +02:00
2021-10-28 12:14:58 +02:00
2022-03-13 16:43:58 +01:00
2023-12-07 18:04:48 +01:00
2021-10-28 12:14:58 +02:00
2022-06-10 17:11:13 +02:00
2023-12-07 18:04:48 +01:00
2021-08-03 16:01:03 +02:00
2022-03-20 16:00:34 +01:00
2022-10-31 21:29:42 +01:00
2019-05-27 16:33:22 +02:00
2021-10-28 12:24:38 +02:00
2024-02-05 16:25:27 +01:00
2022-06-10 17:11:01 +02:00
2024-01-14 23:57:44 +01:00
2023-03-28 17:43:39 +02:00
2023-11-30 21:31:58 +01:00
2024-02-05 16:25:27 +01:00
2022-07-12 20:29:22 +02:00
2020-06-30 17:09:55 +02:00
2022-07-12 20:29:22 +02:00
2024-02-05 16:25:27 +01:00
2022-02-15 21:08:17 +01:00
2022-02-15 21:08:17 +01:00