This is something that we’ve thought of and that needs to be done- but currently there are some bugs with the pifba emulator and 4 player support and hat controls, so until those are fixed we can’t really incorporate it into the inputstation module yet.
As far as mame is concerned, there isn’t a specific config file with controls so I don’t know how it would be incorporated into the controller module.