Detect what side of the screen the mouse is on

So am trying to set up my paper2d to look left and right with with mouse. so my question how would I detect which side of the screen the mouse is on?

Pseudo code:

screenSide = text;
pos = MousePosX / Screen.Width 
      
    
if (pos >=0.5){
    screenSide  = "RIGHT"
else
    screenSide  = "LEFT"
}

MousePosX / Screen.Width gives a result from 0 - 1
MousePosY / Screen.Height would obviously be Top/Bottom.

Hope this helps :slight_smile: