diff --git a/DS4Windows/DS4Library/DS4Device.cs b/DS4Windows/DS4Library/DS4Device.cs index 50fd34f..18e02b1 100644 --- a/DS4Windows/DS4Library/DS4Device.cs +++ b/DS4Windows/DS4Library/DS4Device.cs @@ -744,8 +744,6 @@ namespace DS4Windows public string error; public bool firstReport = true; public bool oldCharging = false; - double curTimeDouble = 0.0; - double oldTimeDouble = 0.0; DateTime utcNow = DateTime.UtcNow; bool ds4InactiveFrame = true; bool idleInput = true; @@ -771,8 +769,6 @@ namespace DS4Windows string currerror = string.Empty; long curtime = 0; long testelapsed = 0; - Stopwatch sw = new Stopwatch(); - sw.Start(); timeoutEvent = false; ds4InactiveFrame = true; idleInput = true; @@ -902,15 +898,6 @@ namespace DS4Windows lastTimeElapsed = (long)lastTimeElapsedDouble; oldtime = curtime; - //curTimeDouble = sw.Elapsed.TotalMilliseconds; - //curtime = sw.ElapsedMilliseconds; - - //lastTimeElapsed = curtime - oldtime; - //lastTimeElapsedDouble = (curTimeDouble - oldTimeDouble); - - //oldtime = curtime; - //oldTimeDouble = curTimeDouble; - if (conType == ConnectionType.BT && btInputReport[0] != 0x11) { //Received incorrect report, skip it