Reputation: 1437
I am trying to find the X & Y positions so I can draw my images on a certain part of my game window, but I have no idea how to do this and can't find any information on how to do this, if anyone could help it would be much appreciated, thanks.
Upvotes: 0
Views: 119
Reputation: 6466
You can get the mouse state from the mouse class found in Microsoft.Xna.Framework.Input;
MouseState mouseState = Mouse.GetState();
var x = mouseState.X;
var y = mouseState.Y;
Upvotes: 2