As it's analog, you'll need two analog looking through pins on the microcontroller to ascertain X and Y. Owning an additional digital input will Allow you to read the switch. As opposed to most arcade-fashion joysticks, which include 4 clicking switches, this solution has two 10KΩ potentiometers and a spring-back https://wesleyc008zyi9.azuria-wiki.com/user