mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-02-18 08:56:20 +01:00
Make sure calib routine can be skipped on update serial routine
Might not be needed
This commit is contained in:
parent
cfa2bea4be
commit
1171a56a6b
@ -407,13 +407,18 @@ namespace DS4Windows
|
|||||||
private Thread timeoutCheckThread = null;
|
private Thread timeoutCheckThread = null;
|
||||||
private bool timeoutExecuted = false;
|
private bool timeoutExecuted = false;
|
||||||
private bool timeoutEvent = false;
|
private bool timeoutEvent = false;
|
||||||
|
private bool runCalib;
|
||||||
|
public bool ShouldRunCalib()
|
||||||
|
{
|
||||||
|
return runCalib;
|
||||||
|
}
|
||||||
|
|
||||||
public DS4Device(HidDevice hidDevice)
|
public DS4Device(HidDevice hidDevice)
|
||||||
{
|
{
|
||||||
hDevice = hidDevice;
|
hDevice = hidDevice;
|
||||||
conType = HidConnectionType(hDevice);
|
conType = HidConnectionType(hDevice);
|
||||||
Mac = hDevice.readSerial();
|
Mac = hDevice.readSerial();
|
||||||
bool runCalib = true;
|
runCalib = true;
|
||||||
if (conType == ConnectionType.USB || conType == ConnectionType.SONYWA)
|
if (conType == ConnectionType.USB || conType == ConnectionType.SONYWA)
|
||||||
{
|
{
|
||||||
inputReport = new byte[64];
|
inputReport = new byte[64];
|
||||||
|
@ -234,6 +234,7 @@ namespace DS4Windows
|
|||||||
deviceSerials.Add(serial);
|
deviceSerials.Add(serial);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (device.ShouldRunCalib())
|
||||||
device.refreshCalibration();
|
device.refreshCalibration();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user