The magic function is called "Controller Assignments".
Basically you switch to Learn Mode, move the software knob on screen, then the hardware knob and afterwards disable Learn Mode. Do this in expert view, otherwise you cannot see what actually happens and if it is ok.
If you want to learn more, there is a separate manual about control surfaces.