View Single Post
Posts: 724 | Thanked: 1,255 times | Joined on Nov 2007 @ Cambridge, UK
#6
Originally Posted by Blaizzen View Post
Makes sense. I just would have assumed it would try to make it more uniform across platforms to ease in development. Guess to port to another platform you'd have to change the maths slightly.

I guess it also answers why the values are inverse, as Qt would probably try to make all phones face up have positive Z values no matter how their accelerometer is placed inside.

thanks
Well, this is the whole reason of Qt Mobility Sensors API, it means you don't have to worry about talking to the hardware directly and can write code once that will work the same on all platforms/devices.