mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Hotkeys for Eco/Standard modes https://github.com/seerge/g-helper/issues/1637
This commit is contained in:
@@ -116,6 +116,9 @@ namespace GHelper.Input
|
|||||||
|
|
||||||
if (keyApp != Keys.None) hook.RegisterHotKey(ModifierKeys.Shift | ModifierKeys.Control, keyApp);
|
if (keyApp != Keys.None) hook.RegisterHotKey(ModifierKeys.Shift | ModifierKeys.Control, keyApp);
|
||||||
|
|
||||||
|
hook.RegisterHotKey(ModifierKeys.Shift | ModifierKeys.Control | ModifierKeys.Alt, Keys.F14);
|
||||||
|
hook.RegisterHotKey(ModifierKeys.Shift | ModifierKeys.Control | ModifierKeys.Alt, Keys.F15);
|
||||||
|
|
||||||
if (!AppConfig.Is("skip_hotkeys"))
|
if (!AppConfig.Is("skip_hotkeys"))
|
||||||
{
|
{
|
||||||
hook.RegisterHotKey(ModifierKeys.Control, Keys.VolumeDown);
|
hook.RegisterHotKey(ModifierKeys.Control, Keys.VolumeDown);
|
||||||
@@ -345,6 +348,16 @@ namespace GHelper.Input
|
|||||||
if (e.Modifier == (ModifierKeys.Control | ModifierKeys.Shift | ModifierKeys.Alt))
|
if (e.Modifier == (ModifierKeys.Control | ModifierKeys.Shift | ModifierKeys.Alt))
|
||||||
{
|
{
|
||||||
if (e.Key == keyProfile) modeControl.CyclePerformanceMode(true);
|
if (e.Key == keyProfile) modeControl.CyclePerformanceMode(true);
|
||||||
|
|
||||||
|
switch (e.Key)
|
||||||
|
{
|
||||||
|
case Keys.F14:
|
||||||
|
Program.settingsForm.gpuControl.SetGPUMode(AsusACPI.GPUModeEco);
|
||||||
|
break;
|
||||||
|
case Keys.F15:
|
||||||
|
Program.settingsForm.gpuControl.SetGPUMode(AsusACPI.GPUModeStandard);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -640,7 +653,7 @@ namespace GHelper.Input
|
|||||||
case 106: // Screenpad button on DUO
|
case 106: // Screenpad button on DUO
|
||||||
if (Control.ModifierKeys == Keys.Shift)
|
if (Control.ModifierKeys == Keys.Shift)
|
||||||
ToggleScreenpad();
|
ToggleScreenpad();
|
||||||
else
|
else
|
||||||
SetScreenpad(100);
|
SetScreenpad(100);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ using GHelper.UI;
|
|||||||
using GHelper.USB;
|
using GHelper.USB;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Timers;
|
using System.Timers;
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
namespace GHelper
|
namespace GHelper
|
||||||
{
|
{
|
||||||
@@ -22,7 +21,7 @@ namespace GHelper
|
|||||||
ContextMenuStrip contextMenuStrip = new CustomContextMenu();
|
ContextMenuStrip contextMenuStrip = new CustomContextMenu();
|
||||||
ToolStripMenuItem menuSilent, menuBalanced, menuTurbo, menuEco, menuStandard, menuUltimate, menuOptimized;
|
ToolStripMenuItem menuSilent, menuBalanced, menuTurbo, menuEco, menuStandard, menuUltimate, menuOptimized;
|
||||||
|
|
||||||
GPUModeControl gpuControl;
|
public GPUModeControl gpuControl;
|
||||||
ScreenControl screenControl = new ScreenControl();
|
ScreenControl screenControl = new ScreenControl();
|
||||||
AutoUpdateControl updateControl;
|
AutoUpdateControl updateControl;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user