diff --git a/src/input.c b/src/input.c index 0ae27eef..cbb59455 100644 --- a/src/input.c +++ b/src/input.c @@ -637,7 +637,7 @@ GLFWAPI const char* glfwGetKeyName(int key, int scancode) GLFWAPI int glfwGetKeyScancode(int key) { - _GLFW_REQUIRE_INIT_OR_RETURN(-1); + _GLFW_REQUIRE_INIT_OR_RETURN(0); if (key < GLFW_KEY_SPACE || key > GLFW_KEY_LAST) {