How to teleport the mouse of the player somewhere in the screen ? (2D)

Hello ! Can someone know how to teleport the mouse of the player somewhere in the screen in 2D please ? Thanks.,Hello ! Can someone know how to teleport the mouse of the player somewhere in the screen because I am making a game where the mouse position is very important but I need the mouse to be in an exact position. Can someone help me please ? Thank you.

On windows you can set the mouse position with a function of the user32.dll