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

// Token: 0x0200029E RID: 670
public class UISettingsGamepad : UIKeyBindingBase
{
	// Token: 0x17001F8A RID: 8074
	// (get) Token: 0x06005A4E RID: 23118 RVA: 0x0016AF4C File Offset: 0x0016914C
	public unsafe override bool IsGamepad
	{
		[CallerCount(16)]
		[CachedScanResults(RefRangeStart = 16399, RefRangeEnd = 16415, XrefRangeStart = 16399, XrefRangeEnd = 16415, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		get
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), UISettingsGamepad.NativeMethodInfoPtr_get_IsGamepad_Protected_Virtual_get_Boolean_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}
	}

	// Token: 0x06005A4F RID: 23119 RVA: 0x0016AFA8 File Offset: 0x001691A8
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 587626, XrefRangeEnd = 587639, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe override void Init(CanvasGroup mainCanvasGroup, Action cancelHandler, Text title)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr;
		checked
		{
			ptr = stackalloc IntPtr[unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(mainCanvasGroup);
		}
		ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(cancelHandler);
		ptr[checked(unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(title);
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), UISettingsGamepad.NativeMethodInfoPtr_Init_Public_Virtual_Void_CanvasGroup_Action_Text_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06005A50 RID: 23120 RVA: 0x0016B03C File Offset: 0x0016923C
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 587639, XrefRangeEnd = 587641, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void OnControllerChanged(ControllerDevice device)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref device;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UISettingsGamepad.NativeMethodInfoPtr_OnControllerChanged_Private_Void_ControllerDevice_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06005A51 RID: 23121 RVA: 0x0016B090 File Offset: 0x00169290
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 587641, XrefRangeEnd = 587664, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe string GetInvalidKeyName(string effectivePath)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.ManagedStringToIl2Cpp(effectivePath);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UISettingsGamepad.NativeMethodInfoPtr_GetInvalidKeyName_Private_String_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return IL2CPP.Il2CppStringToManaged(intPtr);
		}
	}

	// Token: 0x06005A52 RID: 23122 RVA: 0x0016B0F4 File Offset: 0x001692F4
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 587664, XrefRangeEnd = 587668, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe override void Localize(LocalizationData data)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(data);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), UISettingsGamepad.NativeMethodInfoPtr_Localize_Public_Virtual_Void_LocalizationData_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06005A53 RID: 23123 RVA: 0x0016B158 File Offset: 0x00169358
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 0, XrefRangeEnd = 0, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe UISettingsGamepad()
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<UISettingsGamepad>.NativeClassPtr))
	{
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UISettingsGamepad.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06005A54 RID: 23124 RVA: 0x0016B1A4 File Offset: 0x001693A4
	// Note: this type is marked as 'beforefieldinit'.
	static UISettingsGamepad()
	{
		Il2CppClassPointerStore<UISettingsGamepad>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "UISettingsGamepad");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<UISettingsGamepad>.NativeClassPtr);
		UISettingsGamepad.NativeMethodInfoPtr_get_IsGamepad_Protected_Virtual_get_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UISettingsGamepad>.NativeClassPtr, 100669615);
		UISettingsGamepad.NativeMethodInfoPtr_Init_Public_Virtual_Void_CanvasGroup_Action_Text_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UISettingsGamepad>.NativeClassPtr, 100669616);
		UISettingsGamepad.NativeMethodInfoPtr_OnControllerChanged_Private_Void_ControllerDevice_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UISettingsGamepad>.NativeClassPtr, 100669617);
		UISettingsGamepad.NativeMethodInfoPtr_GetInvalidKeyName_Private_String_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UISettingsGamepad>.NativeClassPtr, 100669618);
		UISettingsGamepad.NativeMethodInfoPtr_Localize_Public_Virtual_Void_LocalizationData_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UISettingsGamepad>.NativeClassPtr, 100669619);
		UISettingsGamepad.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UISettingsGamepad>.NativeClassPtr, 100669620);
	}

	// Token: 0x06005A55 RID: 23125 RVA: 0x0016B24C File Offset: 0x0016944C
	public UISettingsGamepad(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x04003C14 RID: 15380
	private static readonly IntPtr NativeMethodInfoPtr_get_IsGamepad_Protected_Virtual_get_Boolean_0;

	// Token: 0x04003C15 RID: 15381
	private static readonly IntPtr NativeMethodInfoPtr_Init_Public_Virtual_Void_CanvasGroup_Action_Text_0;

	// Token: 0x04003C16 RID: 15382
	private static readonly IntPtr NativeMethodInfoPtr_OnControllerChanged_Private_Void_ControllerDevice_0;

	// Token: 0x04003C17 RID: 15383
	private static readonly IntPtr NativeMethodInfoPtr_GetInvalidKeyName_Private_String_String_0;

	// Token: 0x04003C18 RID: 15384
	private static readonly IntPtr NativeMethodInfoPtr_Localize_Public_Virtual_Void_LocalizationData_0;

	// Token: 0x04003C19 RID: 15385
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
