split screen in 2 viewport, which one I'm touching

Hello Guys,

I hope is a quick question to solve: I have my screen split in two viewport and I know I can use ScreenToViewportPoint to convert screen coordinates into viewport ones, but I wonder if there is anything built in already which determines which viewport (and so which camera) based on the position of the touch.

Many thanks,
GC

if(rect (half the screen).contains (mouse) {
player 1
} else {
player 2
}