TDS turret shooter

i have a tds shooter for ipad im working on and i have the background and turret set up.
when a player plays this game i want them to touch anywhere on the screen and the turret will turn and shoot in that direction, or if the player is shooting in full auto the player can touch and drag on the screen and it turret will shoot continuously following the the players touch position.
how do i do this?
when a player plays this game i want them to touch anywhere on the screen and the turret will turn and shoot in that direction, or if the player is shooting in full auto the player can touch and drag on the screen and it turret will shoot continuously following the the players touch position.
how do i do this?
Comments
In a rule:
When mouse is down: Spawn bullet (in the direction put: VectorToAngle((mouse.position.xplayer.position.X),(mousepositionY-playerpositiony))
good luck with your game