Because it's analog, you'll need two analog looking at pins on your microcontroller to find out X and Y. Owning an extra digital input will Enable you to read the switch. The Original prevalence of analog sticks was as peripherals for flight simulator game titles, to higher replicate the subtleties https://gpadtester17272.jiliblog.com/94419791/indicators-on-arcade-joystick-you-should-know 
