Since it's analog, You will need two analog reading through pins on your microcontroller to find out X and Y. Having an additional electronic enter will Enable you to read the change. There is a Particular map, referred to as "Mouse Pointer" which transforms the unit into a mouse cursor https://analogjoystick14544.anchor-blog.com/18560825/new-step-by-step-map-for-gpadtester