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

namespace Obi.CrossPlatformInput
{
	// Token: 0x02000567 RID: 1383
	public class TiltInput : MonoBehaviour
	{
		// Token: 0x06009AF6 RID: 39670 RVA: 0x0027EB1C File Offset: 0x0027CD1C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 646373, XrefRangeEnd = 646382, 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: 0x06009AF7 RID: 39671 RVA: 0x0027EB60 File Offset: 0x0027CD60
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 646382, XrefRangeEnd = 646397, 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: 0x06009AF8 RID: 39672 RVA: 0x0027EBA4 File Offset: 0x0027CDA4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 646397, XrefRangeEnd = 646399, 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: 0x06009AF9 RID: 39673 RVA: 0x0027EBE8 File Offset: 0x0027CDE8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 646399, XrefRangeEnd = 646400, 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: 0x06009AFA RID: 39674 RVA: 0x0027EC34 File Offset: 0x0027CE34
		// 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, 100675426);
			TiltInput.NativeMethodInfoPtr_Update_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TiltInput>.NativeClassPtr, 100675427);
			TiltInput.NativeMethodInfoPtr_OnDisable_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TiltInput>.NativeClassPtr, 100675428);
			TiltInput.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TiltInput>.NativeClassPtr, 100675429);
		}

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

		// Token: 0x17003441 RID: 13377
		// (get) Token: 0x06009AFC RID: 39676 RVA: 0x0027ED18 File Offset: 0x0027CF18
		// (set) Token: 0x06009AFD RID: 39677 RVA: 0x0027ED4C File Offset: 0x0027CF4C
		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: 0x17003442 RID: 13378
		// (get) Token: 0x06009AFE RID: 39678 RVA: 0x0027ED74 File Offset: 0x0027CF74
		// (set) Token: 0x06009AFF RID: 39679 RVA: 0x0027ED9C File Offset: 0x0027CF9C
		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: 0x17003443 RID: 13379
		// (get) Token: 0x06009B00 RID: 39680 RVA: 0x0027EDC0 File Offset: 0x0027CFC0
		// (set) Token: 0x06009B01 RID: 39681 RVA: 0x0027EDE8 File Offset: 0x0027CFE8
		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: 0x17003444 RID: 13380
		// (get) Token: 0x06009B02 RID: 39682 RVA: 0x0027EE0C File Offset: 0x0027D00C
		// (set) Token: 0x06009B03 RID: 39683 RVA: 0x0027EE34 File Offset: 0x0027D034
		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: 0x17003445 RID: 13381
		// (get) Token: 0x06009B04 RID: 39684 RVA: 0x0027EE58 File Offset: 0x0027D058
		// (set) Token: 0x06009B05 RID: 39685 RVA: 0x0027EE8C File Offset: 0x0027D08C
		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: 0x04006772 RID: 26482
		private static readonly IntPtr NativeFieldInfoPtr_mapping;

		// Token: 0x04006773 RID: 26483
		private static readonly IntPtr NativeFieldInfoPtr_tiltAroundAxis;

		// Token: 0x04006774 RID: 26484
		private static readonly IntPtr NativeFieldInfoPtr_fullTiltAngle;

		// Token: 0x04006775 RID: 26485
		private static readonly IntPtr NativeFieldInfoPtr_centreAngleOffset;

		// Token: 0x04006776 RID: 26486
		private static readonly IntPtr NativeFieldInfoPtr_m_SteerAxis;

		// Token: 0x04006777 RID: 26487
		private static readonly IntPtr NativeMethodInfoPtr_OnEnable_Private_Void_0;

		// Token: 0x04006778 RID: 26488
		private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;

		// Token: 0x04006779 RID: 26489
		private static readonly IntPtr NativeMethodInfoPtr_OnDisable_Private_Void_0;

		// Token: 0x0400677A RID: 26490
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

		// Token: 0x02000568 RID: 1384
		public enum AxisOptions
		{
			// Token: 0x0400677C RID: 26492
			ForwardAxis,
			// Token: 0x0400677D RID: 26493
			SidewaysAxis
		}

		// Token: 0x02000569 RID: 1385
		[Serializable]
		public class AxisMapping : Il2CppSystem.Object
		{
			// Token: 0x06009B06 RID: 39686 RVA: 0x0027EEB4 File Offset: 0x0027D0B4
			[CallerCount(1664)]
			[CachedScanResults(RefRangeStart = 7711, RefRangeEnd = 9375, XrefRangeStart = 7711, XrefRangeEnd = 9375, 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: 0x06009B07 RID: 39687 RVA: 0x0027EF00 File Offset: 0x0027D100
			// 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, 100675430);
			}

			// Token: 0x06009B08 RID: 39688 RVA: 0x0000A74C File Offset: 0x0000894C
			public AxisMapping(IntPtr pointer)
				: base(pointer)
			{
			}

			// Token: 0x17003446 RID: 13382
			// (get) Token: 0x06009B09 RID: 39689 RVA: 0x0027EF68 File Offset: 0x0027D168
			// (set) Token: 0x06009B0A RID: 39690 RVA: 0x0027EF90 File Offset: 0x0027D190
			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: 0x17003447 RID: 13383
			// (get) Token: 0x06009B0B RID: 39691 RVA: 0x0027EFB4 File Offset: 0x0027D1B4
			// (set) Token: 0x06009B0C RID: 39692 RVA: 0x0027EFDD File Offset: 0x0027D1DD
			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: 0x0400677E RID: 26494
			private static readonly IntPtr NativeFieldInfoPtr_type;

			// Token: 0x0400677F RID: 26495
			private static readonly IntPtr NativeFieldInfoPtr_axisName;

			// Token: 0x04006780 RID: 26496
			private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

			// Token: 0x0200056A RID: 1386
			public enum MappingType
			{
				// Token: 0x04006782 RID: 26498
				NamedAxis,
				// Token: 0x04006783 RID: 26499
				MousePositionX,
				// Token: 0x04006784 RID: 26500
				MousePositionY,
				// Token: 0x04006785 RID: 26501
				MousePositionZ
			}
		}
	}
}
