Skip to content

Commit

Permalink
Fixed inversion
Browse files Browse the repository at this point in the history
  • Loading branch information
1Revenger1 committed Feb 29, 2020
1 parent f421855 commit e3defcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions VoodooPS2Trackpad/alps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1086,8 +1086,8 @@ void ALPS::alps_process_trackstick_packet_v7(UInt8 *packet)
((packet[3] & 0x20) << 1));
z = (packet[5] & 0x3f) | ((packet[3] & 0x80) >> 1);

// X is inverted
x = -x;
// Y is inverted
y = -y;

left = (packet[1] & 0x01);
right = (packet[1] & 0x02) >> 1;
Expand Down

0 comments on commit e3defcc

Please sign in to comment.