Ensure Android gamepad mappings don't lose the first button.

(cherry picked from commit fd3cfb97c1)
This commit is contained in:
Rachel Blackman
2026-05-11 12:47:30 -07:00
committed by Sam Lantinga
parent d348116157
commit 7e101bdce9

View File

@@ -749,7 +749,7 @@ static GamepadMapping_t *SDL_CreateMappingForAndroidGamepad(SDL_GUID guid)
return NULL;
}
SDL_strlcpy(mapping_string, "*,", sizeof(mapping_string));
SDL_strlcat(mapping_string, "*,", sizeof(mapping_string));
if (button_mask & (1 << SDL_GAMEPAD_BUTTON_SOUTH)) {
SDL_strlcat(mapping_string, "a:b0,", sizeof(mapping_string));