I live in a temporary place for a short period of time and I don't have the budget or space for a racing sim rig. So I want to make my own rig using the gyroscope from my phone and triggers from my controller.
Basically, instead of the left stick on the controller I want to rotate my phone for the x-axis controls and for gas and brakes I'll keep using the LT and RT.
I haven't tried coding anything yet since I don't even know if that's possible.
you could try with Sensor.TYPE_GYROSCOPE in android. Read more at GYROSCOPE
Or combine with another sensor like Sensor.TYPE_ACCELEROMETER , Sensor.TYPE_MAGNETIC_FIELD , Sensor.TYPE_ROTATION_VECTOR .
You should check your device supported each sensor type above or not