mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Pro Art Hotkeys and visual modes support (#2962)
* Init * Update AsusACPI.cs * Visual modes and gamuts * Emoji popup * Emojis Popup * ProArt F12 * Softwar FN-Lock for ProArt * Cleanup * Cleanup
This commit is contained in:
@@ -281,6 +281,43 @@ namespace GHelper.Input
|
||||
}
|
||||
}
|
||||
|
||||
if (AppConfig.IsProArt())
|
||||
{
|
||||
switch (e.Key)
|
||||
{
|
||||
case Keys.F2:
|
||||
KeyboardHook.KeyPress(Keys.VolumeDown);
|
||||
return;
|
||||
case Keys.F3:
|
||||
KeyboardHook.KeyPress(Keys.VolumeUp);
|
||||
return;
|
||||
case Keys.F4:
|
||||
HandleEvent(199); // Backlight cycle
|
||||
return;
|
||||
case Keys.F5:
|
||||
SetBrightness(-10);
|
||||
return;
|
||||
case Keys.F6:
|
||||
SetBrightness(+10);
|
||||
return;
|
||||
case Keys.F7:
|
||||
KeyboardHook.KeyKeyPress(Keys.LWin, Keys.P);
|
||||
return;
|
||||
case Keys.F8:
|
||||
HandleEvent(126); // Emojis
|
||||
return;
|
||||
case Keys.F9:
|
||||
KeyProcess("m3"); // MicMute
|
||||
return;
|
||||
case Keys.F10:
|
||||
HandleEvent(133); // Camera Toggle
|
||||
return;
|
||||
case Keys.F11:
|
||||
KeyboardHook.KeyPress(Keys.Snapshot); // PrintScreen
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (AppConfig.IsZ13() || AppConfig.IsDUO())
|
||||
{
|
||||
switch (e.Key)
|
||||
@@ -658,6 +695,7 @@ namespace GHelper.Input
|
||||
switch (EventID)
|
||||
{
|
||||
case 134: // FN + F12 ON OLD DEVICES
|
||||
case 139: // ProArt F12
|
||||
KeyProcess("m4");
|
||||
return;
|
||||
case 124: // M3
|
||||
@@ -691,7 +729,7 @@ namespace GHelper.Input
|
||||
case 78: // Fn + ESC
|
||||
ToggleFnLock();
|
||||
return;
|
||||
case 75: // Fn + ESC
|
||||
case 75: // Fn + Arrow Lock
|
||||
ToggleArrowLock();
|
||||
return;
|
||||
case 189: // Tablet mode
|
||||
@@ -780,6 +818,9 @@ namespace GHelper.Input
|
||||
case 53: // Fn+F6 on GA-502DU model
|
||||
NativeMethods.TurnOffScreen();
|
||||
return;
|
||||
case 126: // Fn+F8 emojis popup
|
||||
KeyboardHook.KeyKeyPress(Keys.LWin, Keys.OemSemicolon);
|
||||
return;
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user