Been debugging that code... This is as far as I've got....
If anybody has revisions please post in full here....
Thanks!
---->
0 Gain, send level (MCU Channel)
1 Gain, send level (MCU Channel)
2 Gain, send level (MCU Channel)
3 Gain, send level (MCU Channel)
4 Gain, send level (MCU Channel)
5 Gain, send level (MCU Channel)
6 Gain, send level (MCU Channel)
7 Gain, send level (MCU Channel)
8 Gain, send level (MCU Channel)
8 Solo1 (MCU Button)
9 Solo2 (MCU Button)
10 Solo3 (MCU Button)
11 Solo4 (MCU Button)
12 Solo5 (MCU Button)
13 Solo6 (MCU Button)
14 Solo7 (MCU Button)
15 Solo8 (MCU Button)
16 Mute1 (MCU Button)
17 Mute2 (MCU Button)
18 Mute3 (MCU Button)
19 Mute4 (MCU Button)
20 Mute5 (MCU Button)
21 Mute6 (MCU Button)
22 Mute7 (MCU Button)
23 Mute8 (MCU Button)
24 Select track 1 (MCU Button)
25 Select track 2 (MCU Button)
26 Select track 3 (MCU Button)
27 Select track 4 (MCU Button)
28 Select track 5 (MCU Button)
29 Select track 6 (MCU Button) INSERT SEND
30 Select track 7 (MCU Button)
31 Select track 8 (MCU Button) CMD_VIEW_SURROUND_PANNER
32 encoder push
33 RTZ
34 FFwd
35 IO Control
36
37
38
39
40 Page Left (MCU Button)
41 Page Right (MCU Button)
42 Assign button (step through rotary assignments)
43 ACT button
44 EQ Button
45 Send button
46 Bank R
47 Bank L
48 Automation
49 Snapshot
50 Flip
51 Rude mute
52 Display
53 TimeCodeMode
54 CMD_EDIT_CUT
55 CMD_EDIT_COPY
56 CMD_EDIT_PASTE
57 CMD_EDIT_DELETE
58 CMD_PROCESS_FADE_SELECTED
59 CMD_TRACK_FREEZE
60 CMD_SPLIT_CLIPS_NOW
61 CMD_CLIP_MUTE
62 CMD_VIEW_CONSOLE
63 CMD_VIEW_NEW_PIANO_ROLL
64 CMD_VIEW_CONTROLBAR_TRANSPORTMCV
65 VK_F4 (CMD?)
66 CMD_TRACK_VIEW
67 CMD_VIEW_SYNTH_RACK
68 CMD_AUDIOSNAP_PALETTE
69 VK_TAB (CMD?)
70 Shift
71 COMMAND
72 CTRL
73 ALT
74 Rude Solo
75 Rude Arm
76 Tracks
77 Buses
78 Masters
79 Save
80 Undo/Redo
81 OK
82 Cancel
83 Data Edit
84 Right Marker
85 SetLoopPunch
86 Loop Enable
87 Punch Enable
88 Left Marker
89 Snap
90 Marker Ins
91 Rewnd
92 FFwd
93 Stop
94 Play
95 Record
96 Key Up
97 Key Down
98 Key Left
99 Key Right
100 Data Select
101 Scroll
102 Foot Switch1
103 Foot Switch2
OdditiesThis code...
//Toggle the Multi-dock ( Expand and Collapse )
if ( bCtrl && !bShift && ( bad.dwCommandOrKey == VK_F4 ) )
m_pSonarCommands->DoCommand( CMD_TOGGLE_MULTCMDOCK );
//Close the focus Tab in the Multi-dock
else if ( bShift && !bCtrl && ( bad.dwCommandOrKey == VK_F4 ) )
m_pSonarCommands->DoCommand( CMD_ID_CLOSE_CURRENT_TAB );
//Tab over to the next view in the Multi-Dock
else if ( bShift && !bCtrl && ( bad.dwCommandOrKey == VK_TAB ) )
m_pSonarCommands->DoCommand( CMD_ID_NEXT_MDITAB );
//Maximize current Tab
else if ( bShift && bCtrl && ( bad.dwCommandOrKey == VK_F4 ) )
m_pSonarCommands->DoCommand( CMD_MAX_TAB );
else
{
// for Triggers, do Down/Up surrounded by modifier keys
if ( bad.wModKeys & SMK_SHIFT )
m_pSonarKeyboard->KeyboardEvent( VK_SHIFT, SKE_KEYDOWN );
if ( bad.wModKeys & SMK_CTRL )
m_pSonarKeyboard->KeyboardEvent( VK_CONTROL, SKE_KEYDOWN );
m_pSonarKeyboard->KeyboardEvent( bad.dwCommandOrKey, SKE_KEYDOWN );
m_pSonarKeyboard->KeyboardEvent( bad.dwCommandOrKey, SKE_KEYUP );
if ( bad.wModKeys & SMK_SHIFT )
m_pSonarKeyboard->KeyboardEvent( VK_SHIFT, SKE_KEYUP );
if ( bad.wModKeys & SMK_CTRL )
m_pSonarKeyboard->KeyboardEvent( VK_CONTROL, SKE_KEYUP );
}
post edited by Doktor Avalanche - 2015/05/15 12:09:18