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

namespace Obi.CrossPlatformInput
{
	// Token: 0x02000506 RID: 1286
	public class ButtonHandler : MonoBehaviour
	{
		// Token: 0x06009222 RID: 37410 RVA: 0x0025989C File Offset: 0x00257A9C
		[CallerCount(5585)]
		[CachedScanResults(RefRangeStart = 24, RefRangeEnd = 5609, XrefRangeStart = 24, XrefRangeEnd = 5609, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnEnable()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ButtonHandler.NativeMethodInfoPtr_OnEnable_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009223 RID: 37411 RVA: 0x002598E0 File Offset: 0x00257AE0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 613732, XrefRangeEnd = 613736, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void SetDownState()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ButtonHandler.NativeMethodInfoPtr_SetDownState_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009224 RID: 37412 RVA: 0x00259924 File Offset: 0x00257B24
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 613736, XrefRangeEnd = 613740, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void SetUpState()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ButtonHandler.NativeMethodInfoPtr_SetUpState_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009225 RID: 37413 RVA: 0x00259968 File Offset: 0x00257B68
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 613740, XrefRangeEnd = 613744, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void SetAxisPositiveState()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ButtonHandler.NativeMethodInfoPtr_SetAxisPositiveState_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009226 RID: 37414 RVA: 0x002599AC File Offset: 0x00257BAC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 613744, XrefRangeEnd = 613748, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void SetAxisNeutralState()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ButtonHandler.NativeMethodInfoPtr_SetAxisNeutralState_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009227 RID: 37415 RVA: 0x002599F0 File Offset: 0x00257BF0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 613748, XrefRangeEnd = 613752, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void SetAxisNegativeState()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ButtonHandler.NativeMethodInfoPtr_SetAxisNegativeState_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009228 RID: 37416 RVA: 0x00259A34 File Offset: 0x00257C34
		[CallerCount(5585)]
		[CachedScanResults(RefRangeStart = 24, RefRangeEnd = 5609, XrefRangeStart = 24, XrefRangeEnd = 5609, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Update()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ButtonHandler.NativeMethodInfoPtr_Update_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009229 RID: 37417 RVA: 0x00259A78 File Offset: 0x00257C78
		[CallerCount(63)]
		[CachedScanResults(RefRangeStart = 222154, RefRangeEnd = 222217, XrefRangeStart = 222154, XrefRangeEnd = 222217, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe ButtonHandler()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<ButtonHandler>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ButtonHandler.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600922A RID: 37418 RVA: 0x00259AC4 File Offset: 0x00257CC4
		// Note: this type is marked as 'beforefieldinit'.
		static ButtonHandler()
		{
			Il2CppClassPointerStore<ButtonHandler>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "Obi.CrossPlatformInput", "ButtonHandler");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ButtonHandler>.NativeClassPtr);
			ButtonHandler.NativeFieldInfoPtr_Name = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ButtonHandler>.NativeClassPtr, "Name");
			ButtonHandler.NativeMethodInfoPtr_OnEnable_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ButtonHandler>.NativeClassPtr, 100674641);
			ButtonHandler.NativeMethodInfoPtr_SetDownState_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ButtonHandler>.NativeClassPtr, 100674642);
			ButtonHandler.NativeMethodInfoPtr_SetUpState_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ButtonHandler>.NativeClassPtr, 100674643);
			ButtonHandler.NativeMethodInfoPtr_SetAxisPositiveState_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ButtonHandler>.NativeClassPtr, 100674644);
			ButtonHandler.NativeMethodInfoPtr_SetAxisNeutralState_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ButtonHandler>.NativeClassPtr, 100674645);
			ButtonHandler.NativeMethodInfoPtr_SetAxisNegativeState_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ButtonHandler>.NativeClassPtr, 100674646);
			ButtonHandler.NativeMethodInfoPtr_Update_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ButtonHandler>.NativeClassPtr, 100674647);
			ButtonHandler.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ButtonHandler>.NativeClassPtr, 100674648);
		}

		// Token: 0x0600922B RID: 37419 RVA: 0x0000351C File Offset: 0x0000171C
		public ButtonHandler(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17003186 RID: 12678
		// (get) Token: 0x0600922C RID: 37420 RVA: 0x00259BA8 File Offset: 0x00257DA8
		// (set) Token: 0x0600922D RID: 37421 RVA: 0x00259BD1 File Offset: 0x00257DD1
		public unsafe string Name
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ButtonHandler.NativeFieldInfoPtr_Name);
				return IL2CPP.Il2CppStringToManaged(*intPtr);
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(ButtonHandler.NativeFieldInfoPtr_Name), IL2CPP.ManagedStringToIl2Cpp(value));
			}
		}

		// Token: 0x04006165 RID: 24933
		private static readonly IntPtr NativeFieldInfoPtr_Name;

		// Token: 0x04006166 RID: 24934
		private static readonly IntPtr NativeMethodInfoPtr_OnEnable_Private_Void_0;

		// Token: 0x04006167 RID: 24935
		private static readonly IntPtr NativeMethodInfoPtr_SetDownState_Public_Void_0;

		// Token: 0x04006168 RID: 24936
		private static readonly IntPtr NativeMethodInfoPtr_SetUpState_Public_Void_0;

		// Token: 0x04006169 RID: 24937
		private static readonly IntPtr NativeMethodInfoPtr_SetAxisPositiveState_Public_Void_0;

		// Token: 0x0400616A RID: 24938
		private static readonly IntPtr NativeMethodInfoPtr_SetAxisNeutralState_Public_Void_0;

		// Token: 0x0400616B RID: 24939
		private static readonly IntPtr NativeMethodInfoPtr_SetAxisNegativeState_Public_Void_0;

		// Token: 0x0400616C RID: 24940
		private static readonly IntPtr NativeMethodInfoPtr_Update_Public_Void_0;

		// Token: 0x0400616D RID: 24941
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
