360 video player camera control

Hi, I have built a 360 video player. I am wondering if we can move the camera like in YouTube. For example: Mega Coaster: Get Ready for the Drop (360 Video) - YouTube, we move the mouse to the right, and the camera moves toward left.

Hey you can control the camera by playing with its input:

Thank you so much!