Skip to content

Commit db29f89

Browse files
committed
hidapi: The libusb whitelist can use the names from usb_ids.h
1 parent 3f1e7bc commit db29f89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hidapi/SDL_hidapi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -899,8 +899,8 @@ static const struct {
899899
Uint16 vendor;
900900
Uint16 product;
901901
} SDL_libusb_whitelist[] = {
902-
{ 0x057e, 0x0337 }, // Nintendo WUP-028, Wii U/Switch GameCube Adapter
903-
{ 0x057e, 0x2073 }, // Nintendo Switch 2 NSO GameCube Controller
902+
{ USB_VENDOR_NINTENDO, USB_PRODUCT_NINTENDO_GAMECUBE_ADAPTER },
903+
{ USB_VENDOR_NINTENDO, USB_PRODUCT_NINTENDO_SWITCH2_GAMECUBE_CONTROLLER },
904904
};
905905

906906
static bool IsInWhitelist(Uint16 vendor, Uint16 product)

0 commit comments

Comments
 (0)