Make Joystic for Retropie

Here is my requirement. I wanted to build a handheld arcade machine using retropie. If you want to add your own controls like the sanwa joystick or buttons then there are two possible solutions given all over the internet. One is using the ControlBlock from Retropie and the other is using iPac. Both these solutions cost around $40 which is the first problem. The second problem is that this solution adds another component to my build which increases in space. And space is something I don’t have. I want the handheld game to be as compact as possible. So I have decided to use the GPIO pins and build my custom joystick. Here it is. Stick around while I show you how I made this.”

Link