using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using Il2CppSystem;
using UnityEngine;

namespace Obi.CrossPlatformInput
{
	// Token: 0x0200050F RID: 1295
	public class TiltInput : MonoBehaviour
	{
		// Token: 0x060092A3 RID: 37539 RVA: 0x0025BDE0 File Offset: 0x00259FE0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 614063, XrefRangeEnd = 614072, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnEnable()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(TiltInput.NativeMethodInfoPtr_OnEnable_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060092A4 RID: 37540 RVA: 0x0025BE24 File Offset: 0x0025A024
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 614072, XrefRangeEnd = 614087, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Update()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(TiltInput.NativeMethodInfoPtr_Update_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060092A5 RID: 37541 RVA: 0x0025BE68 File Offset: 0x0025A068
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 614087, XrefRangeEnd = 614089, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnDisable()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(TiltInput.NativeMethodInfoPtr_OnDisable_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060092A6 RID: 37542 RVA: 0x0025BEAC File Offset: 0x0025A0AC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 614089, XrefRangeEnd = 614090, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe TiltInput()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<TiltInput>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(TiltInput.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060092A7 RID: 37543 RVA: 0x0025BEF8 File Offset: 0x0025A0F8
		// Note: this type is marked as 'beforefieldinit'.
		static TiltInput()
		{
			Il2CppClassPointerStore<TiltInput>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "Obi.CrossPlatformInput", "TiltInput");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<TiltInput>.NativeClassPtr);
			TiltInput.NativeFieldInfoPtr_mapping = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TiltInput>.NativeClassPtr, "mapping");
			TiltInput.NativeFieldInfoPtr_tiltAroundAxis = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TiltInput>.NativeClassPtr, "tiltAroundAxis");
			TiltInput.NativeFieldInfoPtr_fullTiltAngle = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TiltInput>.NativeClassPtr, "fullTiltAngle");
			TiltInput.NativeFieldInfoPtr_centreAngleOffset = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TiltInput>.NativeClassPtr, "centreAngleOffset");
			TiltInput.NativeFieldInfoPtr_m_SteerAxis = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TiltInput>.NativeClassPtr, "m_SteerAxis");
			TiltInput.NativeMethodInfoPtr_OnEnable_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TiltInput>.NativeClassPtr, 100674713);
			TiltInput.NativeMethodInfoPtr_Update_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TiltInput>.NativeClassPtr, 100674714);
			TiltInput.NativeMethodInfoPtr_OnDisable_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TiltInput>.NativeClassPtr, 100674715);
			TiltInput.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TiltInput>.NativeClassPtr, 100674716);
		}

		// Token: 0x060092A8 RID: 37544 RVA: 0x0000351C File Offset: 0x0000171C
		public TiltInput(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x170031A6 RID: 12710
		// (get) Token: 0x060092A9 RID: 37545 RVA: 0x0025BFDC File Offset: 0x0025A1DC
		// (set) Token: 0x060092AA RID: 37546 RVA: 0x0025C010 File Offset: 0x0025A210
		public unsafe TiltInput.AxisMapping mapping
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TiltInput.NativeFieldInfoPtr_mapping);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new TiltInput.AxisMapping(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(TiltInput.NativeFieldInfoPtr_mapping), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x170031A7 RID: 12711
		// (get) Token: 0x060092AB RID: 37547 RVA: 0x0025C038 File Offset: 0x0025A238
		// (set) Token: 0x060092AC RID: 37548 RVA: 0x0025C060 File Offset: 0x0025A260
		public unsafe TiltInput.AxisOptions tiltAroundAxis
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TiltInput.NativeFieldInfoPtr_tiltAroundAxis);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TiltInput.NativeFieldInfoPtr_tiltAroundAxis)) = value;
			}
		}

		// Token: 0x170031A8 RID: 12712
		// (get) Token: 0x060092AD RID: 37549 RVA: 0x0025C084 File Offset: 0x0025A284
		// (set) Token: 0x060092AE RID: 37550 RVA: 0x0025C0AC File Offset: 0x0025A2AC
		public unsafe float fullTiltAngle
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TiltInput.NativeFieldInfoPtr_fullTiltAngle);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TiltInput.NativeFieldInfoPtr_fullTiltAngle)) = value;
			}
		}

		// Token: 0x170031A9 RID: 12713
		// (get) Token: 0x060092AF RID: 37551 RVA: 0x0025C0D0 File Offset: 0x0025A2D0
		// (set) Token: 0x060092B0 RID: 37552 RVA: 0x0025C0F8 File Offset: 0x0025A2F8
		public unsafe float centreAngleOffset
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TiltInput.NativeFieldInfoPtr_centreAngleOffset);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TiltInput.NativeFieldInfoPtr_centreAngleOffset)) = value;
			}
		}

		// Token: 0x170031AA RID: 12714
		// (get) Token: 0x060092B1 RID: 37553 RVA: 0x0025C11C File Offset: 0x0025A31C
		// (set) Token: 0x060092B2 RID: 37554 RVA: 0x0025C150 File Offset: 0x0025A350
		public unsafe CrossPlatformInputManager.VirtualAxis m_SteerAxis
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TiltInput.NativeFieldInfoPtr_m_SteerAxis);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new CrossPlatformInputManager.VirtualAxis(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(TiltInput.NativeFieldInfoPtr_m_SteerAxis), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x040061C9 RID: 25033
		private static readonly IntPtr NativeFieldInfoPtr_mapping;

		// Token: 0x040061CA RID: 25034
		private static readonly IntPtr NativeFieldInfoPtr_tiltAroundAxis;

		// Token: 0x040061CB RID: 25035
		private static readonly IntPtr NativeFieldInfoPtr_fullTiltAngle;

		// Token: 0x040061CC RID: 25036
		private static readonly IntPtr NativeFieldInfoPtr_centreAngleOffset;

		// Token: 0x040061CD RID: 25037
		private static readonly IntPtr NativeFieldInfoPtr_m_SteerAxis;

		// Token: 0x040061CE RID: 25038
		private static readonly IntPtr NativeMethodInfoPtr_OnEnable_Private_Void_0;

		// Token: 0x040061CF RID: 25039
		private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;

		// Token: 0x040061D0 RID: 25040
		private static readonly IntPtr NativeMethodInfoPtr_OnDisable_Private_Void_0;

		// Token: 0x040061D1 RID: 25041
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

		// Token: 0x02000510 RID: 1296
		public enum AxisOptions
		{
			// Token: 0x040061D3 RID: 25043
			ForwardAxis,
			// Token: 0x040061D4 RID: 25044
			SidewaysAxis
		}

		// Token: 0x02000511 RID: 1297
		[Serializable]
		public class AxisMapping : Il2CppSystem.Object
		{
			// Token: 0x060092B3 RID: 37555 RVA: 0x0025C178 File Offset: 0x0025A378
			[CallerCount(1642)]
			[CachedScanResults(RefRangeStart = 7417, RefRangeEnd = 9059, XrefRangeStart = 7417, XrefRangeEnd = 9059, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
			public unsafe AxisMapping()
				: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<TiltInput.AxisMapping>.NativeClassPtr))
			{
				IntPtr* ptr = null;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(TiltInput.AxisMapping.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}

			// Token: 0x060092B4 RID: 37556 RVA: 0x0025C1C4 File Offset: 0x0025A3C4
			// Note: this type is marked as 'beforefieldinit'.
			static AxisMapping()
			{
				Il2CppClassPointerStore<TiltInput.AxisMapping>.NativeClassPtr = IL2CPP.GetIl2CppNestedType(Il2CppClassPointerStore<TiltInput>.NativeClassPtr, "AxisMapping");
				IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<TiltInput.AxisMapping>.NativeClassPtr);
				TiltInput.AxisMapping.NativeFieldInfoPtr_type = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TiltInput.AxisMapping>.NativeClassPtr, "type");
				TiltInput.AxisMapping.NativeFieldInfoPtr_axisName = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TiltInput.AxisMapping>.NativeClassPtr, "axisName");
				TiltInput.AxisMapping.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TiltInput.AxisMapping>.NativeClassPtr, 100674717);
			}

			// Token: 0x060092B5 RID: 37557 RVA: 0x0000A688 File Offset: 0x00008888
			public AxisMapping(IntPtr pointer)
				: base(pointer)
			{
			}

			// Token: 0x170031AB RID: 12715
			// (get) Token: 0x060092B6 RID: 37558 RVA: 0x0025C22C File Offset: 0x0025A42C
			// (set) Token: 0x060092B7 RID: 37559 RVA: 0x0025C254 File Offset: 0x0025A454
			public unsafe TiltInput.AxisMapping.MappingType type
			{
				get
				{
					IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TiltInput.AxisMapping.NativeFieldInfoPtr_type);
					return *intPtr;
				}
				set
				{
					*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TiltInput.AxisMapping.NativeFieldInfoPtr_type)) = value;
				}
			}

			// Token: 0x170031AC RID: 12716
			// (get) Token: 0x060092B8 RID: 37560 RVA: 0x0025C278 File Offset: 0x0025A478
			// (set) Token: 0x060092B9 RID: 37561 RVA: 0x0025C2A1 File Offset: 0x0025A4A1
			public unsafe string axisName
			{
				get
				{
					IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TiltInput.AxisMapping.NativeFieldInfoPtr_axisName);
					return IL2CPP.Il2CppStringToManaged(*intPtr);
				}
				set
				{
					IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
					IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(TiltInput.AxisMapping.NativeFieldInfoPtr_axisName), IL2CPP.ManagedStringToIl2Cpp(value));
				}
			}

			// Token: 0x040061D5 RID: 25045
			private static readonly IntPtr NativeFieldInfoPtr_type;

			// Token: 0x040061D6 RID: 25046
			private static readonly IntPtr NativeFieldInfoPtr_axisName;

			// Token: 0x040061D7 RID: 25047
			private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

			// Token: 0x02000512 RID: 1298
			public enum MappingType
			{
				// Token: 0x040061D9 RID: 25049
				NamedAxis,
				// Token: 0x040061DA RID: 25050
				MousePositionX,
				// Token: 0x040061DB RID: 25051
				MousePositionY,
				// Token: 0x040061DC RID: 25052
				MousePositionZ
			}
		}
	}
}
