Given that the joystick is moved, the potentiometers’ resistance improvements, resulting in varying voltage degrees which might be read through by a microcontroller or other processing unit. Be aware that this example assumes that you are making use of an Arduino-suitable board that supports the Joystick library, including the Arduino https://gpadtester03689.jaiblogs.com/65008128/top-guidelines-of-analog-stick