That would probably be as easy as
set player angle - angle(thumbstick.x,thumbstick.y,touch.x,touch.y)
where thumbstick is the circle-sprite your touch should be over.
Ofcourse you should only set this angle if distance (thumbstick.x,thumbstick.y,touch.x,touch.y) is less than the radius of the thumbstick sprite.