Or what is the idea, that each ROM has to be configured on its own (e.g. within Retroarch / Op
tions / Input configuration ?)
You can customize the controls via the Retroarch menu as you mentioned, it is possible to save a configuration by core or by game, as you prefer.
Another option is to try this with Configuration overload: