I am having some problem with mouse position in MonoGame and I can't really figure out what I am doing wrong. I want the game window to be at the position of my cursor, so I made this simple line:
protected override void Update(GameTime gameTime)
{
Window.Position = new Point(Mouse.GetState().X, Mouse.GetState().Y);
base.Update(gameTime);
}
But if I do this, the game window flickers between two positions. What is the problem ? Am I doing something wrong ?
Thank you!