Ejemplo n.º 1
0
        protected GameWindow()
        {
#if !ANDROID
            // TODO: Fix the AndroidGameWindow!
            TouchPanelState = new TouchPanelState(this);
#endif
        }
Ejemplo n.º 2
0
 public void SetUp()
 {
     TouchPanelState.CurrentTimestamp = GameTimeForFrame(0);
     _tps = new TouchPanelState(new MockWindow());
 }
Ejemplo n.º 3
0
        public GameWindow(Game game, RectF frame) : base (frame)
		{
            if (game == null)
                throw new ArgumentNullException("game");
            _game = game;
            _platform = (MacGamePlatform)_game.Services.GetService(typeof(MacGamePlatform));
            TouchPanelState = new TouchPanelState(this);

			//LayerRetainsBacking = false; 
			//LayerColorFormat	= EAGLColorFormat.RGBA8;
            this.AutoresizingMask = NSViewResizingMaskClass.HeightSizable
                | NSViewResizingMaskClass.MaxXMargin 
                | NSViewResizingMaskClass.MinYMargin
                | NSViewResizingMaskClass.WidthSizable;
			
            var rect = NSScreen.MainScreen.Frame;
			
			clientBounds = new Rectangle (0,0,(int)rect.Width,(int)rect.Height);

			// Enable multi-touch
			//MultipleTouchEnabled = true;
			
			Mouse.Window = this;
		}
Ejemplo n.º 4
0
 protected GameWindow()
 {
     TouchPanelState = new TouchPanelState(this);
 }
Ejemplo n.º 5
0
 public void SetUp()
 {
     _tps = new TouchPanelState(new MockWindow());
 }
Ejemplo n.º 6
0
        public AndroidGameWindow(Context context, Game game) : base(context)
        {
            _game = game;
            TouchPanelState = new TouchPanelState(this);
            Initialize();

        }		
 public void SetUp()
 {
     TouchPanelState.Update(GameTimeForFrame(0));
     _tps = new TouchPanelState(new MockWindow());
 }