benlogan1981
Programmer
Hi
I am trying to set the position of the cursor manually using the following code...
Cursor.Position = new Point(screenX, screenY);
The idea is to basically move the mouse pointer inline with the movement of a human player in a game.
The problem is when I use this call it messes everything up, the player isn't even drawn any more. Even when...
int screenX = Cursor.Position.X;
int screenY = Cursor.Position.Y;
which I would have thought would result in no change at all. Will this manual positioning of the cursor trigger mouse events.
I guess I am just looking for some general advice in this area as I am getting unexpected results.
Thanks
Ben
I am trying to set the position of the cursor manually using the following code...
Cursor.Position = new Point(screenX, screenY);
The idea is to basically move the mouse pointer inline with the movement of a human player in a game.
The problem is when I use this call it messes everything up, the player isn't even drawn any more. Even when...
int screenX = Cursor.Position.X;
int screenY = Cursor.Position.Y;
which I would have thought would result in no change at all. Will this manual positioning of the cursor trigger mouse events.
I guess I am just looking for some general advice in this area as I am getting unexpected results.
Thanks
Ben