From e4bc652064dbe3ae01cc0a50af15b43e81292415 Mon Sep 17 00:00:00 2001 From: Bingxing Wang Date: Wed, 28 Feb 2018 12:42:24 -0800 Subject: [PATCH] Add Wellspring 5A support. Wellspring 5A is identical in controller perspective. Full support has been implemented to resolve #62, #58, #50. Need to revisit #41 again. --- src/MagicTrackpad2PtpDevice/AmtPtpDevice.inf | Bin 7334 -> 7770 bytes src/MagicTrackpad2PtpDevice/Hid.c | 8 +++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/MagicTrackpad2PtpDevice/AmtPtpDevice.inf b/src/MagicTrackpad2PtpDevice/AmtPtpDevice.inf index ad478b2513a19d4c9eca7bd4e06371e18c404860..5cb7ba7a264da659b4bc7f86f7c9dca199442d77 100644 GIT binary patch delta 54 zcmZ2xdCO*l6pNrKgCm0igBwF4LoP!mLk>gb78SdBN! IuyjcP0E&(d)Bpeg delta 12 Tcmca*v&?dX6wBswtUVF{Bbfy5 diff --git a/src/MagicTrackpad2PtpDevice/Hid.c b/src/MagicTrackpad2PtpDevice/Hid.c index 847d2e6..36860c2 100644 --- a/src/MagicTrackpad2PtpDevice/Hid.c +++ b/src/MagicTrackpad2PtpDevice/Hid.c @@ -118,12 +118,15 @@ AmtPtpGetHidDescriptor( case USB_DEVICE_ID_APPLE_WELLSPRING5_ANSI: case USB_DEVICE_ID_APPLE_WELLSPRING5_ISO: case USB_DEVICE_ID_APPLE_WELLSPRING5_JIS: + case USB_DEVICE_ID_APPLE_WELLSPRING5A_ANSI: + case USB_DEVICE_ID_APPLE_WELLSPRING5A_ISO: + case USB_DEVICE_ID_APPLE_WELLSPRING5A_JIS: { TraceEvents( TRACE_LEVEL_INFORMATION, TRACE_DRIVER, - "%!FUNC! Request HID Report Descriptor for MacBook Family, Wellspring 5 Series" + "%!FUNC! Request HID Report Descriptor for MacBook Family, Wellspring 5/5A Series" ); szCopy = AmtPtp5DefaultHidDescriptor.bLength; @@ -375,6 +378,9 @@ AmtPtpGetReportDescriptor( case USB_DEVICE_ID_APPLE_WELLSPRING5_ANSI: case USB_DEVICE_ID_APPLE_WELLSPRING5_ISO: case USB_DEVICE_ID_APPLE_WELLSPRING5_JIS: + case USB_DEVICE_ID_APPLE_WELLSPRING5A_ANSI: + case USB_DEVICE_ID_APPLE_WELLSPRING5A_ISO: + case USB_DEVICE_ID_APPLE_WELLSPRING5A_JIS: { szCopy = AmtPtp5DefaultHidDescriptor.DescriptorList[0].wReportLength;