Is it possible to set the cursor position?

Hi.

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.

base.win.movePointer(device, x, y)

http://www.panda3d.org/reference/1.7.2/python/classpanda3d.core.GraphicsWindow.php#a49e303ba0aed13c361a4b24ec356058f