mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-12 23:04:40 +02:00
Ensure Android gamepad mappings don't lose the first button.
This commit is contained in:
committed by
Sam Lantinga
parent
76f8705c12
commit
fd3cfb97c1
@@ -750,7 +750,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));
|
||||
|
||||
Reference in New Issue
Block a user