mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-22 09:19:18 +01:00
Removed some outdated Stopwatch usage code
This commit is contained in:
parent
af5d06c42b
commit
9890fc7cdf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user