Android Tilt Help Please! (Left/Right Only)

I’m currently trying to get something similar working, except I want it to do absolute orientation mapped from the device orientation, so it’s like you’re looking through the screen at the world as you turn your body, holding the device in front of you. Little bit different but having similar issues.