mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 08:50:15 +00:00
+10
-3
@@ -220,10 +220,17 @@ GLFWAPI int glfwInit(void)
|
||||
|
||||
glfwDefaultWindowHints();
|
||||
|
||||
if (!glfwUpdateGamepadMappings(_glfwDefaultMappings))
|
||||
{
|
||||
terminate();
|
||||
return GLFW_FALSE;
|
||||
int i;
|
||||
|
||||
for (i = 0; _glfwDefaultMappings[i]; i++)
|
||||
{
|
||||
if (!glfwUpdateGamepadMappings(_glfwDefaultMappings[i]))
|
||||
{
|
||||
terminate();
|
||||
return GLFW_FALSE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return GLFW_TRUE;
|
||||
|
||||
Reference in New Issue
Block a user