how to code my gyroscope and buttons?

1.i am making a pc game controller with arduino uno. it has 1 joystick(for movement) and 1 gyroscope(for looking around) i wanted to code the gyroscope so that it replaces the other joystick which is used for looking around.please tell me how to code the gyroscope so that it does this

  1. i want to use these buttons like the various buttons in a game controller so i need help in this too.

(ps-the gyroscope is a mpu 6050)

If you want someone to do it for you there is a forum for gigs and collaborations. Here people will expect you to have a go yourself after doing the basic tutorials and a bit of online research and then ask questions about specific problems you are having with your code.

start by breaking your project down into chunks and then focusing on getting one thing going at a time