mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
Ensure Android gamepad mappings don't lose the first button.
(cherry picked from commit fd3cfb97c1)
This commit is contained in:
parent
d348116157
commit
7e101bdce9
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue