public virtual void PointerMoved(Vector2 position, GameTime gameTime) { bool res = UIWindowManager.PointerMoved(position, gameTime); if (res == false) { // Event was not handled by UI if (isMouseCaptured) { res = CurrentController?.PointerMoved(position) ?? false; if (res == false) { CurrentCamera?.PointerMoved(position); } Mouse.SetPosition((int)lastMousePos.X, (int)lastMousePos.Y); } } }