Exemplo n.º 1
0
 public MonoGameAndroidGameView(Context context, AndroidGameWindow androidGameWindow, Game game)
     : base(context)
 {
     _gameWindow   = androidGameWindow;
     _game         = game;
     _touchManager = new AndroidTouchEventManager(androidGameWindow);
 }
Exemplo n.º 2
0
 public AndroidGameView(Context context, AndroidGameWindow gameWindow, Game game)
     : base(context)
 {
     _gameWindow   = gameWindow;
     _game         = game;
     _touchManager = new AndroidTouchEventManager(gameWindow);
     Init();
 }
        private void Initialize()
        {
            clientBounds = new Rectangle(0, 0, Context.Resources.DisplayMetrics.WidthPixels, Context.Resources.DisplayMetrics.HeightPixels);

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

            _touchManager = new AndroidTouchEventManager(_game);
        }