jassenburg / frozenbubbleplus

Automatically exported from code.google.com/p/frozenbubbleplus
0 stars 0 forks source link

Accelerometer targeting - direction is reversed in reverse portrait orientation #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The accelerometer reversal issue is because I allow you to use either portrait 
orientation, but use the same position adjustment calculation based on 
accelerometer coordinates. If you flip your device upside down, then the 
control will be in the direction you expect.

The launcher should always point straight up with respect to gravity regardless 
of which portrait orientation is used (normal or reversed)

Original issue reported on code.google.com by forter...@gmail.com on 24 Mar 2013 at 12:48

GoogleCodeExporter commented 8 years ago
I added a window orientation changed sensor listener that calls a function that 
determines the screen orientation based on the sensor angle and screen 
dimensions.

Original comment by forter...@gmail.com on 25 Mar 2013 at 1:16