How to create a character control with a gyro in the phone?,

Hello.
I have a small problem. I want to create a character control with gyroscope on my phone. Example: I tilt the phone forward - the character goes forward, cant to the left - goes to the left, etc. Tried Tilt, but it does not work, once it turned out to make him move, but only diagonally. Could you help me, write in what direction to try to work or show a working blueprint, if you have already dealt with a similar problem. Thank you.,