I set up a bunch of custom controls that let me do everything with my controller, but sometimes I'll open up MAME and all my controls have been reset! It's as if the default.cfg file has been deleted. This has happened twice now and I'm getting tired of re-doing my control settings.
Linux Mint 18.3 / MAME v0.160 PC controller registers as Xbox 360 controller