protected GameWindow() { #if !ANDROID // TODO: Fix the AndroidGameWindow! TouchPanelState = new TouchPanelState(this); #endif }
public void SetUp() { TouchPanelState.CurrentTimestamp = GameTimeForFrame(0); _tps = new TouchPanelState(new MockWindow()); }
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; }
protected GameWindow() { TouchPanelState = new TouchPanelState(this); }
public void SetUp() { _tps = new TouchPanelState(new MockWindow()); }
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()); }