Shift + Fn + F7/F8 for screenpad control https://github.com/seerge/g-helper/issues/1491

This commit is contained in:
Serge
2023-10-19 14:30:54 +02:00
parent 3e93a93ab3
commit 168b751795

View File

@@ -346,6 +346,7 @@ namespace GHelper.Input
if (e.Key == keyProfile) modeControl.CyclePerformanceMode(true); if (e.Key == keyProfile) modeControl.CyclePerformanceMode(true);
} }
if (e.Modifier == (ModifierKeys.Control)) if (e.Modifier == (ModifierKeys.Control))
{ {
switch (e.Key) switch (e.Key)
@@ -606,12 +607,16 @@ namespace GHelper.Input
switch (EventID) switch (EventID)
{ {
case 16: // FN+F7 case 16: // FN+F7
//ScreenBrightness.Adjust(-10); if (Control.ModifierKeys == Keys.Shift)
Program.acpi.DeviceSet(AsusACPI.UniversalControl, AsusACPI.Brightness_Down, "Brightness"); SetScreenpad(-10);
else
Program.acpi.DeviceSet(AsusACPI.UniversalControl, AsusACPI.Brightness_Down, "Brightness");
break; break;
case 32: // FN+F8 case 32: // FN+F8
//ScreenBrightness.Adjust(+10); if (Control.ModifierKeys == Keys.Shift)
Program.acpi.DeviceSet(AsusACPI.UniversalControl, AsusACPI.Brightness_Up, "Brightness"); SetScreenpad(10);
else
Program.acpi.DeviceSet(AsusACPI.UniversalControl, AsusACPI.Brightness_Up, "Brightness");
break; break;
case 107: // FN+F10 case 107: // FN+F10
ToggleTouchpad(); ToggleTouchpad();