Axiom.Samples.SdkTrayManager.RefreshCursor C# (CSharp) Method

RefreshCursor() public method

Updates cursor position based on unbuffered mouse state. This is necessary because if the tray manager has been cut off from mouse events for a time, the cursor position will be out of date.
public RefreshCursor ( ) : void
return void
		public void RefreshCursor()
		{
            int cursorX = 0, cursorY = 0;
            if (Mouse != null)
            { 
                cursorX = Mouse.MouseState.X.Absolute;
                cursorY = Mouse.MouseState.Y.Absolute;
            }
            cursor.SetPosition( cursorX , cursorY );
		}