diff options
| author | raysan5 <[email protected]> | 2021-01-28 18:37:52 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2021-01-28 18:37:52 +0100 |
| commit | bc332018f67fc6dcefd9f236b9147f20f17f86ab (patch) | |
| tree | ecbf79ae8e2a38f67ec2404b7f0a180917ee36ee /src/core.c | |
| parent | 731ab15d5768340bcfb028878fb3d92ae49ec1ab (diff) | |
| download | raylib-bc332018f67fc6dcefd9f236b9147f20f17f86ab.tar.gz raylib-bc332018f67fc6dcefd9f236b9147f20f17f86ab.zip | |
REVIEWED: SetGamepadMappings()
return value for all platforms
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |
