public MonoGameAndroidGameView(Context context, AndroidGameWindow androidGameWindow, Game game)
            : base(context)
        {
            _gameWindow = androidGameWindow;
			_game = game;
            _touchManager = new AndroidTouchEventManager(androidGameWindow);
        }
Exemplo n.º 2
0
        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);

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