Wish: rename scancode → native_key in glfw codebase

This commit is contained in:
Benoit de Chezelles
2019-10-16 01:15:48 +02:00
parent 0c254fa7c7
commit 2b6dde2ac5
5 changed files with 22 additions and 20 deletions

6
glfw/input.c vendored
View File

@@ -756,7 +756,7 @@ GLFWAPI void glfwSetInputMode(GLFWwindow* handle, int mode, int value)
_glfwInputError(GLFW_INVALID_ENUM, "Invalid input mode 0x%08X", mode);
}
GLFWAPI const char* glfwGetKeyName(int key, int scancode)
GLFWAPI const char* glfwGetKeyName(int key, int native_key)
{
_GLFW_REQUIRE_INIT_OR_RETURN(NULL);
@@ -769,10 +769,10 @@ GLFWAPI const char* glfwGetKeyName(int key, int scancode)
return NULL;
}
scancode = _glfwPlatformGetKeyScancode(key);
native_key = _glfwPlatformGetKeyScancode(key);
}
return _glfwPlatformGetScancodeName(scancode);
return _glfwPlatformGetScancodeName(native_key);
}
GLFWAPI int glfwGetKeyScancode(int key)