void HandleXnaUpdate() { mCursor.Activity(TimeManager.Self.CurrentTime); mKeyboard.Activity(); // 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)); } }
void HandleXnaUpdate() { keyboard.Activity(); mStatusText.AdjustTextSize(); if (mStatusText.Visible) { MoveOriginToTopLeft(mManagers.Renderer.Camera); } if (mControl.XnaCursor.IsInWindow) { StatusBarManager.Self.SetCursorPosition( mControl.XnaCursor.GetWorldX(mManagers), mControl.XnaCursor.GetWorldY(mManagers)); } }
void HandleXnaUpdate() { keyboard.Activity(); mStatusText.AdjustTextSize(); PerformMagicWandPreviewLogic(); if (mControl.XnaCursor.IsInWindow) { PerformCursorUpdateLogic(); StatusBarManager.Self.SetCursorPosition( mControl.XnaCursor.GetWorldX(mManagers), mControl.XnaCursor.GetWorldY(mManagers)); } }