private void _command8_ButtonPressed(object sender, ButtonMap.ButtonCode e) { switch (e) { case ButtonMap.ButtonCode.REW: SendButtonPress(new byte[3] { 144, 91, 127 }); break; case ButtonMap.ButtonCode.PLAY: SendButtonPress(new byte[3] { 144, 94, 127 }); break; case ButtonMap.ButtonCode.STOP: SendButtonPress(new byte[3] { 144, 93, 127 }); break; case ButtonMap.ButtonCode.UNDEFINED: _command8 = new Command8(); break; case ButtonMap.ButtonCode.RTZ: SendButtonPress(new byte[3] { 144, 89, 127 }); break; case ButtonMap.ButtonCode.FWD: SendButtonPress(new byte[3] { 144, 92, 127 }); break; case ButtonMap.ButtonCode.REC: SendButtonPress(new byte[3] { 144, 95, 127 }); break; case ButtonMap.ButtonCode.PLUGIN: SendButtonPress(new byte[3] { 144, 43, 127 }); break; case ButtonMap.ButtonCode.MIX: break; case ButtonMap.ButtonCode.EDIT: break; case ButtonMap.ButtonCode.LOOP_PLAY: SendButtonPress(new byte[3] { 144, 87, 127 }); break; case ButtonMap.ButtonCode.LOOP_REC: SendButtonPress(new byte[3] { 144, 88, 127 }); break; case ButtonMap.ButtonCode.QUICK_PUNCH: SendButtonPress(new byte[3] { 144, 86, 127 }); break; case ButtonMap.ButtonCode.MEM_LOCK: break; case ButtonMap.ButtonCode.MASTER_FADERS: break; case ButtonMap.ButtonCode.DOWN: SendButtonPress(new byte[3] { 144, 97, 127 }); break; case ButtonMap.ButtonCode.FOCUS: break; case ButtonMap.ButtonCode.FLIP: SendButtonPress(new byte[3] { 144, 50, 127 }); break; case ButtonMap.ButtonCode.LEFT: SendButtonPress(new byte[3] { 144, 98, 127 }); break; case ButtonMap.ButtonCode.RIGHT: SendButtonPress(new byte[3] { 144, 99, 127 }); break; case ButtonMap.ButtonCode.FADER_MUTE: break; case ButtonMap.ButtonCode.UP: SendButtonPress(new byte[3] { 144, 96, 127 }); break; case ButtonMap.ButtonCode.BANK: break; case ButtonMap.ButtonCode.NUDGE: break; case ButtonMap.ButtonCode.ZOOM: SendButtonPress(new byte[3] { 144, 100, 127 }); break; case ButtonMap.ButtonCode.ENTER: SendButtonPress(new byte[3] { 144, 81, 127 }); break; case ButtonMap.ButtonCode.UNDO: SendButtonPress(new byte[3] { 144, 76, 127 }); break; case ButtonMap.ButtonCode.CHANNEL_RECORD: break; case ButtonMap.ButtonCode.PAN_MASTER: break; case ButtonMap.ButtonCode.CTRL_CLUTCH: break; case ButtonMap.ButtonCode.WIN_KEY: break; case ButtonMap.ButtonCode.SHIFT_ADD: break; case ButtonMap.ButtonCode.ALT: break; case ButtonMap.ButtonCode.DEFAULT: break; case ButtonMap.ButtonCode.MON: break; case ButtonMap.ButtonCode.E: break; case ButtonMap.ButtonCode.INSERT: SendKey("^(t)"); break; case ButtonMap.ButtonCode.D: break; case ButtonMap.ButtonCode.SEND: break; case ButtonMap.ButtonCode.C: break; case ButtonMap.ButtonCode.PAN: break; case ButtonMap.ButtonCode.B: break; case ButtonMap.ButtonCode.CONSOLE_VIEW: break; case ButtonMap.ButtonCode.DISPLAY_MODE: SendKey("{TAB}"); break; case ButtonMap.ButtonCode.MUTE_1: SendButtonPress(new byte[3] { 144, 16, 127 }); break; case ButtonMap.ButtonCode.MUTE_2: SendButtonPress(new byte[3] { 144, 17, 127 }); break; case ButtonMap.ButtonCode.MUTE_3: SendButtonPress(new byte[3] { 144, 18, 127 }); break; case ButtonMap.ButtonCode.MUTE_4: SendButtonPress(new byte[3] { 144, 19, 127 }); break; case ButtonMap.ButtonCode.MUTE_5: SendButtonPress(new byte[3] { 144, 20, 127 }); break; case ButtonMap.ButtonCode.MUTE_6: SendButtonPress(new byte[3] { 144, 21, 127 }); break; case ButtonMap.ButtonCode.MUTE_7: SendButtonPress(new byte[3] { 144, 22, 127 }); break; case ButtonMap.ButtonCode.MUTE_8: SendButtonPress(new byte[3] { 144, 23, 127 }); break; case ButtonMap.ButtonCode.SOLO_1: SendButtonPress(new byte[3] { 144, 8, 127 }); break; case ButtonMap.ButtonCode.SOLO_2: SendButtonPress(new byte[3] { 144, 9, 127 }); break; case ButtonMap.ButtonCode.SOLO_3: SendButtonPress(new byte[3] { 144, 10, 127 }); break; case ButtonMap.ButtonCode.SOLO_4: SendButtonPress(new byte[3] { 144, 11, 127 }); break; case ButtonMap.ButtonCode.SOLO_5: SendButtonPress(new byte[3] { 144, 12, 127 }); break; case ButtonMap.ButtonCode.SOLO_6: SendButtonPress(new byte[3] { 144, 13, 127 }); break; case ButtonMap.ButtonCode.SOLO_7: SendButtonPress(new byte[3] { 144, 14, 127 }); break; case ButtonMap.ButtonCode.SOLO_8: SendButtonPress(new byte[3] { 144, 15, 127 }); break; case ButtonMap.ButtonCode.SELECT_1: SendButtonPress(new byte[3] { 144, 24, 127 }); break; case ButtonMap.ButtonCode.SELECT_2: SendButtonPress(new byte[3] { 144, 25, 127 }); break; case ButtonMap.ButtonCode.SELECT_3: SendButtonPress(new byte[3] { 144, 26, 127 }); break; case ButtonMap.ButtonCode.SELECT_4: SendButtonPress(new byte[3] { 144, 27, 127 }); break; case ButtonMap.ButtonCode.SELECT_5: SendButtonPress(new byte[3] { 144, 28, 127 }); break; case ButtonMap.ButtonCode.SELECT_6: SendButtonPress(new byte[3] { 144, 29, 127 }); break; case ButtonMap.ButtonCode.SELECT_7: SendButtonPress(new byte[3] { 144, 30, 127 }); break; case ButtonMap.ButtonCode.SELECT_8: SendButtonPress(new byte[3] { 144, 31, 127 }); break; case ButtonMap.ButtonCode.EQ: SendButtonPress(new byte[3] { 144, 44, 127 }); break; case ButtonMap.ButtonCode.DYNAMICS: SendButtonPress(new byte[3] { 144, 45, 127 }); break; case ButtonMap.ButtonCode.MIX_INSERT: break; case ButtonMap.ButtonCode.PAN_SEND_PRE: SendButtonPress(new byte[3] { 144, 42, 127 }); break; case ButtonMap.ButtonCode.PAGE_L: SendButtonPress(new byte[3] { 144, 46, 127 }); break; case ButtonMap.ButtonCode.PAGE_R: SendButtonPress(new byte[3] { 144, 47, 127 }); break; case ButtonMap.ButtonCode.MASTER_BYPASS: break; case ButtonMap.ButtonCode.ESC: SendButtonPress(new byte[3] { 144, 80, 127 }); break; } }
protected virtual void OnButtonPressed(ButtonMap.ButtonCode e) { ButtonPressed?.Invoke(this, e); }