Skip to content

Commit

Permalink
Convert DualSense timestamp for use in virtual DS4
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryochan7 committed Dec 30, 2020
1 parent af0e235 commit f2230b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions DS4Windows/DS4Library/InputDevices/DualSenseDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ private unsafe void ReadInput()
//Console.WriteLine("{0} {1} {2} {3} {4} Diff({5}) TSms({6}) Sys({7})", tempStamp, inputReport[31 + reportOffset], inputReport[30 + reportOffset], inputReport[29 + reportOffset], inputReport[28 + reportOffset], tempStamp - timeStampPrevious, elapsedDeltaTime, lastTimeElapsedDouble * 0.001);

cState.elapsedTime = elapsedDeltaTime;
cState.ds4Timestamp = (ushort)(tempStamp % ushort.MaxValue);
timeStampPrevious = tempStamp;

//elapsedDeltaTime = lastTimeElapsedDouble * .001;
Expand Down

0 comments on commit f2230b9

Please sign in to comment.