Adding non functional generic EAR HID event.
4 using System.Collections.Generic;
6 using System.Runtime.InteropServices;
7 using System.Runtime.Serialization;
9 using System.Threading.Tasks;
11 namespace SharpDisplayManager
14 /// Send a user key press event to the given CEC device.
17 [AttributeObject(Id = "Cec.UserControlReleased", Name = "CEC User Control Released", Description = "Send user control release opcode to a given CEC device.")]
18 public class ActionCecUserControlReleased : ActionCecDevice
21 public ActionCecUserControlReleased()
27 [AttributeObjectProperty(
28 Id = "Cec.UserControlPressed.Wait",
30 Description = "Wait for that command."
32 public bool Wait { get; set; }
37 /// <returns></returns>
38 public override string Brief()
40 string brief = Name + " to " + DeviceName;
51 protected override void DoExecute()
53 if (Cec.Client.Static == null)
55 Console.WriteLine("WARNING: No CEC client installed.");
59 Cec.Client.Static.Lib.SendKeyRelease(Device, Wait);