Mobile touch inputs for pong

So i’m trying to make a pong game. and for the touch inputs(which is being done in User Interface) i want it to be like so when ever the player touch the right side of the screen the paddle moves right and same with left. I got that to work but the problem is that the paddle only moves when ever i touch the button and its not constantly moving in the directs its pressed. please help, Thanks