(Formerly known as SetMousePosition, which is now obsolete)
Mouse.SetPosition(int x, int y)
Moves the mouse pointer to screen co-ordinates (X,Y). They are
in the usual range (0,0) - (320,200/240). The mouse.x and mouse.y variables will be
updated to reflect the new position.
NOTE: Only use this command when absolutely necessary. Moving the mouse cursor
for the player is a sure way to irritate them if you do it too often during the game.
Example:
mouse.SetPosition(160, 100);
will place the mouse cursor in the centre of the screen.
See Also: Mouse.SetBounds
|