コード例 #1
0
ファイル: MidiConnection.cs プロジェクト: geoffsmith/xtouchfs
        public MidiControlAdaptor CreateAdaptor(MidiControlType controlType, int controlId, Field field, FsConnection fsConnection)
        {
            var adaptor = new MidiControlAdaptor(controlType, controlId, field, fsConnection);

            controlAdaptors.Add(adaptor);
            adaptor.LightControl.Subscribe(HandleLightControl);
            return(adaptor);
        }
コード例 #2
0
ファイル: MidiConnection.cs プロジェクト: geoffsmith/xtouchfs
 public LightControlMessage(MidiControlAdaptor adaptor, uint controlValue)
 {
     Adaptor      = adaptor;
     ControlValue = controlValue;
 }