Is there a config file where i can control the behaviour when starting raspi-config?
The RetroArch auto-configuration profile is used by joy2key to map gamepad buttons/inputs to keyboard keys and to control the dialog/text menus. I assume this is what you mean by controlling raspi-config , since raspi-config has no gamepad support by itself.