Select mapping platform name at runtime

This is done in preparation for runtime platform selection.
This commit is contained in:
Camilla Löwy
2021-07-15 22:12:21 +02:00
parent d0776e04a3
commit 6d51b39106
10 changed files with 24 additions and 7 deletions
+5
View File
@@ -469,6 +469,11 @@ int _glfwPlatformPollJoystick(_GLFWjoystick* js, int mode)
return js->present;
}
const char* _glfwPlatformGetMappingName(void)
{
return "Mac OS X";
}
void _glfwPlatformUpdateGamepadGUID(char* guid)
{
if ((strncmp(guid + 4, "000000000000", 12) == 0) &&