Removing now redundant specific HID EAR events.
4 using System.Collections.Generic;
6 using System.Runtime.Serialization;
8 using System.Threading.Tasks;
10 namespace SharpDisplayManager
13 [AttributeObject(Id = "Cec.ActiveSource", Name = "CEC Active Source", Description = "Set this CEC device as active source.")]
14 class ActionCecActiveSource : ActionCecDeviceType
17 /// Build a user readable string to describe this action.
19 /// <returns></returns>
20 public override string Brief()
22 return "CEC Active Source to " + DeviceType.ToString();
26 /// Set the defined device type as active source.
28 protected override void DoExecute()
30 if (Cec.Client.Static == null)
32 Console.WriteLine("WARNING: No CEC client installed.");
36 Cec.Client.Static.Lib.SetActiveSource(DeviceType);