The Ben Heck Show on YouTube builds the ultimate retro gaming controller using an ESP8266 WiFi Module, a transmitter controller, and a receiver on the game console. Universal support includes Nintendo, Super Nintendo, Sega, and Atari.
This is totally over-engineered, but it’s still a blueprint for anyone looking to build their own controller.