For this reason it is necessary to copy dosbox.conf to every game folder xxxxx.pc and rename it dosbox.cfg.
Anyway, most of my dos games have all different controller configurations.
Now, as I told before, the name of the keymapper you give it in dosbox.cfg, and this keymapper filename xxxxx.map
will be memorized in the individual game folder from every game, and as such changing the controller file to the mapping of this game. If no dosbox.cfg file exists in the folder xxxxx.pc, dosbox will take the standard dosbox.conf and no individual configuration for games are possible.