mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 08:50:15 +00:00
Improve error description for invalid scancodes
(cherry picked from commit 56092814f3)
This commit is contained in:
+1
-1
@@ -2886,7 +2886,7 @@ const char* _glfwPlatformGetScancodeName(int scancode)
|
||||
if (scancode < 0 || scancode > 0xff ||
|
||||
_glfw.x11.keycodes[scancode] == GLFW_KEY_UNKNOWN)
|
||||
{
|
||||
_glfwInputError(GLFW_INVALID_VALUE, "Invalid scancode");
|
||||
_glfwInputError(GLFW_INVALID_VALUE, "Invalid scancode %i", scancode);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user