mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-23 01:39:17 +01:00
Minor updates for lightbar dimming
This commit is contained in:
parent
f5f0b8fe93
commit
ba4bd72755
@ -153,7 +153,7 @@ namespace DS4Windows
|
|||||||
double botratio = timeratio.TotalMilliseconds;
|
double botratio = timeratio.TotalMilliseconds;
|
||||||
double topratio = TimeSpan.FromSeconds(idleDisconnectTimeout).TotalMilliseconds;
|
double topratio = TimeSpan.FromSeconds(idleDisconnectTimeout).TotalMilliseconds;
|
||||||
double ratio = 100.0 * (botratio / topratio);
|
double ratio = 100.0 * (botratio / topratio);
|
||||||
if (ratio >= 50.0 && ratio <= 100.0)
|
if (ratio >= 50.0 && ratio < 100.0)
|
||||||
color = getTransitionedColor(color, new DS4Color(0, 0, 0), (uint)((ratio - 50) * 2));
|
color = getTransitionedColor(color, new DS4Color(0, 0, 0), (uint)((ratio - 50) * 2));
|
||||||
else if (ratio >= 100.0)
|
else if (ratio >= 100.0)
|
||||||
color = getTransitionedColor(color, new DS4Color(0, 0, 0), 100.0);
|
color = getTransitionedColor(color, new DS4Color(0, 0, 0), 100.0);
|
||||||
|
2
DS4Windows/Properties/Resources.Designer.cs
generated
2
DS4Windows/Properties/Resources.Designer.cs
generated
@ -1121,7 +1121,7 @@ namespace DS4Windows.Properties {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Also dim light by idle timeout if on.
|
/// Looks up a localized string similar to Also dim light by idle timeout if enabled when DS4 is fully charged.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static string LightByBatteryTip {
|
internal static string LightByBatteryTip {
|
||||||
get {
|
get {
|
||||||
|
@ -614,7 +614,7 @@
|
|||||||
<value>Use Sixaxis to help calculate touchpad movement</value>
|
<value>Use Sixaxis to help calculate touchpad movement</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="LightByBatteryTip" xml:space="preserve">
|
<data name="LightByBatteryTip" xml:space="preserve">
|
||||||
<value>Also dim light by idle timeout if on</value>
|
<value>Also dim light by idle timeout if enabled when DS4 is fully charged</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Macro" xml:space="preserve">
|
<data name="Macro" xml:space="preserve">
|
||||||
<value>Macro</value>
|
<value>Macro</value>
|
||||||
|
Loading…
Reference in New Issue
Block a user