Sega Genesis gamepad

ssega3
ssega6

Sega Genesis gamepads comes in two flavor; 3 and 6 buttons. Method to read these controllers are different but retro-compatible. The firmware can accept and auto-detect both type.

Pin 7 “select” is use to “switch” button reading like a diffrent “page”.

6 button reading is well explained here.

Controller pinout

dsub9f

PinFUNCTION
1UP/Z
2DOWN/Y
3LEFT/X
4RIGHT/MODE
5+5V
6BUTTON A/B
7SELECT
8GND
9START/BUTTON C