Esempio n. 1
0
        public Mate(HidDevice d, MidiDevice md, MidiControl mc, MidiChannel mchan)
        {
            mateManager = new MateManager();
            mateManager.OpenDevice(d);
            mateManager.ButtonDown += new EventHandler<PowerMateEventArgs>(ButtonDown);
            mateManager.ButtonUp += new EventHandler<PowerMateEventArgs>(ButtonUp);

            Dark();
            counter++;
            id = counter;
            Name = "Powermate " + id;
            SelectedDevice = md;
            SelectedControl = mc;
            SelectedChannel = mchan;
        }
Esempio n. 2
0
        public Mate(HidDevice d, MidiDevice md, MidiControl mc, MidiChannel mchan)
        {
            mateManager = new MateManager();
            mateManager.OpenDevice(d);
            mateManager.ButtonDown += new EventHandler <PowerMateEventArgs>(ButtonDown);
            mateManager.ButtonUp   += new EventHandler <PowerMateEventArgs>(ButtonUp);

            Dark();
            counter++;
            id              = counter;
            Name            = "Powermate " + id;
            SelectedDevice  = md;
            SelectedControl = mc;
            SelectedChannel = mchan;
        }