I am developing a game which uses the accelerometer. I only need to know if the user is tilting the device left or right.
I have following problems:
- When the orientation is inverted, the accelerometer is upside-down.
- On some devices, the bottom of the game is f.e. on the left side (because of the ratio of the resolution).
To solve this problems I need to know where the bottom of my game is. What would be the best method to decide the actual orientation of the game, as in accelerometer values?