Percussion map and percussion kit

I defined a percussion map with the MIDI values that my MIDI instrument outputs. Each one has a instrument assigned. I then defined a Percussion kit with the instruments that are also part of the percussion map.
When I play the instrument through the MIDI device, the notes that appear on the staff don’t correspond to the MIDI value that I triggered on the device.
In the general preferences I have selected both for single instruments and for kit, the option of percussion map. But nothing is input into the staff when I play the notes on the MIDI percussion pad.
Many thanks,
Regards