diff --git a/app/Input/InputDispatcher.cs b/app/Input/InputDispatcher.cs index a6c1f956..5454a818 100644 --- a/app/Input/InputDispatcher.cs +++ b/app/Input/InputDispatcher.cs @@ -155,17 +155,13 @@ namespace GHelper.Input int brightness = -1; if (isTUF) brightness = ScreenBrightness.Get(); + if (AppConfig.SwappedBrightness()) delta = -delta; - if (AppConfig.SwappedBrightness()) - { - HandleOptimizationEvent(delta > 0 ? 32 : 16); - } else - { - HandleOptimizationEvent(delta > 0 ? 16 : 32); - } + Program.acpi.DeviceSet(AsusACPI.UniversalControl, delta > 0 ? AsusACPI.Brightness_Up : AsusACPI.Brightness_Down, "Brightness"); if (isTUF) { + if (AppConfig.SwappedBrightness()) return; if (delta < 0 && brightness <= 0) return; if (delta > 0 && brightness >= 100) return;