The joystick is a 'self-centering' analog-type. That means it basically acts like two 10K potentiometers, one for up/down and another for left/right. It has a built-in flex cable that can plug right into a fine pitch (0.5mm) connector. The four pins connect to power, ground and then two analog outputs. As the joystick is moved around, the voltage will follow the motion. When you release the joystick it will center itself.