mirror of https://github.com/encounter/SDL.git
Fixed default mapping for Android controller triggers (they were reversed)
This commit is contained in:
parent
101544d6f0
commit
c07656dbcb
|
@ -982,10 +982,10 @@ static ControllerMapping_t *SDL_CreateMappingForAndroidController(const char *na
|
||||||
SDL_strlcat(mapping_string, "righty:a3,", sizeof(mapping_string));
|
SDL_strlcat(mapping_string, "righty:a3,", sizeof(mapping_string));
|
||||||
}
|
}
|
||||||
if (axis_mask & (1 << SDL_CONTROLLER_AXIS_TRIGGERLEFT)) {
|
if (axis_mask & (1 << SDL_CONTROLLER_AXIS_TRIGGERLEFT)) {
|
||||||
SDL_strlcat(mapping_string, "lefttrigger:a4,", sizeof(mapping_string));
|
SDL_strlcat(mapping_string, "lefttrigger:a5,", sizeof(mapping_string));
|
||||||
}
|
}
|
||||||
if (axis_mask & (1 << SDL_CONTROLLER_AXIS_TRIGGERRIGHT)) {
|
if (axis_mask & (1 << SDL_CONTROLLER_AXIS_TRIGGERRIGHT)) {
|
||||||
SDL_strlcat(mapping_string, "righttrigger:a5,", sizeof(mapping_string));
|
SDL_strlcat(mapping_string, "righttrigger:a4,", sizeof(mapping_string));
|
||||||
}
|
}
|
||||||
return SDL_PrivateAddMappingForGUID(guid, mapping_string,
|
return SDL_PrivateAddMappingForGUID(guid, mapping_string,
|
||||||
&existing, SDL_CONTROLLER_MAPPING_PRIORITY_DEFAULT);
|
&existing, SDL_CONTROLLER_MAPPING_PRIORITY_DEFAULT);
|
||||||
|
|
Loading…
Reference in New Issue