Added support for the Dragonrise GameCube adapter with VID 0x1843

This commit is contained in:
Sam Lantinga
2023-11-10 16:34:33 -08:00
parent d98e1bdfe1
commit fbb6934905
3 changed files with 8 additions and 3 deletions

View File

@@ -72,7 +72,9 @@ static SDL_bool HIDAPI_DriverGameCube_IsSupportedDevice(SDL_HIDAPI_Device *devic
/* Nintendo Co., Ltd. Wii U GameCube Controller Adapter */
return SDL_TRUE;
}
if (vendor_id == USB_VENDOR_DRAGONRISE && product_id == USB_PRODUCT_EVORETRO_GAMECUBE_ADAPTER) {
if (vendor_id == USB_VENDOR_DRAGONRISE &&
(product_id == USB_PRODUCT_EVORETRO_GAMECUBE_ADAPTER1 ||
product_id == USB_PRODUCT_EVORETRO_GAMECUBE_ADAPTER2)) {
/* EVORETRO GameCube Controller Adapter */
return SDL_TRUE;
}