How can I detect the areas on the screen of a mobile device?

Hello, I am trying to know how to detect the areas of the screen of a mobile device something like this image:

It is because I need to make the player can move the camera with the right screen area and not with the whole screen

It is because I need to make the player can move the camera with the area of the right screen and not with the entire screen, so that the camera moves with something similar to this:

self.DeltaEnabled = UserInputService.InputChanged:Connect(function(inputObj,processed)
			if inputObj.UserInputType == Enum.UserInputType.MouseMovement or inputObj.UserInputType == Enum.UserInputType.Touch then
               --functions here
			end
		end)

but only with a screen area

1 Like