Dragging of Game World

I am doing a dragging of the gameworld by changing the camera position.

if (dragTarget.tag == “Map”)
{
mainCamera.transform.Translate(mainCamera.transform.right * -Input.GetAxis(“Mouse X”) * speed);
mainCamera.transform.Translate(mainCamera.transform.up * -Input.GetAxis(“Mouse Y”) * speed, Space.World);
}

It works well in the editor but when i use it on iOS device, it is not working.

Does Input.GetAxis(“Mouse X”) even work on iOS?

Wouldn’t you need to use the touch input?

You are right. I would need to use the touch input instead. Thanks.