public override void BeforeInitialize()
{
// TODO: Determine whether device natural orientation is Portrait or Landscape for OrientationListener
//SurfaceOrientation currentOrient = Game.Activity.WindowManager.DefaultDisplay.Rotation;
switch (Game.Activity.Resources.Configuration.Orientation)
{
case Android.Content.Res.Orientation.Portrait:
_gameWindow.SetOrientation(DisplayOrientation.Portrait, false);
break;
case Android.Content.Res.Orientation.Landscape:
_gameWindow.SetOrientation(DisplayOrientation.LandscapeLeft, false);
break;
default:
_gameWindow.SetOrientation(DisplayOrientation.LandscapeLeft, false);
break;
}
base.BeforeInitialize();
_gameWindow.GameView.TouchEnabled = true;
}