コード例 #1
0
ファイル: CarbonGLNative.cs プロジェクト: noggs/opentk
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 void IMouseDriver2.SetPosition(double x, double y)
 {
     CG.SetLocalEventsSuppressionInterval(0.0);
     CG.WarpMouseCursorPosition(new Carbon.HIPoint(x, y));
 }
コード例 #4
0
ファイル: HIDInput.cs プロジェクト: conankzhang/fez
 void IMouseDriver2.SetPosition(double x, double y)
 {
     int num1 = (int)CG.SetLocalEventsSuppressionInterval(0.0);
     int num2 = (int)CG.WarpMouseCursorPosition(new HIPoint(x, y));
 }