not sure what you mean by adjust going forward, but the input configuration for ES is in ~/.emulationstation and for retroarch it is stored in /opt/retropie/configs/all/retroarch.cfg for keyboard and /all/retroarch-joypads for controllers.
I recommend reading through the wiki as a lot of information is there (plus this forum)