correct me if i'm wrong but can't you set the mouse position directly with the

mouse_pos.x
mouse_pos.y

variables?