How to setup a input touch to move a actor along it's x-axis continuously?

I want to program a input touch event in which when the finger when touch and moved along x-axis should move the actor using x-axis length of input touch in positive and negative direction continuously without releasing the finger.