I took a Ms. Pac-Man arcade plug-and-play console apart a while back.Inside there was a joystick and actually 3 arcade button pads (even though there were only two arcade buttons!) and a small little board which housed the actual game to be run. I desoldered the game, and it sat around for a while.This summer, after I moved into the hotel where I was staying while doing an internship in Indianapolis, I gathered all my parts into one place, and decided I was going to fit a Raspberry Pi in there.Thus I connected all six button pads to GPIO and put RetroPi on with Atari 2600 Games. This didn't go as planned exactly, so I had to add a couple push buttons and switch to Recalbox OS. Finally, to make everything fit, I also cut out the bottom, and voila, a portable plug-and-play atari console!https://www.youtube.com/watch?v=Aldbbn6kXZY&fe
Raspberry Pi Zero W
A 5v battery pack and controller for Raspberry Pi
Everything finally works, I got games loaded up, and it's all nicely fit together. The onl;y real change I did was use a dremel to cut out the built in battery box (since I wasn't using it). This allowed me to squash everything in and make sure it all fits!
Finally, all the buttons are working, aaaaaaaaaaand... Recalbox requires a start button. I thus decided to add start, select, and 'trigger right' buttons (the latter being used as the hotkey button). I slapped a perfboard under the enclosure and hid the wires sliding them up through the battery pack. I might clean it up later, painting it black or something, but it looks alright for now.
At the point of creating this project, all components are soldered and packed together. All that is left to do is install retropi and connect the GPIO buttons to keyboard/joystick inputs (and troubleshoot if need be).