@mhutter please, paste the content of these files in ghostbin.com (or something similar):

/opt/retropie/configs/all/retroarch-joypads/NAME_OF_YOUR_JOYSTICK.cfg (more than one file). /opt/retropie/configs/all/retroarch.cfg /opt/retropie/configs/nes/retroarch.cfg