Skip to content

Commit

Permalink
Merge pull request #9 from imbushuo/hid-v2
Browse files Browse the repository at this point in the history
Style improvement
  • Loading branch information
imbushuo authored Sep 6, 2017
2 parents 722cdd5 + 98311f2 commit df1bf6a
Show file tree
Hide file tree
Showing 11 changed files with 1,080 additions and 475 deletions.
10 changes: 4 additions & 6 deletions src/MagicTrackpad2PtpDevice/AppleDefinition.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#pragma once

#include "Types.h"

#define USB_VENDOR_ID_APPLE 0x05ac

/* MacbookAir, aka wellspring */
Expand Down Expand Up @@ -61,10 +59,10 @@

/* button data structure */
struct TRACKPAD_BUTTON_DATA {
u8 unknown1; /* constant */
u8 button; /* left button */
u8 rel_x; /* relative x coordinate */
u8 rel_y; /* relative y coordinate */
UCHAR unknown1; /* constant */
UCHAR button; /* left button */
UCHAR rel_x; /* relative x coordinate */
UCHAR rel_y; /* relative y coordinate */
};

/* trackpad header types */
Expand Down
Loading

0 comments on commit df1bf6a

Please sign in to comment.