@holmes I know it's not the same subject, but in the documentation about configuring controls, it mentions another way, have you taken a look?

https://wiki.recalbox.com/en/tutorials/controllers/configuration-of-customized-buttons/n64-controller-configuration

/recalbox/configs/mupen64/mupen64plus.cfg