Mouse Cursor Capture

run this in a task and it’ll reset the cursor to the center of your window. once the mouse left the window (due to very fast movement) then there is little you can do about it. but this works fine in most situations

centerx =  base.win.getProperties().getXSize()/2
centery =  base.win.getProperties().getYSize()/2
base.win.movePointer(0,centerx,centery)