private int getScreenRotation() {
        return windowManager.getDefaultDisplay().getRotation();
    }
Returns the current device rotation.
Surface.ROTATION_0 = device in natural default rotation
Surface.ROTATION_90 = device in rotated 90deg counterclockwise
Surface.ROTATION_180 = device in rotated 180deg counterclockwise
Surface.ROTATION_270 = device in rotated 270deg counterclockwise

When the Manifest locks the orientation, this value will not change during
game time, but if the orientation of the screen is based off the sensor,
this value will change as the device is rotated.
@return Current device rotation amount
jme3-android/src/main/java/com/jme3/input/android/AndroidSensorJoyInput.java