This encoder has 32 inputs available, which is enough to connect 2 joysticks with 8 buttons each, 2 player start buttons, 2 coin inputs and now has an additional 4 inputs for extra buttons or whatever else you may wish to include.
(32 Inputs plus trackball and spinner connector/PAC-Link expansion)
I-PAC has 32 inputs each with it's own