This is the circuit I used to make my Vectrex controller and a pic of it's insides.
The buttons were straightforward, but making the digital joystick work with an analog signal was much more complex!
Thanks to @abzman for this cad skills and putting the diagram together for me!