Original Post
So I am having an issue that my XNA game does not detect the mouse position correctly. Here is my update function.
protected override void Update(GameTime gameTime)
{
MouseState m = Mouse.GetState();
if (m.LeftButton == ButtonState.Pressed)
{
Console.WriteLine(m.X + " " + m.Y);
}
base.Update(gameTime);
}
Now the mouse coordinates should be relative to the upper left hand corner of the window. When I click there the output is nowhere near 0,0. Each run the numbers change. Examples: 84 -5 217 169 195 142 Any ideas?