set Mouse to center

Hello

Does someone know how I can put my mousecursor to the center of the screen or somewhere else?

I found a method setMousePos(int x, int y) of the class VirtualMouse but how do I use it?

try this:


base.win.movePointer(0, base.win.getXSize()/2, base.win.getXSize()/2)

hope that helps,
kaweh

Yeah thank you that workes :slight_smile: