public override void Parse(EvtItem item) { //Modifiers = item.modifier; Code = ParseCode(item.key); if (item.modifier != null && item.modifier.Length > 0) { foreach (var i in item.modifier) { var vc = ParseCode(i); Modifiers.Add(vc); } } }
public override void Parse(EvtItem item) { X = item.x; Y = item.y; cw = item.cw; ch = item.ch; dlt = item.delta; //MouseButton.TryParse(item.btn.ToString(), out Button); if (item.btn == 0) { Button = MouseButton.LeftButton; } else if (item.btn == 1) { Button = MouseButton.MiddleButton; } else if (item.btn == 2) { Button = MouseButton.RightButton; } }
public abstract void Parse(EvtItem item);