mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-06 11:28:17 +00:00
REVIEWED: SetGamepadMappings()
return value for all platforms
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user