Adding a bunch of CEC actions.
5 using System.Collections.Generic;
7 using System.Runtime.Serialization;
9 using System.Threading.Tasks;
11 namespace SharpDisplayManager
14 [AttributeAction(Id = "Cec.SendKepressTvPowerOn", Name = "CEC Send Keypress TV Power On", Description = "Send Power On keypress to your TV.")]
15 class ActionCecSendKeypressTvPowerOn : SharpLib.Ear.Action
17 public override void Execute()
19 if (Cec.Client.Static == null)
21 Console.WriteLine("WARNING: No CEC client installed.");
24 Cec.Client.Static.Lib.SendKeypress(CecLogicalAddress.Tv, CecUserControlCode.PowerOnFunction, true);