mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-26 11:04:21 +01:00
Lightbar turns off when pressing Stop while wired
This commit is contained in:
parent
c0a2dccedf
commit
60a054e76a
@ -131,7 +131,12 @@ namespace DS4Control
|
||||
else if (shuttingdown)
|
||||
color = new DS4Color { red = 0, green = 0, blue = 0 };
|
||||
else
|
||||
color = new DS4Color { red = 32, green = 64, blue = 64 };
|
||||
{
|
||||
if (device.ConnectionType == ConnectionType.BT)
|
||||
color = new DS4Color { red = 32, green = 64, blue = 64 };
|
||||
else
|
||||
color = new DS4Color { red = 0, green = 0, blue = 0 };
|
||||
}
|
||||
Color dsc = Color.FromArgb(color.red, color.green, color.blue);
|
||||
if (Global.getAProfile(deviceNum).ToLower().Contains("distance"))
|
||||
{ //Thing I did for Distance
|
||||
@ -171,7 +176,7 @@ namespace DS4Control
|
||||
}
|
||||
if (device.LightBarOnDuration != haptics.LightBarFlashDurationOn && device.LightBarOnDuration != 1 && haptics.LightBarFlashDurationOn == 0)
|
||||
haptics.LightBarFlashDurationOff = haptics.LightBarFlashDurationOn = 1;
|
||||
if (device.LightBarOnDuration == 1)
|
||||
if (device.LightBarOnDuration == 1) //helps better reset the color
|
||||
System.Threading.Thread.Sleep(5);
|
||||
device.pushHapticState(haptics);
|
||||
}
|
||||
|
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.4.0.55")]
|
||||
[assembly: AssemblyFileVersion("1.4.0.55")]
|
||||
[assembly: AssemblyVersion("1.4.0.56")]
|
||||
[assembly: AssemblyFileVersion("1.4.0.56")]
|
||||
|
Loading…
Reference in New Issue
Block a user