From 062bf398f8804abb2b799be7c21507083d740e88 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Mon, 9 Aug 2021 09:44:05 -0500 Subject: [PATCH] Fixed copying of TouchPacketCounter for use in DS4 Extended report --- DS4Windows/DS4Control/ControlService.cs | 1 + DS4Windows/DS4Library/DS4State.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/DS4Windows/DS4Control/ControlService.cs b/DS4Windows/DS4Control/ControlService.cs index 3d5e5157a1..d9b1ea72d1 100644 --- a/DS4Windows/DS4Control/ControlService.cs +++ b/DS4Windows/DS4Control/ControlService.cs @@ -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; diff --git a/DS4Windows/DS4Library/DS4State.cs b/DS4Windows/DS4Library/DS4State.cs index 3793f2df2c..87c6ba711d 100644 --- a/DS4Windows/DS4Library/DS4State.cs +++ b/DS4Windows/DS4Library/DS4State.cs @@ -219,6 +219,7 @@ public void CopyExtrasTo(DS4State state) { state.Motion = Motion; state.ds4Timestamp = ds4Timestamp; + state.TouchPacketCounter = TouchPacketCounter; state.TrackPadTouch0 = TrackPadTouch0; state.TrackPadTouch1 = TrackPadTouch1; }