This commit is contained in:
Serge
2023-08-06 14:49:17 +02:00
parent f93594c4ae
commit d764a20dc7

View File

@@ -155,17 +155,13 @@ namespace GHelper.Input
int brightness = -1; int brightness = -1;
if (isTUF) brightness = ScreenBrightness.Get(); if (isTUF) brightness = ScreenBrightness.Get();
if (AppConfig.SwappedBrightness()) delta = -delta;
if (AppConfig.SwappedBrightness()) Program.acpi.DeviceSet(AsusACPI.UniversalControl, delta > 0 ? AsusACPI.Brightness_Up : AsusACPI.Brightness_Down, "Brightness");
{
HandleOptimizationEvent(delta > 0 ? 32 : 16);
} else
{
HandleOptimizationEvent(delta > 0 ? 16 : 32);
}
if (isTUF) if (isTUF)
{ {
if (AppConfig.SwappedBrightness()) return;
if (delta < 0 && brightness <= 0) return; if (delta < 0 && brightness <= 0) return;
if (delta > 0 && brightness >= 100) return; if (delta > 0 && brightness >= 100) return;