示例#1
0
        private void OnLaunchpadKeyDown(object sender, Interface.LaunchpadKeyEventArgs e)
        {
            char rowLetter = (char)((char)'A' + (e.GetX()));

            string buttonName = "btn" + rowLetter + (e.GetY() + 1);

            Button pressed = (Button)this.Controls[buttonName];

            pressed.BackColor = Color.White;
            launchPadInterface.setLED(e.GetX(), e.GetY(), 127);
            System.Threading.Thread.Sleep(50);
            pressed.BackColor = SystemColors.ControlLight;
            launchPadInterface.setLED(e.GetX(), e.GetY(), 0);
        }
示例#2
0
 private void OnLaunchpadKeyPressed(object sender, Interface.LaunchpadKeyEventArgs e)
 {
 }