Get the current gamepad mappings.
Defined in <SDL3/SDL_gamepad.h>
count | a pointer filled in with the number of mappings returned, can be NULL. |
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.