From 362445460e52b9251bedc597a64cc1dae6bfb996 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 2 May 2025 10:01:13 -0700
Subject: [PATCH] Added support for the PowerA Battle Dragon Advanced Wireless
Controller
(cherry picked from commit 1e6a25324c6d321bd7e391a33a1120721dd52518)
---
src/hidapi/libusb/hid.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/hidapi/libusb/hid.c b/src/hidapi/libusb/hid.c
index f4b1ccb39294b..c911f7e7154e0 100644
--- a/src/hidapi/libusb/hid.c
+++ b/src/hidapi/libusb/hid.c
@@ -1238,6 +1238,7 @@ static void init_xbox360(libusb_device_handle *device_handle, unsigned short idV
(void)conf_desc;
if ((idVendor == 0x05ac && idProduct == 0x055b) /* Gamesir-G3w */ ||
+ (idVendor == 0x20d6 && idProduct == 0x4010) /* PowerA Battle Dragon Advanced Wireless Controller */ ||
idVendor == 0x0f0d /* Hori Xbox controllers */) {
unsigned char data[20];