As it's analog, You'll have two analog looking at pins on your microcontroller to find out X and Y. Getting an extra digital input will Permit you to read the swap. Note that this instance assumes you might be using an Arduino-suitable board that supports the Joystick library, including the https://reidnxdma.ezblogz.com/69734239/the-5-second-trick-for-gpadtester