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

namespace Obi.CrossPlatformInput.PlatformSpecific
{
	// Token: 0x02000570 RID: 1392
	public class StandaloneInput : VirtualInput
	{
		// Token: 0x06009B6E RID: 39790 RVA: 0x00280E98 File Offset: 0x0027F098
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 646646, XrefRangeEnd = 646647, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override float GetAxis(string name, bool raw)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.ManagedStringToIl2Cpp(name);
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref raw;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), StandaloneInput.NativeMethodInfoPtr_GetAxis_Public_Virtual_Single_String_Boolean_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}

		// Token: 0x06009B6F RID: 39791 RVA: 0x00280F20 File Offset: 0x0027F120
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 646647, XrefRangeEnd = 646648, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override bool GetButton(string name)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.ManagedStringToIl2Cpp(name);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), StandaloneInput.NativeMethodInfoPtr_GetButton_Public_Virtual_Boolean_String_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				return *IL2CPP.il2cpp_object_unbox(intPtr);
			}
		}

		// Token: 0x06009B70 RID: 39792 RVA: 0x00280F94 File Offset: 0x0027F194
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 0, XrefRangeEnd = 0, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override bool GetButtonDown(string name)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.ManagedStringToIl2Cpp(name);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), StandaloneInput.NativeMethodInfoPtr_GetButtonDown_Public_Virtual_Boolean_String_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				return *IL2CPP.il2cpp_object_unbox(intPtr);
			}
		}

		// Token: 0x06009B71 RID: 39793 RVA: 0x00281008 File Offset: 0x0027F208
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 646648, XrefRangeEnd = 646649, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override bool GetButtonUp(string name)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.ManagedStringToIl2Cpp(name);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), StandaloneInput.NativeMethodInfoPtr_GetButtonUp_Public_Virtual_Boolean_String_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				return *IL2CPP.il2cpp_object_unbox(intPtr);
			}
		}

		// Token: 0x06009B72 RID: 39794 RVA: 0x0028107C File Offset: 0x0027F27C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 646649, XrefRangeEnd = 646655, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override void SetButtonDown(string name)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.ManagedStringToIl2Cpp(name);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), StandaloneInput.NativeMethodInfoPtr_SetButtonDown_Public_Virtual_Void_String_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x06009B73 RID: 39795 RVA: 0x002810E0 File Offset: 0x0027F2E0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 646655, XrefRangeEnd = 646661, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override void SetButtonUp(string name)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.ManagedStringToIl2Cpp(name);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), StandaloneInput.NativeMethodInfoPtr_SetButtonUp_Public_Virtual_Void_String_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x06009B74 RID: 39796 RVA: 0x00281144 File Offset: 0x0027F344
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 646661, XrefRangeEnd = 646667, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override void SetAxisPositive(string name)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.ManagedStringToIl2Cpp(name);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), StandaloneInput.NativeMethodInfoPtr_SetAxisPositive_Public_Virtual_Void_String_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x06009B75 RID: 39797 RVA: 0x002811A8 File Offset: 0x0027F3A8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 646667, XrefRangeEnd = 646673, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override void SetAxisNegative(string name)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.ManagedStringToIl2Cpp(name);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), StandaloneInput.NativeMethodInfoPtr_SetAxisNegative_Public_Virtual_Void_String_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x06009B76 RID: 39798 RVA: 0x0028120C File Offset: 0x0027F40C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 646673, XrefRangeEnd = 646679, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override void SetAxisZero(string name)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.ManagedStringToIl2Cpp(name);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), StandaloneInput.NativeMethodInfoPtr_SetAxisZero_Public_Virtual_Void_String_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x06009B77 RID: 39799 RVA: 0x00281270 File Offset: 0x0027F470
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 646679, XrefRangeEnd = 646685, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override void SetAxis(string name, float value)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.ManagedStringToIl2Cpp(name);
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref value;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), StandaloneInput.NativeMethodInfoPtr_SetAxis_Public_Virtual_Void_String_Single_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009B78 RID: 39800 RVA: 0x002812E8 File Offset: 0x0027F4E8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 646685, XrefRangeEnd = 646686, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override Vector3 MousePosition()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), StandaloneInput.NativeMethodInfoPtr_MousePosition_Public_Virtual_Vector3_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}

		// Token: 0x06009B79 RID: 39801 RVA: 0x00281344 File Offset: 0x0027F544
		[CallerCount(2)]
		[CachedScanResults(RefRangeStart = 646644, RefRangeEnd = 646646, XrefRangeStart = 646644, XrefRangeEnd = 646646, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe StandaloneInput()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<StandaloneInput>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(StandaloneInput.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009B7A RID: 39802 RVA: 0x00281390 File Offset: 0x0027F590
		// Note: this type is marked as 'beforefieldinit'.
		static StandaloneInput()
		{
			Il2CppClassPointerStore<StandaloneInput>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "Obi.CrossPlatformInput.PlatformSpecific", "StandaloneInput");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<StandaloneInput>.NativeClassPtr);
			StandaloneInput.NativeMethodInfoPtr_GetAxis_Public_Virtual_Single_String_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<StandaloneInput>.NativeClassPtr, 100675478);
			StandaloneInput.NativeMethodInfoPtr_GetButton_Public_Virtual_Boolean_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<StandaloneInput>.NativeClassPtr, 100675479);
			StandaloneInput.NativeMethodInfoPtr_GetButtonDown_Public_Virtual_Boolean_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<StandaloneInput>.NativeClassPtr, 100675480);
			StandaloneInput.NativeMethodInfoPtr_GetButtonUp_Public_Virtual_Boolean_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<StandaloneInput>.NativeClassPtr, 100675481);
			StandaloneInput.NativeMethodInfoPtr_SetButtonDown_Public_Virtual_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<StandaloneInput>.NativeClassPtr, 100675482);
			StandaloneInput.NativeMethodInfoPtr_SetButtonUp_Public_Virtual_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<StandaloneInput>.NativeClassPtr, 100675483);
			StandaloneInput.NativeMethodInfoPtr_SetAxisPositive_Public_Virtual_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<StandaloneInput>.NativeClassPtr, 100675484);
			StandaloneInput.NativeMethodInfoPtr_SetAxisNegative_Public_Virtual_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<StandaloneInput>.NativeClassPtr, 100675485);
			StandaloneInput.NativeMethodInfoPtr_SetAxisZero_Public_Virtual_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<StandaloneInput>.NativeClassPtr, 100675486);
			StandaloneInput.NativeMethodInfoPtr_SetAxis_Public_Virtual_Void_String_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<StandaloneInput>.NativeClassPtr, 100675487);
			StandaloneInput.NativeMethodInfoPtr_MousePosition_Public_Virtual_Vector3_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<StandaloneInput>.NativeClassPtr, 100675488);
			StandaloneInput.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<StandaloneInput>.NativeClassPtr, 100675489);
		}

		// Token: 0x06009B7B RID: 39803 RVA: 0x00280E8C File Offset: 0x0027F08C
		public StandaloneInput(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x040067D3 RID: 26579
		private static readonly IntPtr NativeMethodInfoPtr_GetAxis_Public_Virtual_Single_String_Boolean_0;

		// Token: 0x040067D4 RID: 26580
		private static readonly IntPtr NativeMethodInfoPtr_GetButton_Public_Virtual_Boolean_String_0;

		// Token: 0x040067D5 RID: 26581
		private static readonly IntPtr NativeMethodInfoPtr_GetButtonDown_Public_Virtual_Boolean_String_0;

		// Token: 0x040067D6 RID: 26582
		private static readonly IntPtr NativeMethodInfoPtr_GetButtonUp_Public_Virtual_Boolean_String_0;

		// Token: 0x040067D7 RID: 26583
		private static readonly IntPtr NativeMethodInfoPtr_SetButtonDown_Public_Virtual_Void_String_0;

		// Token: 0x040067D8 RID: 26584
		private static readonly IntPtr NativeMethodInfoPtr_SetButtonUp_Public_Virtual_Void_String_0;

		// Token: 0x040067D9 RID: 26585
		private static readonly IntPtr NativeMethodInfoPtr_SetAxisPositive_Public_Virtual_Void_String_0;

		// Token: 0x040067DA RID: 26586
		private static readonly IntPtr NativeMethodInfoPtr_SetAxisNegative_Public_Virtual_Void_String_0;

		// Token: 0x040067DB RID: 26587
		private static readonly IntPtr NativeMethodInfoPtr_SetAxisZero_Public_Virtual_Void_String_0;

		// Token: 0x040067DC RID: 26588
		private static readonly IntPtr NativeMethodInfoPtr_SetAxis_Public_Virtual_Void_String_Single_0;

		// Token: 0x040067DD RID: 26589
		private static readonly IntPtr NativeMethodInfoPtr_MousePosition_Public_Virtual_Vector3_0;

		// Token: 0x040067DE RID: 26590
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
