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

namespace Obi.CrossPlatformInput
{
	// Token: 0x0200055E RID: 1374
	public class ButtonHandler : MonoBehaviour
	{
		// Token: 0x06009A75 RID: 39541 RVA: 0x0027C5D8 File Offset: 0x0027A7D8
		[CallerCount(5874)]
		[CachedScanResults(RefRangeStart = 24, RefRangeEnd = 5898, XrefRangeStart = 24, XrefRangeEnd = 5898, 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: 0x06009A76 RID: 39542 RVA: 0x0027C61C File Offset: 0x0027A81C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 646042, XrefRangeEnd = 646046, 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: 0x06009A77 RID: 39543 RVA: 0x0027C660 File Offset: 0x0027A860
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 646046, XrefRangeEnd = 646050, 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: 0x06009A78 RID: 39544 RVA: 0x0027C6A4 File Offset: 0x0027A8A4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 646050, XrefRangeEnd = 646054, 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: 0x06009A79 RID: 39545 RVA: 0x0027C6E8 File Offset: 0x0027A8E8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 646054, XrefRangeEnd = 646058, 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: 0x06009A7A RID: 39546 RVA: 0x0027C72C File Offset: 0x0027A92C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 646058, XrefRangeEnd = 646062, 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: 0x06009A7B RID: 39547 RVA: 0x0027C770 File Offset: 0x0027A970
		[CallerCount(5874)]
		[CachedScanResults(RefRangeStart = 24, RefRangeEnd = 5898, XrefRangeStart = 24, XrefRangeEnd = 5898, 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: 0x06009A7C RID: 39548 RVA: 0x0027C7B4 File Offset: 0x0027A9B4
		[CallerCount(67)]
		[CachedScanResults(RefRangeStart = 166362, RefRangeEnd = 166429, XrefRangeStart = 166362, XrefRangeEnd = 166429, 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: 0x06009A7D RID: 39549 RVA: 0x0027C800 File Offset: 0x0027AA00
		// 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, 100675354);
			ButtonHandler.NativeMethodInfoPtr_SetDownState_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ButtonHandler>.NativeClassPtr, 100675355);
			ButtonHandler.NativeMethodInfoPtr_SetUpState_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ButtonHandler>.NativeClassPtr, 100675356);
			ButtonHandler.NativeMethodInfoPtr_SetAxisPositiveState_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ButtonHandler>.NativeClassPtr, 100675357);
			ButtonHandler.NativeMethodInfoPtr_SetAxisNeutralState_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ButtonHandler>.NativeClassPtr, 100675358);
			ButtonHandler.NativeMethodInfoPtr_SetAxisNegativeState_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ButtonHandler>.NativeClassPtr, 100675359);
			ButtonHandler.NativeMethodInfoPtr_Update_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ButtonHandler>.NativeClassPtr, 100675360);
			ButtonHandler.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ButtonHandler>.NativeClassPtr, 100675361);
		}

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

		// Token: 0x17003421 RID: 13345
		// (get) Token: 0x06009A7F RID: 39551 RVA: 0x0027C8E4 File Offset: 0x0027AAE4
		// (set) Token: 0x06009A80 RID: 39552 RVA: 0x0027C90D File Offset: 0x0027AB0D
		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: 0x0400670E RID: 26382
		private static readonly IntPtr NativeFieldInfoPtr_Name;

		// Token: 0x0400670F RID: 26383
		private static readonly IntPtr NativeMethodInfoPtr_OnEnable_Private_Void_0;

		// Token: 0x04006710 RID: 26384
		private static readonly IntPtr NativeMethodInfoPtr_SetDownState_Public_Void_0;

		// Token: 0x04006711 RID: 26385
		private static readonly IntPtr NativeMethodInfoPtr_SetUpState_Public_Void_0;

		// Token: 0x04006712 RID: 26386
		private static readonly IntPtr NativeMethodInfoPtr_SetAxisPositiveState_Public_Void_0;

		// Token: 0x04006713 RID: 26387
		private static readonly IntPtr NativeMethodInfoPtr_SetAxisNeutralState_Public_Void_0;

		// Token: 0x04006714 RID: 26388
		private static readonly IntPtr NativeMethodInfoPtr_SetAxisNegativeState_Public_Void_0;

		// Token: 0x04006715 RID: 26389
		private static readonly IntPtr NativeMethodInfoPtr_Update_Public_Void_0;

		// Token: 0x04006716 RID: 26390
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
