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

namespace Obi.CrossPlatformInput
{
	// Token: 0x02000563 RID: 1379
	public class InputAxisScrollbar : MonoBehaviour
	{
		// Token: 0x06009ACB RID: 39627 RVA: 0x0027E038 File Offset: 0x0027C238
		[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(InputAxisScrollbar.NativeMethodInfoPtr_Update_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009ACC RID: 39628 RVA: 0x0027E07C File Offset: 0x0027C27C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 646286, XrefRangeEnd = 646292, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void HandleInput(float value)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref value;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(InputAxisScrollbar.NativeMethodInfoPtr_HandleInput_Public_Void_Single_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x06009ACD RID: 39629 RVA: 0x0027E0D0 File Offset: 0x0027C2D0
		[CallerCount(67)]
		[CachedScanResults(RefRangeStart = 166362, RefRangeEnd = 166429, XrefRangeStart = 166362, XrefRangeEnd = 166429, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe InputAxisScrollbar()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<InputAxisScrollbar>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(InputAxisScrollbar.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009ACE RID: 39630 RVA: 0x0027E11C File Offset: 0x0027C31C
		// Note: this type is marked as 'beforefieldinit'.
		static InputAxisScrollbar()
		{
			Il2CppClassPointerStore<InputAxisScrollbar>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "Obi.CrossPlatformInput", "InputAxisScrollbar");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<InputAxisScrollbar>.NativeClassPtr);
			InputAxisScrollbar.NativeFieldInfoPtr_axis = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<InputAxisScrollbar>.NativeClassPtr, "axis");
			InputAxisScrollbar.NativeMethodInfoPtr_Update_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<InputAxisScrollbar>.NativeClassPtr, 100675409);
			InputAxisScrollbar.NativeMethodInfoPtr_HandleInput_Public_Void_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<InputAxisScrollbar>.NativeClassPtr, 100675410);
			InputAxisScrollbar.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<InputAxisScrollbar>.NativeClassPtr, 100675411);
		}

		// Token: 0x06009ACF RID: 39631 RVA: 0x0000351C File Offset: 0x0000171C
		public InputAxisScrollbar(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17003437 RID: 13367
		// (get) Token: 0x06009AD0 RID: 39632 RVA: 0x0027E19C File Offset: 0x0027C39C
		// (set) Token: 0x06009AD1 RID: 39633 RVA: 0x0027E1C5 File Offset: 0x0027C3C5
		public unsafe string axis
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(InputAxisScrollbar.NativeFieldInfoPtr_axis);
				return IL2CPP.Il2CppStringToManaged(*intPtr);
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(InputAxisScrollbar.NativeFieldInfoPtr_axis), IL2CPP.ManagedStringToIl2Cpp(value));
			}
		}

		// Token: 0x04006753 RID: 26451
		private static readonly IntPtr NativeFieldInfoPtr_axis;

		// Token: 0x04006754 RID: 26452
		private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;

		// Token: 0x04006755 RID: 26453
		private static readonly IntPtr NativeMethodInfoPtr_HandleInput_Public_Void_Single_0;

		// Token: 0x04006756 RID: 26454
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
