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