Nintendo 64 Button Mapping For 10" Picade

Just built my 10" picade and it’s been great! I’m struggling with the button mapping for N64 games though (earthworm Jim, Mario kart, Mario 64). I found a config file that lets me use the joystick now, but I can’t get the Z button for N64 mapped to any of the picade buttons. Does someone have a config file that works for N64 mapping or can provide some guidance on how to accomplish this? Thanks!