From 4f4bfa3d292fa87e73d7bba92a23079bcc720e6c Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Sat, 2 Feb 2013 23:28:28 +0100 Subject: [PATCH] Added support for Joytech controllers --- XBOXUSB.cpp | 2 +- XBOXUSB.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/XBOXUSB.cpp b/XBOXUSB.cpp index 233da046..333897ca 100644 --- a/XBOXUSB.cpp +++ b/XBOXUSB.cpp @@ -92,7 +92,7 @@ uint8_t XBOXUSB::Init(uint8_t parent, uint8_t port, bool lowspeed) { VID = ((USB_DEVICE_DESCRIPTOR*)buf)->idVendor; PID = ((USB_DEVICE_DESCRIPTOR*)buf)->idProduct; - if(VID != XBOX_VID && VID != MADCATZ_VID) // We just check if it's a xbox controller using the Vendor ID + if(VID != XBOX_VID && VID != MADCATZ_VID && VID != JOYTECH_VID) // We just check if it's a xbox controller using the Vendor ID goto FailUnknownDevice; if(PID == XBOX_WIRELESS_PID) { #ifdef DEBUG diff --git a/XBOXUSB.h b/XBOXUSB.h index 78d56549..3d20b867 100644 --- a/XBOXUSB.h +++ b/XBOXUSB.h @@ -44,6 +44,7 @@ #define XBOX_WIRELESS_RECEIVER_THIRD_PARTY_PID 0x0291 // Third party Wireless Gaming Receiver #define MADCATZ_VID 0x1BAD // For unofficial Mad Catz controllers +#define JOYTECH_VID 0x162E // For unofficial Joytech controllers #define XBOX_REPORT_BUFFER_SIZE 14 // Size of the input report buffer