Umm, two player Pac-Man is played one player at a time, each using the same controls. You don't need to do anything at all with MAME, since that was the way the game was designed, and all you have to do is wire up the joystick to the Player 1 side of the IPAC.
Am I misunderstanding your question?
-- Chris