Because the joystick is moved, the potentiometers’ resistance variations, leading to different voltage concentrations that could be read by a microcontroller or other processing unit. This code reads the analog values from the joystick's X and Y pins, converts them into corresponding voltage values, and prints them about the serial https://sethoeivx.blogrenanda.com/44723807/5-simple-statements-about-diy-arcade-parts-explained