public TouchSensor(ICap1208Device cap1208, TouchChannel channel) { _cap1208 = cap1208; Channel = channel; _cap1208.PadTouchedEvent += _cap1208_PadTouchedEvent; }
public TouchSensor(ICap1208Device cap1208, TouchChannel channel) { _cap1208 = cap1208; Channel = channel; _cap1208.PadTouchedEvent += _cap1208_PadTouchedEvent; }
private void _cap1208_PadTouchedEvent(ICap1208Device sender, TouchChannel args) { if ((args & Channel) > 0) { var evt = ButtonPressedEvent; if (evt != null) { evt(this, args); } } }
private void _cap1208_PadTouchedEvent(ICap1208Device sender, TouchChannel args) { if ((args & Channel) > 0) { var evt = ButtonPressedEvent; if (evt != null) { evt(this, args); } } }
private void One_ButtonPressedEvent(ITouchSensor sender, TouchChannel args) { var e = Enum.GetName(typeof(TouchChannel), args); Debug.WriteLine($"{e} Pressed"); }
private void _cap1208_PadTouchedEvent1(ICap1208Device sender, TouchChannel args) { throw new System.NotImplementedException(); }
private void _cap1208_PadTouchedEvent1(ICap1208Device sender, TouchChannel args) { throw new System.NotImplementedException(); }
private void One_ButtonPressedEvent(ITouchSensor sender, TouchChannel args) { var e = Enum.GetName(typeof(TouchChannel), args); Debug.WriteLine($"{e} Pressed"); }