using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x02000340 RID: 832
[Token(Token = "0x2000340")]
[AddComponentMenu("Camera-Control/Mouse Look")]
public class MouseLook : MonoBehaviour
{
	// Token: 0x060020B6 RID: 8374 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60020B6")]
	[Address(RVA = "0xBC9180", Offset = "0xBC7F80", VA = "0x180BC9180")]
	private void Update()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060020B7 RID: 8375 RVA: 0x0004DF00 File Offset: 0x0004C100
	[Token(Token = "0x60020B7")]
	[Address(RVA = "0xBC90D0", Offset = "0xBC7ED0", VA = "0x180BC90D0")]
	private void Start()
	{
		if (base.GetComponent<Rigidbody>())
		{
			base.GetComponent<Rigidbody>().freezeRotation = true;
		}
	}

	// Token: 0x060020B8 RID: 8376 RVA: 0x0004DF30 File Offset: 0x0004C130
	[Token(Token = "0x60020B8")]
	[Address(RVA = "0xBC9400", Offset = "0xBC8200", VA = "0x180BC9400")]
	public MouseLook()
	{
	}

	// Token: 0x04002A00 RID: 10752
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4002A00")]
	public MouseLook.RotationAxes axes;

	// Token: 0x04002A01 RID: 10753
	[FieldOffset(Offset = "0x1C")]
	[Token(Token = "0x4002A01")]
	public float sensitivityX = 15f;

	// Token: 0x04002A02 RID: 10754
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x4002A02")]
	public float sensitivityY = 15f;

	// Token: 0x04002A03 RID: 10755
	[FieldOffset(Offset = "0x24")]
	[Token(Token = "0x4002A03")]
	public float minimumX = -360f;

	// Token: 0x04002A04 RID: 10756
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x4002A04")]
	public float maximumX = 360f;

	// Token: 0x04002A05 RID: 10757
	[FieldOffset(Offset = "0x2C")]
	[Token(Token = "0x4002A05")]
	public float minimumY = -60f;

	// Token: 0x04002A06 RID: 10758
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x4002A06")]
	public float maximumY = 60f;

	// Token: 0x04002A07 RID: 10759
	[FieldOffset(Offset = "0x34")]
	[Token(Token = "0x4002A07")]
	private float rotationY;

	// Token: 0x02000341 RID: 833
	[Token(Token = "0x2000341")]
	public enum RotationAxes
	{
		// Token: 0x04002A09 RID: 10761
		[Token(Token = "0x4002A09")]
		MouseXAndY,
		// Token: 0x04002A0A RID: 10762
		[Token(Token = "0x4002A0A")]
		MouseX,
		// Token: 0x04002A0B RID: 10763
		[Token(Token = "0x4002A0B")]
		MouseY
	}
}
