Added support for the 8BitDo Ultimate Wired Controller for Xbox

This commit is contained in:
Sam Lantinga 2022-07-20 11:05:55 -07:00
parent b700a32630
commit be3a945a8b
6 changed files with 11 additions and 0 deletions

View file

@ -2077,6 +2077,11 @@ SDL_IsJoystickXboxSeriesX(Uint16 vendor_id, Uint16 product_id)
return SDL_TRUE;
}
}
if (vendor_id == USB_VENDOR_8BITDO) {
if (product_id == USB_PRODUCT_8BITDO_XBOX_CONTROLLER) {
return SDL_TRUE;
}
}
return SDL_FALSE;
}