Explorar o código

REVIEWED: SetGamepadMappings()

return value for all platforms
raysan5 %!s(int64=4) %!d(string=hai) anos
pai
achega
bc332018f6
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      src/core.c

+ 5 - 1
src/core.c

@@ -2985,9 +2985,13 @@ int GetGamepadButtonPressed(void)
 // Set internal gamepad mappings
 int SetGamepadMappings(const char *mappings)
 {
+    int result = 0;
+
 #if defined(PLATFORM_DESKTOP)
-    return glfwUpdateGamepadMappings(mappings);
+    result = glfwUpdateGamepadMappings(mappings);
 #endif
+
+    return result;
 }
 
 // Detect if a mouse button has been pressed once