PICADE - X Hat- Buttons + Joystick not detecting

As I was really struggling to get the buttons of my New Picade working, esp. the coin/select button for Arcade games, I have made the following table and graphic to show the buttons and their mappings in Retropie/Emulationstation and in RetroArch.
Please note that for the buttons in the graphic the keys after the “/” are the ones to be used in the corresponding retroarch.cfg file for either all emulators for for specific ones (i.e. arcade or nes etc.).
Hope that helps you to identify the correct buttons.
FYI: I have hooked up the Select button to the “coin” connection and the Start button to the “1up” connector on the X-Hat, as described in the video tutorial available in YouTube.