As the joystick is moved, the potentiometers’ resistance adjustments, leading to various voltage degrees that may be read 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 within the serial https://daltonqftfq.goabroadblog.com/37064550/new-step-by-step-map-for-arcade-joystick