SetWindowMousePos
SetWindowMousePos

Sets the x and y coordinate of the mouse relative to the window

bSuccess = myMouseKeyboard.SetWindowMousePos( New_XPos, New_YPos )

Return value
TRUE if the mouse was moved successfully, otherwise FALSE.

Parameters
  • New_XPos
    The new x coordinate to use.
  • New_YPos
    The new y coordinate to use.
Comments

Be careful when using this function. It is possible to lock the mouse, resulting in the user being unable to close the game in the usual way.

See also
MouseKeyboard:SetWindowXMouse
MouseKeyboard:SetWindowYMouse



JAM © 2005 no one in particular
Project started by David Evans in 2005