As being the joystick is moved, the potentiometers’ resistance improvements, leading to different voltage levels which can be browse by a microcontroller or other processing device. Be aware that this example assumes you happen to be making use of an Arduino-appropriate board that supports the Joystick library, such as the https://diy-arcade-parts66828.thekatyblog.com/36471470/5-easy-facts-about-analog-joystick-described