From a1986c3d30e87feda1f2b30db37e6da4581c95bb Mon Sep 17 00:00:00 2001 From: Kurt Eckhardt Date: Mon, 11 Dec 2017 06:26:36 -0800 Subject: [PATCH] Add 2nd VID:PID for XBox One As per forum post by linarism, added 2nd XBox controller PID --- USBHost_t36.h | 2 +- joystick.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/USBHost_t36.h b/USBHost_t36.h index bb0ac03..131cff5 100644 --- a/USBHost_t36.h +++ b/USBHost_t36.h @@ -56,7 +56,7 @@ // your best effort to read chapter 4 before asking USB questions! -//#define USBHOST_PRINT_DEBUG +#define USBHOST_PRINT_DEBUG /************************************************/ /* Data Types */ diff --git a/joystick.cpp b/joystick.cpp index ecb0ed5..9513127 100644 --- a/joystick.cpp +++ b/joystick.cpp @@ -155,7 +155,7 @@ void JoystickController::joystickDataClear() { //***************************************************************************** // Note: currently just XBOX one. JoystickController::product_vendor_mapping_t JoystickController::pid_vid_mapping[] = { - {0x045e, 0x02ea} }; + { 0x045e, 0x02ea },{ 0x045e, 0x02dd } }; static uint8_t start_input[] = {0x05, 0x20, 0x00, 0x01, 0x00};