Full tutorial guide: https://learn.adafruit.com/arcade-bonnet-controller/overview
Retro Game Controller In this guide, we'll learn how to wire up a Mini Analog Joystick to the Adafruit Arcade Bonnet for Raspberry Pi. Most of the arcade buttons plug into the Arcade Bonnet with quick connect wires – Making it much easier to put together a retro arcade controller or cabinet.
Adafruit Arcade Bonnet This cute little bonnet is designed for quickly adding arcade buttons to your Raspberry Pi. It has six JST connectors that are compatible with our arcade button quick connect wires, so no soldering required. There's also dedicated pins for wiring up an analog joystick and an 8-way switch joystick.