mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-31 14:29:14 +08: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;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_strlcpy(mapping_string, "*,", sizeof(mapping_string));
|
SDL_strlcat(mapping_string, "*,", sizeof(mapping_string));
|
||||||
|
|
||||||
if (button_mask & (1 << SDL_GAMEPAD_BUTTON_SOUTH)) {
|
if (button_mask & (1 << SDL_GAMEPAD_BUTTON_SOUTH)) {
|
||||||
SDL_strlcat(mapping_string, "a:b0,", sizeof(mapping_string));
|
SDL_strlcat(mapping_string, "a:b0,", sizeof(mapping_string));
|
||||||
|
|||||||
Reference in New Issue
Block a user