how to control pc mouse with arduino leonardo and MPU-6050 gyro

I want to make an oculus rift clone, and I dont know how to use the gyro sensor to control pc mouse

Step 1 - read the values from the gyro and print them to the Serial monitor.