As the joystick is moved, the potentiometers’ resistance improvements, resulting in different voltage degrees that may be study by a microcontroller or other processing unit. Take note that this example assumes you happen to be using an Arduino-appropriate board that supports the Joystick library, including the Arduino Leonardo or Micro. https://gpadtester46891.amoblog.com/getting-my-gpadtester-to-work-59929698