Skip to content

Commit

Permalink
Add Wellspring 5A support.
Browse files Browse the repository at this point in the history
Wellspring 5A is identical in controller perspective. Full support has been implemented to resolve #62, #58, #50.

Need to revisit #41 again.
  • Loading branch information
imbushuo committed Feb 28, 2018
1 parent d3e96bf commit e4bc652
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Binary file modified src/MagicTrackpad2PtpDevice/AmtPtpDevice.inf
Binary file not shown.
8 changes: 7 additions & 1 deletion src/MagicTrackpad2PtpDevice/Hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit e4bc652

Please sign in to comment.