REVIEWED: SetGamepadMappings()

return value for all platforms
This commit is contained in:
raysan5
2021-01-28 18:37:52 +01:00
parent 731ab15d57
commit bc332018f6

View File

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