Improve error description for invalid scancodes

This commit is contained in:
Camilla Löwy
2021-07-19 19:05:32 +02:00
parent 3dc7349c35
commit 56092814f3
4 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -1536,7 +1536,7 @@ const char* _glfwPlatformGetScancodeName(int scancode)
if (scancode < 0 || scancode > 0xff ||
_glfw.ns.keycodes[scancode] == GLFW_KEY_UNKNOWN)
{
_glfwInputError(GLFW_INVALID_VALUE, "Invalid scancode");
_glfwInputError(GLFW_INVALID_VALUE, "Invalid scancode %i", scancode);
return NULL;
}