From bc332018f67fc6dcefd9f236b9147f20f17f86ab Mon Sep 17 00:00:00 2001 From: raysan5 Date: Thu, 28 Jan 2021 18:37:52 +0100 Subject: [PATCH] REVIEWED: SetGamepadMappings() return value for all platforms --- src/core.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index 3b31f0de..e2f61204 100644 --- a/src/core.c +++ b/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