As being the joystick is moved, the potentiometers’ resistance adjustments, causing varying voltage stages that can be read through by a microcontroller or other processing device. Be aware that this instance assumes you happen to be utilizing an Arduino-suitable board that supports the Joystick library, such as the Arduino Leonardo https://analog-stick14679.ageeksblog.com/36788207/joystick-controller-can-be-fun-for-anyone