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

namespace Obi.CrossPlatformInput.PlatformSpecific
{
	// Token: 0x02000518 RID: 1304
	public class StandaloneInput : VirtualInput
	{
		// Token: 0x0600931B RID: 37659 RVA: 0x0025E15C File Offset: 0x0025C35C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 614336, XrefRangeEnd = 614337, 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: 0x0600931C RID: 37660 RVA: 0x0025E1E4 File Offset: 0x0025C3E4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 614337, XrefRangeEnd = 614338, 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: 0x0600931D RID: 37661 RVA: 0x0025E258 File Offset: 0x0025C458
		[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: 0x0600931E RID: 37662 RVA: 0x0025E2CC File Offset: 0x0025C4CC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 614338, XrefRangeEnd = 614339, 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: 0x0600931F RID: 37663 RVA: 0x0025E340 File Offset: 0x0025C540
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 614339, XrefRangeEnd = 614345, 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: 0x06009320 RID: 37664 RVA: 0x0025E3A4 File Offset: 0x0025C5A4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 614345, XrefRangeEnd = 614351, 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: 0x06009321 RID: 37665 RVA: 0x0025E408 File Offset: 0x0025C608
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 614351, XrefRangeEnd = 614357, 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: 0x06009322 RID: 37666 RVA: 0x0025E46C File Offset: 0x0025C66C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 614357, XrefRangeEnd = 614363, 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: 0x06009323 RID: 37667 RVA: 0x0025E4D0 File Offset: 0x0025C6D0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 614363, XrefRangeEnd = 614369, 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: 0x06009324 RID: 37668 RVA: 0x0025E534 File Offset: 0x0025C734
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 614369, XrefRangeEnd = 614375, 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: 0x06009325 RID: 37669 RVA: 0x0025E5AC File Offset: 0x0025C7AC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 614375, XrefRangeEnd = 614376, 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: 0x06009326 RID: 37670 RVA: 0x0025E608 File Offset: 0x0025C808
		[CallerCount(2)]
		[CachedScanResults(RefRangeStart = 614334, RefRangeEnd = 614336, XrefRangeStart = 614334, XrefRangeEnd = 614336, 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: 0x06009327 RID: 37671 RVA: 0x0025E654 File Offset: 0x0025C854
		// 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, 100674765);
			StandaloneInput.NativeMethodInfoPtr_GetButton_Public_Virtual_Boolean_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<StandaloneInput>.NativeClassPtr, 100674766);
			StandaloneInput.NativeMethodInfoPtr_GetButtonDown_Public_Virtual_Boolean_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<StandaloneInput>.NativeClassPtr, 100674767);
			StandaloneInput.NativeMethodInfoPtr_GetButtonUp_Public_Virtual_Boolean_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<StandaloneInput>.NativeClassPtr, 100674768);
			StandaloneInput.NativeMethodInfoPtr_SetButtonDown_Public_Virtual_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<StandaloneInput>.NativeClassPtr, 100674769);
			StandaloneInput.NativeMethodInfoPtr_SetButtonUp_Public_Virtual_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<StandaloneInput>.NativeClassPtr, 100674770);
			StandaloneInput.NativeMethodInfoPtr_SetAxisPositive_Public_Virtual_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<StandaloneInput>.NativeClassPtr, 100674771);
			StandaloneInput.NativeMethodInfoPtr_SetAxisNegative_Public_Virtual_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<StandaloneInput>.NativeClassPtr, 100674772);
			StandaloneInput.NativeMethodInfoPtr_SetAxisZero_Public_Virtual_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<StandaloneInput>.NativeClassPtr, 100674773);
			StandaloneInput.NativeMethodInfoPtr_SetAxis_Public_Virtual_Void_String_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<StandaloneInput>.NativeClassPtr, 100674774);
			StandaloneInput.NativeMethodInfoPtr_MousePosition_Public_Virtual_Vector3_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<StandaloneInput>.NativeClassPtr, 100674775);
			StandaloneInput.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<StandaloneInput>.NativeClassPtr, 100674776);
		}

		// Token: 0x06009328 RID: 37672 RVA: 0x0025E150 File Offset: 0x0025C350
		public StandaloneInput(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x0400622A RID: 25130
		private static readonly IntPtr NativeMethodInfoPtr_GetAxis_Public_Virtual_Single_String_Boolean_0;

		// Token: 0x0400622B RID: 25131
		private static readonly IntPtr NativeMethodInfoPtr_GetButton_Public_Virtual_Boolean_String_0;

		// Token: 0x0400622C RID: 25132
		private static readonly IntPtr NativeMethodInfoPtr_GetButtonDown_Public_Virtual_Boolean_String_0;

		// Token: 0x0400622D RID: 25133
		private static readonly IntPtr NativeMethodInfoPtr_GetButtonUp_Public_Virtual_Boolean_String_0;

		// Token: 0x0400622E RID: 25134
		private static readonly IntPtr NativeMethodInfoPtr_SetButtonDown_Public_Virtual_Void_String_0;

		// Token: 0x0400622F RID: 25135
		private static readonly IntPtr NativeMethodInfoPtr_SetButtonUp_Public_Virtual_Void_String_0;

		// Token: 0x04006230 RID: 25136
		private static readonly IntPtr NativeMethodInfoPtr_SetAxisPositive_Public_Virtual_Void_String_0;

		// Token: 0x04006231 RID: 25137
		private static readonly IntPtr NativeMethodInfoPtr_SetAxisNegative_Public_Virtual_Void_String_0;

		// Token: 0x04006232 RID: 25138
		private static readonly IntPtr NativeMethodInfoPtr_SetAxisZero_Public_Virtual_Void_String_0;

		// Token: 0x04006233 RID: 25139
		private static readonly IntPtr NativeMethodInfoPtr_SetAxis_Public_Virtual_Void_String_Single_0;

		// Token: 0x04006234 RID: 25140
		private static readonly IntPtr NativeMethodInfoPtr_MousePosition_Public_Virtual_Vector3_0;

		// Token: 0x04006235 RID: 25141
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
