Posted By: BastovBros
mouse coordinates - 07/07/09 15:46
The question is: how can I make the cursor appear in the center of the screen after loading the level, so that its new central coordinates become the initial position of the mouse? And how can I make limits for the cursor movement on the screen?
Maybe I've explained my problem a bit confusingly, so a would mention the Counter-Strike game to clarify it:
When I launch the game I can move cursor anywhere I want...
when I start a new level my cursor stands on its place if I don't move it with my mouse....
But when the level is loaded the cursor goes to its new position in the center of the window, and when I move the mouse the cursor starts its movement from its new location....
Thank you in advance.
Maybe I've explained my problem a bit confusingly, so a would mention the Counter-Strike game to clarify it:
When I launch the game I can move cursor anywhere I want...
when I start a new level my cursor stands on its place if I don't move it with my mouse....
But when the level is loaded the cursor goes to its new position in the center of the window, and when I move the mouse the cursor starts its movement from its new location....
Thank you in advance.