mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-29 20:44:20 +01:00
Minor tweaks to improve responsiveness
This commit is contained in:
parent
80d0ef7c9b
commit
1f2f9f16db
@ -43,7 +43,7 @@ namespace DS4Windows
|
||||
{
|
||||
DS4Color fullColor = getCustomColor(deviceNum);
|
||||
DS4Color lowColor = getLowColor(deviceNum);
|
||||
color = getTransitionedColor(lowColor, fullColor, device.Battery);
|
||||
color = getTransitionedColor(lowColor, fullColor, device.getBattery());
|
||||
}
|
||||
else
|
||||
color = getCustomColor(deviceNum);
|
||||
@ -70,7 +70,7 @@ namespace DS4Windows
|
||||
counters[deviceNum] = 0;
|
||||
|
||||
if (getLedAsBatteryIndicator(deviceNum))
|
||||
color = HuetoRGB((float)counters[deviceNum] % 360, (byte)(2.55 * device.getBattery()));
|
||||
color = HuetoRGB((float)counters[deviceNum] % 360, (byte)(device.getBattery() * 2.55));
|
||||
else
|
||||
color = HuetoRGB((float)counters[deviceNum] % 360, 255);
|
||||
|
||||
@ -82,7 +82,7 @@ namespace DS4Windows
|
||||
DS4Color fullColor = getMainColor(deviceNum);
|
||||
DS4Color lowColor = getLowColor(deviceNum);
|
||||
|
||||
color = getTransitionedColor(lowColor, fullColor, (uint)device.getBattery());
|
||||
color = getTransitionedColor(lowColor, fullColor, device.getBattery());
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user