OK, so now I tried the Midi learning system. Most of the buttons worked as expected, but the jog wheel doesn't work very well. I checked what code it produces and I'm starting to understand what it does.
But one of my problems is that the controller has three buttons to change the mode of the jog wheel. The three buttons are search, scratch and effect. If none of the buttons are active the jog wheel is in pitch mode. I tried to set "JOG_SCRATCH_ON_A", but it only works when I press the button. Probably as it is supposed to do from the programs point of view, if the jog wheel is touch sensitive or something like that. Mine is not. I guess I need some kind of variable that survives between the calls to the OnMidiMessageReceived-function.
The way the jog wheel works right now is when the deck is paused it searches the track. When I push the "Scratch" button and the deck is playing it scratches. But it would be good if the scratch-button would be active until I press it again or one of the other buttons. Deck playing and no scratch button is pressed results in some kind of pitch or pitch-bend function.
One other problem is the four "multi-function buttons" which can control Cue, loops or sample according to a mode button (which sends a midimessage for each mode). Here it would also be good to have a "sticky" variable. Then the buttons could send different midi-messages according to current mode.
One other problem is the "Effect select" which in DD 1.7.? stepped around the effect list. I guess I could step through the three Effect_select_x_group_A and read the answer and then switch to the next, but a variable would be more simple.
I tried the log-function to write text. But is it possible to write values?
Now I can't test how the controller worked in 1.7.? because the song doesn't start playing for some strange reason. The program lights up the play-button (both on controller and program), but nothing happens. Volume controls and load buttons work. But that is the old version so I don't bother too much about that as long as I get this new version to work with my controller.