Because it's analog, You'll have two analog looking through pins on your microcontroller to determine X and Y. Possessing an additional electronic enter will Allow you to read through the swap. Note that this example assumes you are applying an Arduino-compatible board that supports the Joystick library, including the Arduino https://kamerontwwus.blogdemls.com/37905242/getting-my-arcade-joystick-to-work