Given that the joystick is moved, the potentiometers’ resistance changes, resulting in different voltage amounts which can be go through by a microcontroller or other processing unit. Be aware that this instance assumes you might be using an Arduino-compatible board that supports the Joystick library, like the Arduino Leonardo or https://analogstick33219.win-blog.com/19038947/gpadtester-can-be-fun-for-anyone