Since it's analog, You will need two analog studying pins on the microcontroller to determine X and Y. Obtaining an extra digital input will Enable you to read the switch. Unlike most arcade-model joysticks, which come with four clicking switches, this product has two 10KΩ potentiometers and also a spring-back https://mortonc161yxs1.wikinstructions.com/user