From 168b751795d32df2153dd4108978c77b2acd7a34 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Thu, 19 Oct 2023 14:30:54 +0200 Subject: [PATCH] Shift + Fn + F7/F8 for screenpad control https://github.com/seerge/g-helper/issues/1491 --- app/Input/InputDispatcher.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/app/Input/InputDispatcher.cs b/app/Input/InputDispatcher.cs index d9ee583e..f9774635 100644 --- a/app/Input/InputDispatcher.cs +++ b/app/Input/InputDispatcher.cs @@ -346,6 +346,7 @@ namespace GHelper.Input if (e.Key == keyProfile) modeControl.CyclePerformanceMode(true); } + if (e.Modifier == (ModifierKeys.Control)) { switch (e.Key) @@ -606,12 +607,16 @@ namespace GHelper.Input switch (EventID) { case 16: // FN+F7 - //ScreenBrightness.Adjust(-10); - Program.acpi.DeviceSet(AsusACPI.UniversalControl, AsusACPI.Brightness_Down, "Brightness"); + if (Control.ModifierKeys == Keys.Shift) + SetScreenpad(-10); + else + Program.acpi.DeviceSet(AsusACPI.UniversalControl, AsusACPI.Brightness_Down, "Brightness"); break; case 32: // FN+F8 - //ScreenBrightness.Adjust(+10); - Program.acpi.DeviceSet(AsusACPI.UniversalControl, AsusACPI.Brightness_Up, "Brightness"); + if (Control.ModifierKeys == Keys.Shift) + SetScreenpad(10); + else + Program.acpi.DeviceSet(AsusACPI.UniversalControl, AsusACPI.Brightness_Up, "Brightness"); break; case 107: // FN+F10 ToggleTouchpad();