Why are my tilt controls are replaced by touch?

I am making a game where you tilt to move. For some reason now, you move when you touch left/right side of screen, and tilt doesn’t work.

Turned out it was my code. The touch Input bool was false, and it used mouse x which I guess is the touch screen on android.