How to create touch input controls?

Untitled document - Google Docs I want to create input controls where I can drag the character to move left and right. Kind of like touching the left side of the screen to move left. Same goes for right. How would I do this. This game is also for mobile.