How set mouse position from code?
It’s possible to set the mouse cursor position using the new input system and cursor warping.
If you’re not using the new input system then you’ll have to replace the mouse cursor with your own or use an external library to get Windows to set the cursor position.