Microsoft.Xna.Framework.AndroidGameWindow.Initialize C# (CSharp) Method

Initialize() private method

private Initialize ( Android.Content.Context context ) : void
context Android.Content.Context
return void
        private void Initialize(Context context)
        {
            _clientBounds = new Rectangle(0, 0, context.Resources.DisplayMetrics.WidthPixels, context.Resources.DisplayMetrics.HeightPixels);

            GameView = new MonoGameAndroidGameView(context, this, _game);
            GameView.RenderOnUIThread = Game.Activity.RenderOnUIThread;
            GameView.RenderFrame += OnRenderFrame;
            GameView.UpdateFrame += OnUpdateFrame;

            GameView.RequestFocus();
            GameView.FocusableInTouchMode = true;

#if OUYA
            GamePad.Initialize();
#endif
        }