Unable to Remap Buttons

Just to clarify here… If the joystick and console buttons on my Picade Xhat need to be remapped, would that be something I should do with Pimoroni software? Or RetroPie?
Somehow, I got confused during the step when RetroPie quizzed me on all the buttons, around when they asked about the 10th or so, realizing that they wanted me to define more than were on the cabinet. Also, there are no labels on the outside of the Picade. :)
A map like this would help if it was included with the Picade kit: (originally from one of the replies in the mega-thread PICADE - X Hat- Buttons + Joystick not detecting )

My current setup is so bad, it is hard to navigate Emulationstation.