Voltage divider
Each voltage divider consists of a resistor in the form of a curled rail and a movable contact arm. Computer power starts at the input and flows back to the computer's joystick port through a crimped resistor and contact arm.
https://www.dtsanyparts.com/slewing-device/cab/switch-for-the-joystick-of-sy215c.html