mirror of
https://github.com/encounter/SDL.git
synced 2025-06-05 14:13:30 +00:00
Fixed button mapping for PS5 controllers
This commit is contained in:
parent
eb0bf2c29d
commit
4f1b408a72
@ -634,7 +634,7 @@ static ControllerMapping_t *SDL_CreateMappingForHIDAPIController(SDL_JoystickGUI
|
|||||||
break;
|
break;
|
||||||
case SDL_CONTROLLER_TYPE_PS5:
|
case SDL_CONTROLLER_TYPE_PS5:
|
||||||
/* PS5 controllers have a microphone button and an additional touchpad button */
|
/* PS5 controllers have a microphone button and an additional touchpad button */
|
||||||
SDL_strlcat(mapping_string, "touchpad:b15,misc1:b16", sizeof(mapping_string));
|
SDL_strlcat(mapping_string, "touchpad:b15,misc1:b16,", sizeof(mapping_string));
|
||||||
break;
|
break;
|
||||||
case SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_PRO:
|
case SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_PRO:
|
||||||
/* Nintendo Switch Pro controllers have a screenshot button */
|
/* Nintendo Switch Pro controllers have a screenshot button */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user