mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-22 09:19:18 +01:00
Temporarily establish main lightbar color after turning off lag flashing
Needed for passthru mode
This commit is contained in:
parent
c0eff754c4
commit
0cb8a2b3d5
@ -1271,7 +1271,7 @@ namespace DS4Windows
|
|||||||
if (!lag[ind] && device.Latency >= flashWhenLateAt)
|
if (!lag[ind] && device.Latency >= flashWhenLateAt)
|
||||||
{
|
{
|
||||||
lag[ind] = true;
|
lag[ind] = true;
|
||||||
LagFlashWarning(ind, true);
|
LagFlashWarning(device, ind, true);
|
||||||
/*uiContext?.Post(new SendOrPostCallback(delegate (object state)
|
/*uiContext?.Post(new SendOrPostCallback(delegate (object state)
|
||||||
{
|
{
|
||||||
LagFlashWarning(ind, true);
|
LagFlashWarning(ind, true);
|
||||||
@ -1281,7 +1281,7 @@ namespace DS4Windows
|
|||||||
else if (lag[ind] && device.Latency < flashWhenLateAt)
|
else if (lag[ind] && device.Latency < flashWhenLateAt)
|
||||||
{
|
{
|
||||||
lag[ind] = false;
|
lag[ind] = false;
|
||||||
LagFlashWarning(ind, false);
|
LagFlashWarning(device, ind, false);
|
||||||
/*uiContext?.Post(new SendOrPostCallback(delegate (object state)
|
/*uiContext?.Post(new SendOrPostCallback(delegate (object state)
|
||||||
{
|
{
|
||||||
LagFlashWarning(ind, false);
|
LagFlashWarning(ind, false);
|
||||||
@ -1391,7 +1391,7 @@ namespace DS4Windows
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void LagFlashWarning(int ind, bool on)
|
public void LagFlashWarning(DS4Device device, int ind, bool on)
|
||||||
{
|
{
|
||||||
if (on)
|
if (on)
|
||||||
{
|
{
|
||||||
@ -1411,6 +1411,7 @@ namespace DS4Windows
|
|||||||
LogDebug(DS4WinWPF.Properties.Resources.LatencyNotOverTen.Replace("*number*", (ind + 1).ToString()));
|
LogDebug(DS4WinWPF.Properties.Resources.LatencyNotOverTen.Replace("*number*", (ind + 1).ToString()));
|
||||||
DS4LightBar.forcelight[ind] = false;
|
DS4LightBar.forcelight[ind] = false;
|
||||||
DS4LightBar.forcedFlash[ind] = 0;
|
DS4LightBar.forcedFlash[ind] = 0;
|
||||||
|
device.LightBarColor = getMainColor(ind);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user