hushaojie04 / libgdx

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

Android: add TYPE_ORIENTATION sensor #1090

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
currently only acceleration and magnetic field sensors are implemented.

Original issue reported on code.google.com by goo...@eprognos.com on 19 Oct 2012 at 9:22

GoogleCodeExporter commented 9 years ago
That sensor type is deprecated. Also, you can get the native orientation 
(portrait for almost all phones, landscape for almost all tablets) via 
Input#getNativeOrientation() and the current orientation in 90 degree steps via 
Input#getRotation().

Original comment by badlogicgames on 23 Oct 2012 at 9:04