Because it's analog, You will need two analog reading pins with your microcontroller to determine X and Y. Acquiring an extra electronic input will let you read the switch. There is a Specific map, known as "Mouse Pointer" which transforms the unit into a mouse cursor pointer. The joystick’s X-axis https://landenlpqpn.designertoblog.com/69305960/about-analog-joystick