SDL Wiki
(This is the documentation for SDL3, which is under heavy development and the API is changing! SDL2 is the current stable version!)


Get the mapping at a particular index.


char ** SDL_GetGamepadMappings(int *count);

Function Parameters

count a pointer filled in with the number of mappings returned, can be NULL.

Return Value

Returns an array of the mapping strings, NULL-terminated. Must be freed with SDL_free(). Returns NULL on error.


You must free the returned pointer with SDL_free() when you are done with it, but you do not free each string in the array.


This function is available since SDL 3.0.0.


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.