Lightbar turns off when pressing Stop while wired

This commit is contained in:
jays2kings 2014-09-02 14:41:32 -04:00
parent c0a2dccedf
commit 60a054e76a
2 changed files with 9 additions and 4 deletions

View File

@ -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);
}

View File

@ -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")]