/* grab the button mapping string from a mapping string  */
static char* SDL_PrivateGetControllerMappingFromMappingString(const char *pMapping)
/* grab the button mapping string from a mapping string  */
static char* SDL_PrivateGetControllerMappingFromMappingString(const char *pMapping)
{
    const char *pFirstComma, *pSecondComma;
    pFirstComma = SDL_strchr(pMapping, ',');
    if (!pFirstComma)
        return NULL;
    pSecondComma = SDL_strchr(pFirstComma + 1, ',');
    if (!pSecondComma)
        return NULL;
    return SDL_strdup(pSecondComma + 1);
}