Hi there,
  I built a cabinet and controller a few years ago and never quite got the software part working.  I bought a Raspberry pi 3 a few years ago and life took over and now I am trying again to get everything working.  I have set up RetroPie and loaded a few ROMs and can get it working just fine with a USB controller.  Now I am trying to set up the big 4 person controller I built.  I used the WinIPAC software to remap every single button and joystick direction to a keyboard key...
(4) - 4-way joysticks - 16 inputs total
(4) - 7 buttons per spot - 28 inputs total
(4) - 1 coin, 1 start for each (8 inputs total)
(1) - 3 extra buttons to map for reset, exit, etc (3 inputs total)
All in I have 55 buttons all mapped to a-z, 0-9, and several f keys and num keys
The problem I am having now is how to I map this controller in RetroPie/ RetroArch?  I have tried messing around with the "retroarch.cfg" file but when i turn everything on it doesn't see that the controller is attached.  I imagine I am missing a step or just have not set up the file correctly.  Any guidance here on what to try or questions of what I have done would be greatly appreciated!  Thanks!