-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.SetGamepadMappings
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Set internal gamepad mappings
| Parameter | Default Value | Note |
|---|---|---|
| mappings |
| Condition | Return Value |
|---|---|
| (always) | number |
// Load an SDL-format gamepad mapping string and apply it
mapping = raylib.LoadFileText("gamecontrollerdb.txt")
result = raylib.SetGamepadMappings(mapping)
print result + " mappings applied"
raylib.UnloadFileText mapping