Changing Input.GetAxis camera to cursor movement instead

Hey, so I recently found this script: https://forum.unity.com/threads/complete-camera-collision-detection-third-person-games.347233/
that has been an immense help for my project, but I was wondering how I could change the ‘input’ so that instead of the camera being moved by the WASD and arrow keys it is instead moved by the cursor. Any insight into this would be greatly appreciated!

Thanks

Input.GetAxis("Mouse X") for horizontal mouse input, Input.GetAxis("Mouse Y") for vertical.