prevent mouse from leaving screen

My camera fallows my mouse but my mouse keeps leaving the screen. How would prevent my mouse from leaving the screen, so if you scroll all the way to the right , you can keep scrolling.
I only know java script

I don’t think its possible to do something like that, so you need to re-think your design.

For example, you can use the Lock mouse cursor function,
(LockCursor documentation) to have the mouse cursor to be in the center all the time, and use GetAxis input to get when the mouse moves, and use its data to move the camera (pseudo code!):

var xAxis = Input.GetAxis ("Mouse X");
var yAxis = Input.GetAxis ("Mouse Y");

YourCamera.Transform.Translate(xAxis, yAxis , 0);

GetAxis documentation

Good luck!