Because it's analog, You'll have two analog studying pins in your microcontroller to ascertain X and Y. Obtaining an additional digital input will Permit you to browse the change. Notice that this example assumes you will be employing an Arduino-compatible board that supports the Joystick library, like the Arduino Leonardo https://peterg813gsy6.plpwiki.com/user