You still have to configure the controls for the retroarch framework. Emulationstation has its own control configuration that has no influence on the emulators themselves. The configuration file lies in /opt/retropie/configs/all/ if you want to do it by hand. But i think there’s also a menuoption in the retropie_setup script.
See this link for how to configure your retroarch controls.