As the joystick is moved, the potentiometers’ resistance variations, causing varying voltage levels which can be examine by a microcontroller or other processing device. This code reads the analog values from a joystick's X and Y pins, converts them into corresponding voltage values, and prints them around the serial observe https://analogjoystick50481.laowaiblog.com/36882639/getting-my-arcade-joystick-to-work