To be clear, are you wanting the object to point in the same direction as the stick? Or do you want it to rotate counter-clockwise when the stick is held left, clockwise when held right, something along those lines?
EDIT: If it's the former, here's an example where the object faces the direction of the stick and the position of the stick is limited. I made no assumptions about which side of the sprite is which, so you may need to adjust its angle by plus or minus 90 degrees.
You do not have the required permissions to view the files attached to this post.