diff options
| author | Ray <[email protected]> | 2021-01-21 14:39:03 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-01-21 14:39:03 +0100 |
| commit | 18ab694f703ee4b185935b5bdd5a533ea05933d2 (patch) | |
| tree | 40d2bed4401e203ae5718de5d8015702878d3cdd /src/core.c | |
| parent | 677f420bf00d346b8b5a84ac17beaf70111dbf2b (diff) | |
| download | raylib-18ab694f703ee4b185935b5bdd5a533ea05933d2.tar.gz raylib-18ab694f703ee4b185935b5bdd5a533ea05933d2.zip | |
ADDED: SetGamepadMappings() #1506
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -2976,6 +2976,14 @@ int GetGamepadButtonPressed(void) return CORE.Input.Gamepad.lastButtonPressed; } +// Set internal gamepad mappings +int SetGamepadMappings(const char *mappings) +{ +#if defined(PLATFORM_DESKTOP) + return glfwUpdateGamepadMappings(mappings); +#endif +} + // Detect if a mouse button has been pressed once bool IsMouseButtonPressed(int button) { |
