As it's analog, You will need two analog looking at pins in your microcontroller to determine X and Y. Obtaining an additional electronic input will Enable you to examine the switch. There exists a special map, referred to as "Mouse Pointer" which transforms the gadget into a mouse cursor pointer. https://joystickcontroller31344.theblogfairy.com/37138895/gpadtester-no-further-a-mystery