Clean up code and documentation for glfwGetKeyScancode and add
implementation for Wayland and Mir.

Related to #830.
This commit is contained in:
Camilla Berglund
2016-09-06 15:40:31 +02:00
parent e745b0dd47
commit bb3cb8f233
11 changed files with 28 additions and 41 deletions
+2 -4
View File
@@ -744,11 +744,9 @@ const char* _glfwPlatformGetKeyName(int key, int scancode)
return NULL;
}
const int _glfwPlatformGetKeyScancode(int key)
int _glfwPlatformGetKeyScancode(int key)
{
_glfwInputError(GLFW_PLATFORM_ERROR,
"Mir: Unsupported function %s", __PRETTY_FUNCTION__);
return NULL;
return _glfw.mir.nativeKeys[key];
}
void _glfwPlatformSetClipboardString(_GLFWwindow* window, const char* string)