Hi,
one way is to have a dummy 'InputDummy' that move in absolute mode compare to your input ( so it will range around it's parent between -1 and 1 on x an y)
the you make another dummy where you have the sprite as a child of it, and make that dummy look at that 'InputDummy'.
else, mathematically, this is a matter of understanding sinus and cosinus.
https://www.mathsisfun.com/algebra/trig-finding-angle-right-triangle.htmlso in your case, you want the angle between the hypotenuse and adjacent, but it's a lot more involving because you need some math to get a proper angle around the four quadrant.
Bye,
Jean