452 lines
24 KiB
C#
452 lines
24 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.InputSystem;
|
|
using UnityEngine.InputSystem.Utilities;
|
|
|
|
// Token: 0x0200005A RID: 90
|
|
public class MenuInputActions : IInputActionCollection2, IInputActionCollection, IEnumerable<InputAction>, IEnumerable, IDisposable
|
|
{
|
|
// Token: 0x17000014 RID: 20
|
|
// (get) Token: 0x06000B28 RID: 2856 RVA: 0x000DD1CB File Offset: 0x000DB3CB
|
|
public InputActionAsset asset { get; }
|
|
|
|
// Token: 0x06000B29 RID: 2857 RVA: 0x000DD1D4 File Offset: 0x000DB3D4
|
|
public MenuInputActions()
|
|
{
|
|
this.asset = InputActionAsset.FromJson("{\n \"name\": \"MenuInputActions\",\n \"maps\": [\n {\n \"name\": \"UI\",\n \"id\": \"52ddedb9-fd5b-43d0-8943-96221877a3ac\",\n \"actions\": [\n {\n \"name\": \"Navigate\",\n \"type\": \"Value\",\n \"id\": \"ec09e2b1-8e92-4c39-b83c-931d5517109a\",\n \"expectedControlType\": \"Vector2\",\n \"processors\": \"\",\n \"interactions\": \"\",\n \"initialStateCheck\": true\n },\n {\n \"name\": \"Submit\",\n \"type\": \"Button\",\n \"id\": \"9050a915-e8d1-4067-a71c-01fbe4f6921f\",\n \"expectedControlType\": \"Button\",\n \"processors\": \"\",\n \"interactions\": \"\",\n \"initialStateCheck\": false\n },\n {\n \"name\": \"Cancel\",\n \"type\": \"Button\",\n \"id\": \"720649fe-d856-4d62-9f65-aa7768386708\",\n \"expectedControlType\": \"Button\",\n \"processors\": \"\",\n \"interactions\": \"\",\n \"initialStateCheck\": false\n },\n {\n \"name\": \"Point\",\n \"type\": \"PassThrough\",\n \"id\": \"7b9a9a5e-4225-4886-879e-7f9e5314f8dd\",\n \"expectedControlType\": \"Vector2\",\n \"processors\": \"\",\n \"interactions\": \"\",\n \"initialStateCheck\": true\n },\n {\n \"name\": \"Click\",\n \"type\": \"PassThrough\",\n \"id\": \"1b0cf791-a3a1-48ed-b21d-4813bd1f4be1\",\n \"expectedControlType\": \"Button\",\n \"processors\": \"\",\n \"interactions\": \"\",\n \"initialStateCheck\": true\n },\n {\n \"name\": \"ScrollWheel\",\n \"type\": \"PassThrough\",\n \"id\": \"e47665d0-51dd-422e-9ac8-626c3b575f3d\",\n \"expectedControlType\": \"Vector2\",\n \"processors\": \"\",\n \"interactions\": \"\",\n \"initialStateCheck\": false\n },\n {\n \"name\": \"MiddleClick\",\n \"type\": \"PassThrough\",\n \"id\": \"882b46d7-e818-4282-8706-e6aa7fcfbcce\",\n \"expectedControlType\": \"Button\",\n \"processors\": \"\",\n \"interactions\": \"\",\n \"initialStateCheck\": false\n },\n {\n \"name\": \"RightClick\",\n \"type\": \"PassThrough\",\n \"id\": \"ce60a5d6-b6df-421f-9d05-031643bc4b81\",\n \"expectedControlType\": \"Button\",\n \"processors\": \"\",\n \"interactions\": \"\",\n \"initialStateCheck\": false\n },\n {\n \"name\": \"Move\",\n \"type\": \"Value\",\n \"id\": \"405c0d98-c1c6-44dd-a8ae-c53da891f9ff\",\n \"expectedControlType\": \"Vector2\",\n \"processors\": \"\",\n \"interactions\": \"\",\n \"initialStateCheck\": true\n },\n {\n \"name\": \"Interact\",\n \"type\": \"Button\",\n \"id\": \"555988c5-5f95-4d90-99a3-b4e8b8a5d654\",\n \"expectedControlType\": \"Button\",\n \"processors\": \"\",\n \"interactions\": \"\",\n \"initialStateCheck\": false\n }\n ],\n \"bindings\": [\n {\n \"name\": \"\",\n \"id\": \"9e37bdc3-f6e0-45e3-b239-3ada0d222b5b\",\n \"path\": \"<Gamepad>/leftStick\",\n \"interactions\": \"\",\n \"processors\": \"\",\n \"groups\": \"\",\n \"action\": \"Navigate\",\n \"isComposite\": false,\n \"isPartOfComposite\": false\n },\n {\n \"name\": \"\",\n \"id\": \"2ac0aaa4-6bdd-4b6f-96f6-9abe0d1bb64c\",\n \"path\": \"<Gamepad>/buttonSouth\",\n \"interactions\": \"\",\n \"processors\": \"\",\n \"groups\": \"\",\n \"action\": \"Submit\",\n \"isComposite\": false,\n \"isPartOfComposite\": false\n },\n {\n \"name\": \"\",\n \"id\": \"c526bcbf-f7ef-45dc-bb11-3d7208e7285f\",\n \"path\": \"<Gamepad>/buttonEast\",\n \"interactions\": \"\",\n \"processors\": \"\",\n \"groups\": \"\",\n \"action\": \"Cancel\",\n \"isComposite\": false,\n \"isPartOfComposite\": false\n },\n {\n \"name\": \"\",\n \"id\": \"1a7b5894-5dda-4007-bfff-bf2743e27828\",\n \"path\": \"<Mouse>/position\",\n \"interactions\": \"\",\n \"processors\": \"\",\n \"groups\": \"\",\n \"action\": \"Point\",\n \"isComposite\": false,\n \"isPartOfComposite\": false\n },\n {\n \"name\": \"\",\n \"id\": \"1c19a269-2d15-4f88-8417-7f56f8f84ba7\",\n \"path\": \"<Pen>/position\",\n \"interactions\": \"\",\n \"processors\": \"\",\n \"groups\": \"\",\n \"action\": \"Point\",\n \"isComposite\": false,\n \"isPartOfComposite\": false\n },\n {\n \"name\": \"\",\n \"id\": \"683cb0b3-c7de-4ab8-b241-430e167bcd38\",\n \"path\": \"<Touchscreen>/touch*/position\",\n \"interactions\": \"\",\n \"processors\": \"\",\n \"groups\": \"\",\n \"action\": \"Point\",\n \"isComposite\": false,\n \"isPartOfComposite\": false\n },\n {\n \"name\": \"\",\n \"id\": \"bf612c6e-f839-4975-83e6-e7e0847e7bc5\",\n \"path\": \"<Mouse>/leftButton\",\n \"interactions\": \"\",\n \"processors\": \"\",\n \"groups\": \"\",\n \"action\": \"Click\",\n \"isComposite\": false,\n \"isPartOfComposite\": false\n },\n {\n \"name\": \"\",\n \"id\": \"d89d7e39-7add-4806-bce6-8cbeb1c2b071\",\n \"path\": \"<Pen>/tip\",\n \"interactions\": \"\",\n \"processors\": \"\",\n \"groups\": \"\",\n \"action\": \"Click\",\n \"isComposite\": false,\n \"isPartOfComposite\": false\n },\n {\n \"name\": \"\",\n \"id\": \"fa25e6da-a1ae-4f65-81e7-84389b5eafbc\",\n \"path\": \"<Touchscreen>/touch*/press\",\n \"interactions\": \"\",\n \"processors\": \"\",\n \"groups\": \"\",\n \"action\": \"Click\",\n \"isComposite\": false,\n \"isPartOfComposite\": false\n },\n {\n \"name\": \"\",\n \"id\": \"6e832a76-0168-4187-a264-56349627970f\",\n \"path\": \"<XRController>/trigger\",\n \"interactions\": \"\",\n \"processors\": \"\",\n \"groups\": \"\",\n \"action\": \"Click\",\n \"isComposite\": false,\n \"isPartOfComposite\": false\n },\n {\n \"name\": \"\",\n \"id\": \"dc2137f7-8af6-4a61-aeae-92e88f85297e\",\n \"path\": \"<Mouse>/scroll\",\n \"interactions\": \"\",\n \"processors\": \"\",\n \"groups\": \"\",\n \"action\": \"ScrollWheel\",\n \"isComposite\": false,\n \"isPartOfComposite\": false\n },\n {\n \"name\": \"\",\n \"id\": \"7f42f6cd-bdcc-4286-b7ce-5956a6a6f6de\",\n \"path\": \"<Mouse>/middleButton\",\n \"interactions\": \"\",\n \"processors\": \"\",\n \"groups\": \"\",\n \"action\": \"MiddleClick\",\n \"isComposite\": false,\n \"isPartOfComposite\": false\n },\n {\n \"name\": \"\",\n \"id\": \"ac496cbc-d8f5-4116-a0cb-c0169f4af23d\",\n \"path\": \"<Mouse>/rightButton\",\n \"interactions\": \"\",\n \"processors\": \"\",\n \"groups\": \"\",\n \"action\": \"RightClick\",\n \"isComposite\": false,\n \"isPartOfComposite\": false\n },\n {\n \"name\": \"\",\n \"id\": \"d7476900-fff3-436a-9fc9-1860fe2f1feb\",\n \"path\": \"<Gamepad>/leftStick\",\n \"interactions\": \"\",\n \"processors\": \"\",\n \"groups\": \"\",\n \"action\": \"Move\",\n \"isComposite\": false,\n \"isPartOfComposite\": false\n },\n {\n \"name\": \"\",\n \"id\": \"71d67f25-062c-409d-af6b-7be58f4c3638\",\n \"path\": \"<Gamepad>/dpad\",\n \"interactions\": \"\",\n \"processors\": \"\",\n \"groups\": \"\",\n \"action\": \"Move\",\n \"isComposite\": false,\n \"isPartOfComposite\": false\n },\n {\n \"name\": \"\",\n \"id\": \"51298c26-4c52-4d54-aa6a-c124c7a59065\",\n \"path\": \"<Gamepad>/buttonWest\",\n \"interactions\": \"\",\n \"processors\": \"\",\n \"groups\": \"\",\n \"action\": \"Interact\",\n \"isComposite\": false,\n \"isPartOfComposite\": false\n }\n ]\n }\n ],\n \"controlSchemes\": []\n}");
|
|
this.m_UI = this.asset.FindActionMap("UI", true);
|
|
this.m_UI_Navigate = this.m_UI.FindAction("Navigate", true);
|
|
this.m_UI_Submit = this.m_UI.FindAction("Submit", true);
|
|
this.m_UI_Cancel = this.m_UI.FindAction("Cancel", true);
|
|
this.m_UI_Point = this.m_UI.FindAction("Point", true);
|
|
this.m_UI_Click = this.m_UI.FindAction("Click", true);
|
|
this.m_UI_ScrollWheel = this.m_UI.FindAction("ScrollWheel", true);
|
|
this.m_UI_MiddleClick = this.m_UI.FindAction("MiddleClick", true);
|
|
this.m_UI_RightClick = this.m_UI.FindAction("RightClick", true);
|
|
this.m_UI_Move = this.m_UI.FindAction("Move", true);
|
|
this.m_UI_Interact = this.m_UI.FindAction("Interact", true);
|
|
}
|
|
|
|
// Token: 0x06000B2A RID: 2858 RVA: 0x000DD2FF File Offset: 0x000DB4FF
|
|
public void Dispose()
|
|
{
|
|
Object.Destroy(this.asset);
|
|
}
|
|
|
|
// Token: 0x17000015 RID: 21
|
|
// (get) Token: 0x06000B2B RID: 2859 RVA: 0x000DD30C File Offset: 0x000DB50C
|
|
// (set) Token: 0x06000B2C RID: 2860 RVA: 0x000DD319 File Offset: 0x000DB519
|
|
public InputBinding? bindingMask
|
|
{
|
|
get
|
|
{
|
|
return this.asset.bindingMask;
|
|
}
|
|
set
|
|
{
|
|
this.asset.bindingMask = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000016 RID: 22
|
|
// (get) Token: 0x06000B2D RID: 2861 RVA: 0x000DD327 File Offset: 0x000DB527
|
|
// (set) Token: 0x06000B2E RID: 2862 RVA: 0x000DD334 File Offset: 0x000DB534
|
|
public ReadOnlyArray<InputDevice>? devices
|
|
{
|
|
get
|
|
{
|
|
return this.asset.devices;
|
|
}
|
|
set
|
|
{
|
|
this.asset.devices = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000017 RID: 23
|
|
// (get) Token: 0x06000B2F RID: 2863 RVA: 0x000DD342 File Offset: 0x000DB542
|
|
public ReadOnlyArray<InputControlScheme> controlSchemes
|
|
{
|
|
get
|
|
{
|
|
return this.asset.controlSchemes;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000B30 RID: 2864 RVA: 0x000DD34F File Offset: 0x000DB54F
|
|
public bool Contains(InputAction action)
|
|
{
|
|
return this.asset.Contains(action);
|
|
}
|
|
|
|
// Token: 0x06000B31 RID: 2865 RVA: 0x000DD35D File Offset: 0x000DB55D
|
|
public IEnumerator<InputAction> GetEnumerator()
|
|
{
|
|
return this.asset.GetEnumerator();
|
|
}
|
|
|
|
// Token: 0x06000B32 RID: 2866 RVA: 0x000DD36A File Offset: 0x000DB56A
|
|
IEnumerator IEnumerable.GetEnumerator()
|
|
{
|
|
return this.GetEnumerator();
|
|
}
|
|
|
|
// Token: 0x06000B33 RID: 2867 RVA: 0x000DD372 File Offset: 0x000DB572
|
|
public void Enable()
|
|
{
|
|
this.asset.Enable();
|
|
}
|
|
|
|
// Token: 0x06000B34 RID: 2868 RVA: 0x000DD37F File Offset: 0x000DB57F
|
|
public void Disable()
|
|
{
|
|
this.asset.Disable();
|
|
}
|
|
|
|
// Token: 0x17000018 RID: 24
|
|
// (get) Token: 0x06000B35 RID: 2869 RVA: 0x000DD38C File Offset: 0x000DB58C
|
|
public IEnumerable<InputBinding> bindings
|
|
{
|
|
get
|
|
{
|
|
return this.asset.bindings;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000B36 RID: 2870 RVA: 0x000DD399 File Offset: 0x000DB599
|
|
public InputAction FindAction(string actionNameOrId, bool throwIfNotFound = false)
|
|
{
|
|
return this.asset.FindAction(actionNameOrId, throwIfNotFound);
|
|
}
|
|
|
|
// Token: 0x06000B37 RID: 2871 RVA: 0x000DD3A8 File Offset: 0x000DB5A8
|
|
public int FindBinding(InputBinding bindingMask, out InputAction action)
|
|
{
|
|
return this.asset.FindBinding(bindingMask, out action);
|
|
}
|
|
|
|
// Token: 0x17000019 RID: 25
|
|
// (get) Token: 0x06000B38 RID: 2872 RVA: 0x000DD3B7 File Offset: 0x000DB5B7
|
|
public MenuInputActions.UIActions UI
|
|
{
|
|
get
|
|
{
|
|
return new MenuInputActions.UIActions(this);
|
|
}
|
|
}
|
|
|
|
// Token: 0x04001022 RID: 4130
|
|
private readonly InputActionMap m_UI;
|
|
|
|
// Token: 0x04001023 RID: 4131
|
|
private List<MenuInputActions.IUIActions> m_UIActionsCallbackInterfaces = new List<MenuInputActions.IUIActions>();
|
|
|
|
// Token: 0x04001024 RID: 4132
|
|
private readonly InputAction m_UI_Navigate;
|
|
|
|
// Token: 0x04001025 RID: 4133
|
|
private readonly InputAction m_UI_Submit;
|
|
|
|
// Token: 0x04001026 RID: 4134
|
|
private readonly InputAction m_UI_Cancel;
|
|
|
|
// Token: 0x04001027 RID: 4135
|
|
private readonly InputAction m_UI_Point;
|
|
|
|
// Token: 0x04001028 RID: 4136
|
|
private readonly InputAction m_UI_Click;
|
|
|
|
// Token: 0x04001029 RID: 4137
|
|
private readonly InputAction m_UI_ScrollWheel;
|
|
|
|
// Token: 0x0400102A RID: 4138
|
|
private readonly InputAction m_UI_MiddleClick;
|
|
|
|
// Token: 0x0400102B RID: 4139
|
|
private readonly InputAction m_UI_RightClick;
|
|
|
|
// Token: 0x0400102C RID: 4140
|
|
private readonly InputAction m_UI_Move;
|
|
|
|
// Token: 0x0400102D RID: 4141
|
|
private readonly InputAction m_UI_Interact;
|
|
|
|
// Token: 0x020001BC RID: 444
|
|
public struct UIActions
|
|
{
|
|
// Token: 0x06001A63 RID: 6755 RVA: 0x001DDA18 File Offset: 0x001DBC18
|
|
public UIActions(MenuInputActions wrapper)
|
|
{
|
|
this.m_Wrapper = wrapper;
|
|
}
|
|
|
|
// Token: 0x17000182 RID: 386
|
|
// (get) Token: 0x06001A64 RID: 6756 RVA: 0x001DDA21 File Offset: 0x001DBC21
|
|
public InputAction Navigate
|
|
{
|
|
get
|
|
{
|
|
return this.m_Wrapper.m_UI_Navigate;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000183 RID: 387
|
|
// (get) Token: 0x06001A65 RID: 6757 RVA: 0x001DDA2E File Offset: 0x001DBC2E
|
|
public InputAction Submit
|
|
{
|
|
get
|
|
{
|
|
return this.m_Wrapper.m_UI_Submit;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000184 RID: 388
|
|
// (get) Token: 0x06001A66 RID: 6758 RVA: 0x001DDA3B File Offset: 0x001DBC3B
|
|
public InputAction Cancel
|
|
{
|
|
get
|
|
{
|
|
return this.m_Wrapper.m_UI_Cancel;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000185 RID: 389
|
|
// (get) Token: 0x06001A67 RID: 6759 RVA: 0x001DDA48 File Offset: 0x001DBC48
|
|
public InputAction Point
|
|
{
|
|
get
|
|
{
|
|
return this.m_Wrapper.m_UI_Point;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000186 RID: 390
|
|
// (get) Token: 0x06001A68 RID: 6760 RVA: 0x001DDA55 File Offset: 0x001DBC55
|
|
public InputAction Click
|
|
{
|
|
get
|
|
{
|
|
return this.m_Wrapper.m_UI_Click;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000187 RID: 391
|
|
// (get) Token: 0x06001A69 RID: 6761 RVA: 0x001DDA62 File Offset: 0x001DBC62
|
|
public InputAction ScrollWheel
|
|
{
|
|
get
|
|
{
|
|
return this.m_Wrapper.m_UI_ScrollWheel;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000188 RID: 392
|
|
// (get) Token: 0x06001A6A RID: 6762 RVA: 0x001DDA6F File Offset: 0x001DBC6F
|
|
public InputAction MiddleClick
|
|
{
|
|
get
|
|
{
|
|
return this.m_Wrapper.m_UI_MiddleClick;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000189 RID: 393
|
|
// (get) Token: 0x06001A6B RID: 6763 RVA: 0x001DDA7C File Offset: 0x001DBC7C
|
|
public InputAction RightClick
|
|
{
|
|
get
|
|
{
|
|
return this.m_Wrapper.m_UI_RightClick;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700018A RID: 394
|
|
// (get) Token: 0x06001A6C RID: 6764 RVA: 0x001DDA89 File Offset: 0x001DBC89
|
|
public InputAction Move
|
|
{
|
|
get
|
|
{
|
|
return this.m_Wrapper.m_UI_Move;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700018B RID: 395
|
|
// (get) Token: 0x06001A6D RID: 6765 RVA: 0x001DDA96 File Offset: 0x001DBC96
|
|
public InputAction Interact
|
|
{
|
|
get
|
|
{
|
|
return this.m_Wrapper.m_UI_Interact;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001A6E RID: 6766 RVA: 0x001DDAA3 File Offset: 0x001DBCA3
|
|
public InputActionMap Get()
|
|
{
|
|
return this.m_Wrapper.m_UI;
|
|
}
|
|
|
|
// Token: 0x06001A6F RID: 6767 RVA: 0x001DDAB0 File Offset: 0x001DBCB0
|
|
public void Enable()
|
|
{
|
|
this.Get().Enable();
|
|
}
|
|
|
|
// Token: 0x06001A70 RID: 6768 RVA: 0x001DDABD File Offset: 0x001DBCBD
|
|
public void Disable()
|
|
{
|
|
this.Get().Disable();
|
|
}
|
|
|
|
// Token: 0x1700018C RID: 396
|
|
// (get) Token: 0x06001A71 RID: 6769 RVA: 0x001DDACA File Offset: 0x001DBCCA
|
|
public bool enabled
|
|
{
|
|
get
|
|
{
|
|
return this.Get().enabled;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001A72 RID: 6770 RVA: 0x001DDAD7 File Offset: 0x001DBCD7
|
|
public static implicit operator InputActionMap(MenuInputActions.UIActions set)
|
|
{
|
|
return set.Get();
|
|
}
|
|
|
|
// Token: 0x06001A73 RID: 6771 RVA: 0x001DDAE0 File Offset: 0x001DBCE0
|
|
public void AddCallbacks(MenuInputActions.IUIActions instance)
|
|
{
|
|
if (instance == null || this.m_Wrapper.m_UIActionsCallbackInterfaces.Contains(instance))
|
|
{
|
|
return;
|
|
}
|
|
this.m_Wrapper.m_UIActionsCallbackInterfaces.Add(instance);
|
|
this.Navigate.started += instance.OnNavigate;
|
|
this.Navigate.performed += instance.OnNavigate;
|
|
this.Navigate.canceled += instance.OnNavigate;
|
|
this.Submit.started += instance.OnSubmit;
|
|
this.Submit.performed += instance.OnSubmit;
|
|
this.Submit.canceled += instance.OnSubmit;
|
|
this.Cancel.started += instance.OnCancel;
|
|
this.Cancel.performed += instance.OnCancel;
|
|
this.Cancel.canceled += instance.OnCancel;
|
|
this.Point.started += instance.OnPoint;
|
|
this.Point.performed += instance.OnPoint;
|
|
this.Point.canceled += instance.OnPoint;
|
|
this.Click.started += instance.OnClick;
|
|
this.Click.performed += instance.OnClick;
|
|
this.Click.canceled += instance.OnClick;
|
|
this.ScrollWheel.started += instance.OnScrollWheel;
|
|
this.ScrollWheel.performed += instance.OnScrollWheel;
|
|
this.ScrollWheel.canceled += instance.OnScrollWheel;
|
|
this.MiddleClick.started += instance.OnMiddleClick;
|
|
this.MiddleClick.performed += instance.OnMiddleClick;
|
|
this.MiddleClick.canceled += instance.OnMiddleClick;
|
|
this.RightClick.started += instance.OnRightClick;
|
|
this.RightClick.performed += instance.OnRightClick;
|
|
this.RightClick.canceled += instance.OnRightClick;
|
|
this.Move.started += instance.OnMove;
|
|
this.Move.performed += instance.OnMove;
|
|
this.Move.canceled += instance.OnMove;
|
|
this.Interact.started += instance.OnInteract;
|
|
this.Interact.performed += instance.OnInteract;
|
|
this.Interact.canceled += instance.OnInteract;
|
|
}
|
|
|
|
// Token: 0x06001A74 RID: 6772 RVA: 0x001DDDE8 File Offset: 0x001DBFE8
|
|
private void UnregisterCallbacks(MenuInputActions.IUIActions instance)
|
|
{
|
|
this.Navigate.started -= instance.OnNavigate;
|
|
this.Navigate.performed -= instance.OnNavigate;
|
|
this.Navigate.canceled -= instance.OnNavigate;
|
|
this.Submit.started -= instance.OnSubmit;
|
|
this.Submit.performed -= instance.OnSubmit;
|
|
this.Submit.canceled -= instance.OnSubmit;
|
|
this.Cancel.started -= instance.OnCancel;
|
|
this.Cancel.performed -= instance.OnCancel;
|
|
this.Cancel.canceled -= instance.OnCancel;
|
|
this.Point.started -= instance.OnPoint;
|
|
this.Point.performed -= instance.OnPoint;
|
|
this.Point.canceled -= instance.OnPoint;
|
|
this.Click.started -= instance.OnClick;
|
|
this.Click.performed -= instance.OnClick;
|
|
this.Click.canceled -= instance.OnClick;
|
|
this.ScrollWheel.started -= instance.OnScrollWheel;
|
|
this.ScrollWheel.performed -= instance.OnScrollWheel;
|
|
this.ScrollWheel.canceled -= instance.OnScrollWheel;
|
|
this.MiddleClick.started -= instance.OnMiddleClick;
|
|
this.MiddleClick.performed -= instance.OnMiddleClick;
|
|
this.MiddleClick.canceled -= instance.OnMiddleClick;
|
|
this.RightClick.started -= instance.OnRightClick;
|
|
this.RightClick.performed -= instance.OnRightClick;
|
|
this.RightClick.canceled -= instance.OnRightClick;
|
|
this.Move.started -= instance.OnMove;
|
|
this.Move.performed -= instance.OnMove;
|
|
this.Move.canceled -= instance.OnMove;
|
|
this.Interact.started -= instance.OnInteract;
|
|
this.Interact.performed -= instance.OnInteract;
|
|
this.Interact.canceled -= instance.OnInteract;
|
|
}
|
|
|
|
// Token: 0x06001A75 RID: 6773 RVA: 0x001DE0C5 File Offset: 0x001DC2C5
|
|
public void RemoveCallbacks(MenuInputActions.IUIActions instance)
|
|
{
|
|
if (this.m_Wrapper.m_UIActionsCallbackInterfaces.Remove(instance))
|
|
{
|
|
this.UnregisterCallbacks(instance);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001A76 RID: 6774 RVA: 0x001DE0E4 File Offset: 0x001DC2E4
|
|
public void SetCallbacks(MenuInputActions.IUIActions instance)
|
|
{
|
|
foreach (MenuInputActions.IUIActions iuiactions in this.m_Wrapper.m_UIActionsCallbackInterfaces)
|
|
{
|
|
this.UnregisterCallbacks(iuiactions);
|
|
}
|
|
this.m_Wrapper.m_UIActionsCallbackInterfaces.Clear();
|
|
this.AddCallbacks(instance);
|
|
}
|
|
|
|
// Token: 0x04002BE8 RID: 11240
|
|
private MenuInputActions m_Wrapper;
|
|
}
|
|
|
|
// Token: 0x020001BD RID: 445
|
|
public interface IUIActions
|
|
{
|
|
// Token: 0x06001A77 RID: 6775
|
|
void OnNavigate(InputAction.CallbackContext context);
|
|
|
|
// Token: 0x06001A78 RID: 6776
|
|
void OnSubmit(InputAction.CallbackContext context);
|
|
|
|
// Token: 0x06001A79 RID: 6777
|
|
void OnCancel(InputAction.CallbackContext context);
|
|
|
|
// Token: 0x06001A7A RID: 6778
|
|
void OnPoint(InputAction.CallbackContext context);
|
|
|
|
// Token: 0x06001A7B RID: 6779
|
|
void OnClick(InputAction.CallbackContext context);
|
|
|
|
// Token: 0x06001A7C RID: 6780
|
|
void OnScrollWheel(InputAction.CallbackContext context);
|
|
|
|
// Token: 0x06001A7D RID: 6781
|
|
void OnMiddleClick(InputAction.CallbackContext context);
|
|
|
|
// Token: 0x06001A7E RID: 6782
|
|
void OnRightClick(InputAction.CallbackContext context);
|
|
|
|
// Token: 0x06001A7F RID: 6783
|
|
void OnMove(InputAction.CallbackContext context);
|
|
|
|
// Token: 0x06001A80 RID: 6784
|
|
void OnInteract(InputAction.CallbackContext context);
|
|
}
|
|
}
|