diff --git a/app/AsusACPI.cs b/app/AsusACPI.cs index 3db160d8..7d185f5f 100644 --- a/app/AsusACPI.cs +++ b/app/AsusACPI.cs @@ -37,6 +37,7 @@ public class AsusACPI public const uint UniversalControl = 0x00100021; + public const int Airplane = 0x88; public const int KB_Light_Up = 0xc4; public const int KB_Light_Down = 0xc5; public const int Brightness_Down = 0x10; diff --git a/app/Input/InputDispatcher.cs b/app/Input/InputDispatcher.cs index 31915b8c..457d91ff 100644 --- a/app/Input/InputDispatcher.cs +++ b/app/Input/InputDispatcher.cs @@ -584,6 +584,9 @@ namespace GHelper.Input case 55: // Arconym KeyProcess("m6"); return; + case 136: // FN + F12 + Program.acpi.DeviceSet(AsusACPI.UniversalControl, AsusACPI.Airplane, "Airplane"); + return; case 181: // FN + Numpad Enter KeyProcess("fne"); return; diff --git a/app/USB/Aura.cs b/app/USB/Aura.cs index 935b05cf..cca87adb 100644 --- a/app/USB/Aura.cs +++ b/app/USB/Aura.cs @@ -248,16 +248,13 @@ namespace GHelper.USB public static void Init() { - //Task.Run(async () => - //{ - AsusHid.Write(new List { - new byte[] { AsusHid.AURA_ID, 0xb9 }, - Encoding.ASCII.GetBytes("]ASUS Tech.Inc."), - new byte[] { AsusHid.AURA_ID, 0x05, 0x20, 0x31, 0, 0x1a }, - //Encoding.ASCII.GetBytes("^ASUS Tech.Inc."), - //new byte[] { 0x5e, 0x05, 0x20, 0x31, 0, 0x1a } - }); - //}); + AsusHid.Write(new List { + new byte[] { AsusHid.AURA_ID, 0xb9 }, + Encoding.ASCII.GetBytes("]ASUS Tech.Inc."), + new byte[] { AsusHid.AURA_ID, 0x05, 0x20, 0x31, 0, 0x1a }, + //Encoding.ASCII.GetBytes("^ASUS Tech.Inc."), + //new byte[] { 0x5e, 0x05, 0x20, 0x31, 0, 0x1a } + }); }