I am developing a game with accelerometer controls. This works well on all the mobile phones I’ve tested it on. However, when testing on a tablet, the y and x axes are reversed, presumably because the device’s default orientation is landscape.
How can I identify the default orientation of the device, to set my axes accordingly?
(I’m using Android SDK 1.5 – 1.7.)