mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-22 12:48:28 +00:00
Fixed the screenshot button mapping on third party Bluetooth Nintendo Switch Pro controllers
This commit is contained in:
parent
03665004d0
commit
2ea393bd83
1 changed files with 4 additions and 0 deletions
|
@ -605,6 +605,10 @@ static ControllerMapping_t *SDL_CreateMappingForHIDAPIController(SDL_JoystickGUI
|
||||||
SDL_strlcat(mapping_string, "misc1:b15,", sizeof(mapping_string));
|
SDL_strlcat(mapping_string, "misc1:b15,", sizeof(mapping_string));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
if (vendor == 0 && product == 0) {
|
||||||
|
/* This is a Bluetooth Nintendo Switch Pro controller */
|
||||||
|
SDL_strlcat(mapping_string, "misc1:b15,", sizeof(mapping_string));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue