Before you lose your sanity in frustration (as I almost did).
Have you tried setting up your controls using the Retroarch Joyconfig tool?
Type:
cd RetroPie/emulators/RetroArch/tools *Press Enter*
./retroarch-joyconfig >> ~/RetroPie/configs/all/retroarch.cfg *Press Enter*
Follow the prompts to set up your game controller. The output will be placed in
RetroPie/configs/all/retroarch.cfg
Even if it doesn’t end up working properly (I found it didn’t pick up my analog
sticks correctly). It gives you a good idea as to the actual button numbering
vs the numbering on the controller.
If you have 2 identical controllers, you can copy and paste the control settings
of Player 1 just below and change the Player number from 1 to 2 and the control
index from 0 to 1.
Let me know if you’d still like me to upload my retroarch.cfg file. It looks
strange when viewed in notepad from a Windows PC, so is best viewed on the Pi
itself.