Faced with the wrong work of action "Get Device Roll".
In my app is setting Landscape Left orientation, but "Get Device Roll" action with the same "Landscape Left" gain wrong angles, as if i choose "Portrait" orientation.
This code:
case BaseOrientation.LandscapeLeft:
zAngle = Mathf.Atan2(x, -y);
break;
receives the correct angles values in Landscape Left orientation. Who have the same problem? Please test this code. Its fix it? Or it is only mine problem?