protected virtual void Dispose(bool disposing) { if (mIsDisposed) { return; } Debug.Print("Disposing of CarbonGLNative window."); CursorVisible = true; API.DisposeWindow(window.Handle); mIsDisposed = true; mExists = false; CG.SetLocalEventsSuppressionInterval(0.25); if (disposing) { mWindows.Remove(window.Handle); window.Dispose(); window = null; } DisposeUPP(); Disposed(this, EventArgs.Empty); }
protected virtual void Dispose(bool disposing) { if (this.mIsDisposed) { return; } this.CursorVisible = true; API.DisposeWindow(this.window.WindowRef); this.mIsDisposed = true; this.mExists = false; int num = (int)CG.SetLocalEventsSuppressionInterval(0.25); if (disposing) { CarbonGLNative.mWindows.Remove(this.window.WindowRef); this.window.Dispose(); this.window = (CarbonWindowInfo)null; } this.DisposeUPP(); this.Disposed((object)this, EventArgs.Empty); }
void IMouseDriver2.SetPosition(double x, double y) { CG.SetLocalEventsSuppressionInterval(0.0); CG.WarpMouseCursorPosition(new Carbon.HIPoint(x, y)); }
void IMouseDriver2.SetPosition(double x, double y) { int num1 = (int)CG.SetLocalEventsSuppressionInterval(0.0); int num2 = (int)CG.WarpMouseCursorPosition(new HIPoint(x, y)); }