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

// Token: 0x02000254 RID: 596
public class UISettingsGamepad : UIKeyBindingBase
{
	// Token: 0x17001D9D RID: 7581
	// (get) Token: 0x060053F2 RID: 21490 RVA: 0x00150810 File Offset: 0x0014EA10
	public unsafe override bool IsGamepad
	{
		[CallerCount(16)]
		[CachedScanResults(RefRangeStart = 16502, RefRangeEnd = 16518, XrefRangeStart = 16502, XrefRangeEnd = 16518, 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: 0x060053F3 RID: 21491 RVA: 0x0015086C File Offset: 0x0014EA6C
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 557793, XrefRangeEnd = 557806, 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: 0x060053F4 RID: 21492 RVA: 0x00150900 File Offset: 0x0014EB00
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 557806, XrefRangeEnd = 557808, 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: 0x060053F5 RID: 21493 RVA: 0x00150954 File Offset: 0x0014EB54
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 557808, XrefRangeEnd = 557809, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe override string GetInvalidBindingMsg(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(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), UISettingsGamepad.NativeMethodInfoPtr_GetInvalidBindingMsg_Protected_Virtual_String_String_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return IL2CPP.Il2CppStringToManaged(intPtr);
		}
	}

	// Token: 0x060053F6 RID: 21494 RVA: 0x001509C4 File Offset: 0x0014EBC4
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 557809, XrefRangeEnd = 557832, 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: 0x060053F7 RID: 21495 RVA: 0x00150A28 File Offset: 0x0014EC28
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 557832, XrefRangeEnd = 557836, 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: 0x060053F8 RID: 21496 RVA: 0x00150A8C File Offset: 0x0014EC8C
	[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: 0x060053F9 RID: 21497 RVA: 0x00150AD8 File Offset: 0x0014ECD8
	// 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, 100669073);
		UISettingsGamepad.NativeMethodInfoPtr_Init_Public_Virtual_Void_CanvasGroup_Action_Text_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UISettingsGamepad>.NativeClassPtr, 100669074);
		UISettingsGamepad.NativeMethodInfoPtr_OnControllerChanged_Private_Void_ControllerDevice_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UISettingsGamepad>.NativeClassPtr, 100669075);
		UISettingsGamepad.NativeMethodInfoPtr_GetInvalidBindingMsg_Protected_Virtual_String_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UISettingsGamepad>.NativeClassPtr, 100669076);
		UISettingsGamepad.NativeMethodInfoPtr_GetInvalidKeyName_Private_String_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UISettingsGamepad>.NativeClassPtr, 100669077);
		UISettingsGamepad.NativeMethodInfoPtr_Localize_Public_Virtual_Void_LocalizationData_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UISettingsGamepad>.NativeClassPtr, 100669078);
		UISettingsGamepad.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UISettingsGamepad>.NativeClassPtr, 100669079);
	}

	// Token: 0x060053FA RID: 21498 RVA: 0x00150B94 File Offset: 0x0014ED94
	public UISettingsGamepad(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x040037B3 RID: 14259
	private static readonly IntPtr NativeMethodInfoPtr_get_IsGamepad_Protected_Virtual_get_Boolean_0;

	// Token: 0x040037B4 RID: 14260
	private static readonly IntPtr NativeMethodInfoPtr_Init_Public_Virtual_Void_CanvasGroup_Action_Text_0;

	// Token: 0x040037B5 RID: 14261
	private static readonly IntPtr NativeMethodInfoPtr_OnControllerChanged_Private_Void_ControllerDevice_0;

	// Token: 0x040037B6 RID: 14262
	private static readonly IntPtr NativeMethodInfoPtr_GetInvalidBindingMsg_Protected_Virtual_String_String_0;

	// Token: 0x040037B7 RID: 14263
	private static readonly IntPtr NativeMethodInfoPtr_GetInvalidKeyName_Private_String_String_0;

	// Token: 0x040037B8 RID: 14264
	private static readonly IntPtr NativeMethodInfoPtr_Localize_Public_Virtual_Void_LocalizationData_0;

	// Token: 0x040037B9 RID: 14265
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
