There's absolutely an option to do standard controller inputs across all games.
That option has been standard across all MAME 32 releases for years, and it's still included in all UI releases.
Just start a game, hit tab, and the first controller input option should be the "universal" one. The one that says "Inputs - for this game" are game specific.