As it's analog, you'll need two analog looking at pins on your own microcontroller to find out X and Y. Having an additional electronic input will let you study the switch. Notice that this example assumes you're utilizing an Arduino-appropriate board that supports the Joystick library, like the Arduino Leonardo https://jimmyp489gov0.blogdemls.com/profile