This commit is contained in:
Serge
2024-10-26 15:10:26 +02:00
parent 5e96e3e9bc
commit 1321b2eb31
2 changed files with 13 additions and 1 deletions

View File

@@ -1026,6 +1026,13 @@ namespace GHelper.Input
Program.toast.RunToast($"Screen Pad {toast}", delta > 0 ? ToastIcon.BrightnessUp : ToastIcon.BrightnessDown);
}
public static void InitScreenpad()
{
if (!AppConfig.IsDUO()) return;
int brightness = AppConfig.Get("screenpad");
if (brightness >= 0) ApplyScreenpadAction(brightness);
}
static void LaunchProcess(string command = "")
{
if (string.IsNullOrEmpty(command)) return;