Minor tweaks to improve responsiveness

This commit is contained in:
Travis Nickles 2017-06-18 03:20:10 -07:00
parent 80d0ef7c9b
commit 1f2f9f16db

View File

@ -43,7 +43,7 @@ namespace DS4Windows
{ {
DS4Color fullColor = getCustomColor(deviceNum); DS4Color fullColor = getCustomColor(deviceNum);
DS4Color lowColor = getLowColor(deviceNum); DS4Color lowColor = getLowColor(deviceNum);
color = getTransitionedColor(lowColor, fullColor, device.Battery); color = getTransitionedColor(lowColor, fullColor, device.getBattery());
} }
else else
color = getCustomColor(deviceNum); color = getCustomColor(deviceNum);
@ -70,7 +70,7 @@ namespace DS4Windows
counters[deviceNum] = 0; counters[deviceNum] = 0;
if (getLedAsBatteryIndicator(deviceNum)) 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 else
color = HuetoRGB((float)counters[deviceNum] % 360, 255); color = HuetoRGB((float)counters[deviceNum] % 360, 255);
@ -82,7 +82,7 @@ namespace DS4Windows
DS4Color fullColor = getMainColor(deviceNum); DS4Color fullColor = getMainColor(deviceNum);
DS4Color lowColor = getLowColor(deviceNum); DS4Color lowColor = getLowColor(deviceNum);
color = getTransitionedColor(lowColor, fullColor, (uint)device.getBattery()); color = getTransitionedColor(lowColor, fullColor, device.getBattery());
} }
} }
else else