Skip to content

Commit

Permalink
Fixed copying of TouchPacketCounter for use in DS4 Extended report
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryochan7 committed Aug 9, 2021
1 parent 7fd164b commit 062bf39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions DS4Windows/DS4Control/ControlService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2269,6 +2269,7 @@ protected virtual void On_Report(DS4Device device, EventArgs e, int ind)
// Might change to use new DS4State.CopyExtrasTo method
tempMapState.Motion = cState.Motion;
tempMapState.ds4Timestamp = cState.ds4Timestamp;
tempMapState.TouchPacketCounter = cState.TouchPacketCounter;
tempMapState.TrackPadTouch0 = cState.TrackPadTouch0;
tempMapState.TrackPadTouch1 = cState.TrackPadTouch1;
cState = tempMapState;
Expand Down
1 change: 1 addition & 0 deletions DS4Windows/DS4Library/DS4State.cs
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ public void CopyExtrasTo(DS4State state)
{
state.Motion = Motion;
state.ds4Timestamp = ds4Timestamp;
state.TouchPacketCounter = TouchPacketCounter;
state.TrackPadTouch0 = TrackPadTouch0;
state.TrackPadTouch1 = TrackPadTouch1;
}
Expand Down

0 comments on commit 062bf39

Please sign in to comment.