The "problem" with the code from Cockos is that it is pretty condensed, making it difficult for "newbies" to understand (me included
)...I can't help you much about this, you should try to sniff what MIDI-messages your control surface sends to the computer when you press the various buttons in different ways etc...Then make the MIDI-event handler code based on those.
Use a bunch of "stupid" code like this, forget about keymasks (like the m_mackie_modifiers) and stuff :
Code:
else if (evt->midi_message[1] == 0x4C)
{
SendMessage(g_hwnd,WM_COMMAND,40291,0);
}
Whether that approach works or not, depends on how complex your control surface is and what you need it to control.