summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index 4162e893..5549fc9d 100644
--- a/src/core.c
+++ b/src/core.c
@@ -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)
{