Improved the code to handle xbox controller pitch and yaw.