View Single Post
Old 04-06-2008, 03:20 AM   #25
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

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.
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.

Last edited by Xenakios; 04-06-2008 at 03:28 AM.
Xenakios is offline   Reply With Quote