mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-01-12 08:19:13 +01:00
Comment out delay when re-enabling a device
Will likely remove later
This commit is contained in:
parent
b24c72f559
commit
424b252a95
@ -391,7 +391,7 @@ namespace DS4Windows
|
|||||||
}
|
}
|
||||||
|
|
||||||
//System.Threading.Thread.Sleep(50);
|
//System.Threading.Thread.Sleep(50);
|
||||||
sw.Restart();
|
/*sw.Restart();
|
||||||
while (sw.ElapsedMilliseconds < 50)
|
while (sw.ElapsedMilliseconds < 50)
|
||||||
{
|
{
|
||||||
// Use SpinWait to keep control of current thread. Using Sleep could potentially
|
// Use SpinWait to keep control of current thread. Using Sleep could potentially
|
||||||
@ -399,6 +399,7 @@ namespace DS4Windows
|
|||||||
System.Threading.Thread.SpinWait(100);
|
System.Threading.Thread.SpinWait(100);
|
||||||
}
|
}
|
||||||
sw.Stop();
|
sw.Stop();
|
||||||
|
*/
|
||||||
|
|
||||||
NativeMethods.SetupDiDestroyDeviceInfoList(deviceInfoSet);
|
NativeMethods.SetupDiDestroyDeviceInfoList(deviceInfoSet);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user