How to Map midi

Thank you so much, this is perfect ! knobs, buttons and joystick works very well, however having issues with rotary encoder: it only goes two ways, either to 1 or 127, what could be a problem?