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); }
private void OnLaunchpadKeyPressed(object sender, Interface.LaunchpadKeyEventArgs e) { }