This is a USB joystick demo using STM32F103C8T6. The whole project was developed using CubeMX.
Basically I used very cheap chinese STM32F103 module. The link is here
As for arcade style joysticks and push buttons, there are a bunch of cheap chinese stuffs out there.
As for connection, please refer to the kicad directory. It's gonna cost about $10 US dollars to get the 10 custom PCBs from cheap PCB manufactureres. Whether you use custom soldering or PCB based approach, just be sure to pay attention to the capacitor to prevent debouncing . And just bear in mind that I am a S/W enginner. Designing a simple H/W like this is just a kind of my hobby.
Here is a demo joystick I built. I've been having some fun using it with retroarch. I love kungfu master.
The case is actually a small rectangular plastic container ( or basket or whatever). I bought it at less than 2 dollars at a local store and drilled it.
Here is the image of PCB I created for the build. It's really primitive simple board and anybody can do it. I just hated all the stupid fragile wiring I had to do before the PCB.


