MAME doesn't have default settings beyond P1 Button 1-10, P2 Button 1-4, and P3 directionals.
The default I-PAC4 config will match these, but the P3 directionals will conflict with the P2 B5-8.
Beyond this, you are on your own, and it's simply a matter of assigning keys in both MAME and the I-PAC4 so you don't have duplicates.