Is it possible to set the cursor position?


I am trying to simulate a wow like moviment system.
When I press the right mouse button I wanted to:

  1. Hide the cursor (Done)
  2. Move the character and the camera in the direction that the player moved the mouse (done).
  3. Move the cursor to the position it was when it was hidden (???)
  4. Show the cursor again (Done).

Is it possible to set the mouse cursor position?

Thanks in advance.

I’ve done something very similar to what you have done. But, what i have is adapted from resources (forum/manual), so i dont understand it 100%, but, here., x, y)