As it's analog, You will need two analog examining pins with your microcontroller to find out X and Y. Getting an additional electronic input will let you examine the switch. You will find a Exclusive map, known as "Mouse Pointer" which transforms the gadget right into a mouse cursor pointer. https://andresikjex.qodsblog.com/38299112/how-much-you-need-to-expect-you-ll-pay-for-a-good-analog-stick