having said that, you have an emulationstation input configuration present so it should be using that (and recognizing that is the config for your currently plugged in joypad).
please update retropie-setup script, then re-install emulationstation from binary (menu 5 in retropie-setup), and reboot. emulationstation should ask for controls to be configure again – please do that and then repost the above files.