public EditorMouseState(EditorMouseState other) { this.LeftButton = other.LeftButton; this.RightButton = other.RightButton; this.MiddleButton = other.MiddleButton; this.ScrollValue = other.ScrollValue; this.Position = other.Position; this.onControl = other.onControl; this.control = other.control; }
internal void Construct(GameEx game) { form.GameApp = game; this.game = game; Form f = Control.FromHandle(game.Window.Handle) as Form; mouseState = new EditorMouseState(drawingSurface); form.FormClosing += (s, e) => f.Close(); game.graphics.PreparingDeviceSettings += new EventHandler <PreparingDeviceSettingsEventArgs>((s, e) => e.GraphicsDeviceInformation.PresentationParameters.DeviceWindowHandle = drawingSurface.Handle); f.VisibleChanged += (s, e) => f.Visible = false; }