コード例 #1
0
        void HandleXnaUpdate()
        {
            mCursor.Activity(TimeManager.Self.CurrentTime);

            // I think we only want to do this if we're actually in the window
            // No, we want to always do it otherwise the user can't delete guides.
            // We will make checks internally
            //if (mCursor.IsInWindow)
            {
                if (mCursor.IsInWindow)
                {
                    System.Windows.Forms.Cursor cursorToSet = System.Windows.Forms.Cursors.Arrow;

                    System.Windows.Forms.Cursor.Current = cursorToSet;
                    this.mControl.Cursor = cursorToSet;
                }
                this.mLeftRuler.HandleXnaUpdate(mCursor.IsInWindow);
                this.mTopRuler.HandleXnaUpdate(mCursor.IsInWindow);
            }



            if (mCursor.IsInWindow)
            {
                StatusBarManager.Self.SetCursorPosition(
                    mCursor.GetWorldX(mManagers),
                    mCursor.GetWorldY(mManagers));
            }
        }