//------------------------------------------------------------------------------ // // This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator // version 1.18.0 // from Assets/Input/PlayerInputActions.inputactions // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ using System; using System.Collections; using System.Collections.Generic; using UnityEngine.InputSystem; using UnityEngine.InputSystem.Utilities; /// /// Provides programmatic access to , , and instances defined in asset "Assets/Input/PlayerInputActions.inputactions". /// /// /// This class is source generated and any manual edits will be discarded if the associated asset is reimported or modified. /// /// /// /// using namespace UnityEngine; /// using UnityEngine.InputSystem; /// /// // Example of using an InputActionMap named "Player" from a UnityEngine.MonoBehaviour implementing callback interface. /// public class Example : MonoBehaviour, MyActions.IPlayerActions /// { /// private MyActions_Actions m_Actions; // Source code representation of asset. /// private MyActions_Actions.PlayerActions m_Player; // Source code representation of action map. /// /// void Awake() /// { /// m_Actions = new MyActions_Actions(); // Create asset object. /// m_Player = m_Actions.Player; // Extract action map object. /// m_Player.AddCallbacks(this); // Register callback interface IPlayerActions. /// } /// /// void OnDestroy() /// { /// m_Actions.Dispose(); // Destroy asset object. /// } /// /// void OnEnable() /// { /// m_Player.Enable(); // Enable all actions within map. /// } /// /// void OnDisable() /// { /// m_Player.Disable(); // Disable all actions within map. /// } /// /// #region Interface implementation of MyActions.IPlayerActions /// /// // Invoked when "Move" action is either started, performed or canceled. /// public void OnMove(InputAction.CallbackContext context) /// { /// Debug.Log($"OnMove: {context.ReadValue<Vector2>()}"); /// } /// /// // Invoked when "Attack" action is either started, performed or canceled. /// public void OnAttack(InputAction.CallbackContext context) /// { /// Debug.Log($"OnAttack: {context.ReadValue<float>()}"); /// } /// /// #endregion /// } /// /// public partial class @PlayerInputActions: IInputActionCollection2, IDisposable { /// /// Provides access to the underlying asset instance. /// public InputActionAsset asset { get; } /// /// Constructs a new instance. /// public @PlayerInputActions() { asset = InputActionAsset.FromJson(@"{ ""version"": 1, ""name"": ""PlayerInputActions"", ""maps"": [ { ""name"": ""Player"", ""id"": ""f62a4b92-ef5e-4175-8f4c-c9075429d32c"", ""actions"": [ { ""name"": ""Move"", ""type"": ""Value"", ""id"": ""6bc1aaf4-b110-4ff7-891e-5b9fe6f32c4d"", ""expectedControlType"": ""Vector2"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": true }, { ""name"": ""Look"", ""type"": ""Value"", ""id"": ""2690c379-f54d-45be-a724-414123833eb4"", ""expectedControlType"": ""Vector2"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": true }, { ""name"": ""Jump"", ""type"": ""Button"", ""id"": ""8c4abdf8-4099-493a-aa1a-129acec7c3df"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Dash"", ""type"": ""Button"", ""id"": ""980e881e-182c-404c-8cbf-3d09fdb48fef"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""MainWeaponPrimary"", ""type"": ""PassThrough"", ""id"": ""e00762d7-72dd-429e-95dd-309f6eede6e9"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": ""Hold"", ""initialStateCheck"": false }, { ""name"": ""MainWeaponSecondary"", ""type"": ""PassThrough"", ""id"": ""acd32ee1-e54a-4661-876b-1e9c828d3b83"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": ""Hold"", ""initialStateCheck"": false }, { ""name"": ""MainWeaponSpecialA"", ""type"": ""PassThrough"", ""id"": ""c66aac57-886f-465e-9903-379425494c02"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": ""Hold"", ""initialStateCheck"": false }, { ""name"": ""MainWeaponSpecialB"", ""type"": ""PassThrough"", ""id"": ""519b7f50-0ff1-4a65-9fa5-69a47a81b893"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": ""Hold"", ""initialStateCheck"": false }, { ""name"": ""MainWeaponSpecialC"", ""type"": ""PassThrough"", ""id"": ""4c8f0cd2-faea-463e-91ba-b06a92f8e2ce"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": ""Hold"", ""initialStateCheck"": false }, { ""name"": ""Interact"", ""type"": ""Button"", ""id"": ""8bda3820-d4ea-43a0-a8f4-9d5e587307df"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""UseSupportEquipment0"", ""type"": ""Button"", ""id"": ""775191fa-274f-47da-8ded-cf5688c66672"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""UseSupportEquipment1"", ""type"": ""Button"", ""id"": ""03ccda96-e91b-477d-96ea-9f3e64ecbce6"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""UseSupportEquipment2"", ""type"": ""Button"", ""id"": ""7daf229a-a02f-48a7-a445-011630173622"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""UseSupportEquipment3"", ""type"": ""Button"", ""id"": ""935ce0d0-6b7c-4e23-a545-a9439ba24d11"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""OpenInventory"", ""type"": ""Button"", ""id"": ""7f4fcfe0-8ac3-41e7-86f5-61ccce49c8f5"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""SwitchPreviousMainWeapon"", ""type"": ""Button"", ""id"": ""23373bb7-edbd-4df4-bfc4-6988b75aee1c"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": true }, { ""name"": ""SwitchNextMainWeapon"", ""type"": ""Button"", ""id"": ""64102ac4-5555-45c0-9ad1-5368a2933a15"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": true }, { ""name"": ""Walk"", ""type"": ""PassThrough"", ""id"": ""f56a915f-8777-4b96-9185-a92247bdda26"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": ""Press"", ""initialStateCheck"": false }, { ""name"": ""LockonTarget"", ""type"": ""Button"", ""id"": ""eed9b745-4c84-4af3-b428-6badafdfe7d8"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""SelectLockonTarget"", ""type"": ""PassThrough"", ""id"": ""dac3603a-fa3a-4145-b35e-2ea340e2f291"", ""expectedControlType"": ""Axis"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""RouletteSwitchMainWeapon"", ""type"": ""Button"", ""id"": ""518be4f7-4a60-4178-8094-30fb0523362d"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Map"", ""type"": ""Button"", ""id"": ""697e53a7-02a6-47cd-90ee-3e644342cd44"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false } ], ""bindings"": [ { ""name"": ""WASD"", ""id"": ""b7594ddb-26c9-4ba2-bd5a-901468929edc"", ""path"": ""2DVector(mode=1)"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""up"", ""id"": ""2063a8b5-6a45-43de-851b-65f3d46e7b58"", ""path"": ""/w"", ""interactions"": """", ""processors"": """", ""groups"": ""KeyboardMouse"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""64e4d037-32e1-4fb9-80e4-fc7330404dfe"", ""path"": ""/s"", ""interactions"": """", ""processors"": """", ""groups"": ""KeyboardMouse"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""0fce8b11-5eab-4e4e-a741-b732e7b20873"", ""path"": ""/a"", ""interactions"": """", ""processors"": """", ""groups"": ""KeyboardMouse"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""7bdda0d6-57a8-47c8-8238-8aecf3110e47"", ""path"": ""/d"", ""interactions"": """", ""processors"": """", ""groups"": ""KeyboardMouse"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""up"", ""id"": ""bb94b405-58d3-4998-8535-d705c1218a98"", ""path"": ""/upArrow"", ""interactions"": """", ""processors"": """", ""groups"": ""KeyboardMouse"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""929d9071-7dd0-4368-9743-6793bb98087e"", ""path"": ""/downArrow"", ""interactions"": """", ""processors"": """", ""groups"": ""KeyboardMouse"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""28abadba-06ff-4d37-bb70-af2f1e35a3b9"", ""path"": ""/leftArrow"", ""interactions"": """", ""processors"": """", ""groups"": ""KeyboardMouse"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""45f115b6-9b4f-4ba8-b500-b94c93bf7d7e"", ""path"": ""/rightArrow"", ""interactions"": """", ""processors"": """", ""groups"": ""KeyboardMouse"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": """", ""id"": ""e2f9aa65-db06-4c5b-a2e9-41bc8acb9517"", ""path"": ""/leftStick"", ""interactions"": """", ""processors"": ""StickDeadzone"", ""groups"": ""Gamepad"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""ed66cbff-2900-4a62-8896-696503cfcd31"", ""path"": ""/delta"", ""interactions"": """", ""processors"": ""InvertVector2(invertX=false),ScaleVector2(x=0.05,y=0.05)"", ""groups"": ""KeyboardMouse"", ""action"": ""Look"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""d1d171b6-19d8-47a6-ba3a-71b6a8e7b3c0"", ""path"": ""/rightStick"", ""interactions"": """", ""processors"": ""InvertVector2(invertX=false),StickDeadzone,ScaleVector2(x=300,y=300)"", ""groups"": ""Gamepad"", ""action"": ""Look"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""1bd55a0b-761e-4ae4-89ae-8ec127e08a29"", ""path"": ""/leftCtrl"", ""interactions"": """", ""processors"": """", ""groups"": ""KeyboardMouse"", ""action"": ""Jump"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""9f973413-5e27-4239-acee-38c4a63feeba"", ""path"": ""/buttonSouth"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Jump"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""dc65b89f-9bd3-43fb-92af-d0d87ba5faa4"", ""path"": ""/space"", ""interactions"": """", ""processors"": """", ""groups"": ""KeyboardMouse"", ""action"": ""Dash"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""c8fcd86e-dcfd-4f88-8e93-b638cdbf3320"", ""path"": ""/leftTrigger"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Dash"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""18ad7883-0ed8-4505-9474-bea2bcbcfd94"", ""path"": ""/leftButton"", ""interactions"": """", ""processors"": """", ""groups"": ""KeyboardMouse"", ""action"": ""MainWeaponPrimary"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""91bee659-27fe-4039-82c5-d510467564af"", ""path"": ""/rightButton"", ""interactions"": """", ""processors"": """", ""groups"": ""KeyboardMouse"", ""action"": ""MainWeaponSecondary"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""47bed551-0461-4a67-b686-cf3ae396d781"", ""path"": ""/r"", ""interactions"": """", ""processors"": """", ""groups"": ""KeyboardMouse"", ""action"": ""Interact"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""648e3aad-f0c4-4e0f-b735-df392bc3f2c0"", ""path"": ""/1"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""UseSupportEquipment0"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""4c6e84bd-9129-4b0e-9172-dbe2c2cfd52e"", ""path"": ""/2"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""UseSupportEquipment1"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""9ffd1dc5-2d0a-4f18-b619-a598170eaf89"", ""path"": ""/3"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""UseSupportEquipment2"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""dee240c5-9a70-46a4-b6c4-59c21f4cb700"", ""path"": ""/4"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""UseSupportEquipment3"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""49351acf-c348-47ee-b36f-7b3fc38f6163"", ""path"": ""/i"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""OpenInventory"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""2690141f-c8c8-4171-a115-9aee303742ed"", ""path"": ""/f"", ""interactions"": ""Press"", ""processors"": """", ""groups"": ""KeyboardMouse"", ""action"": ""SwitchPreviousMainWeapon"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""3d0ed8b7-a930-4ae4-8357-5c9ad407c03c"", ""path"": ""/g"", ""interactions"": ""Press"", ""processors"": """", ""groups"": ""KeyboardMouse"", ""action"": ""SwitchNextMainWeapon"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""b2369cd5-4e45-4c6d-a80c-465c992f96b8"", ""path"": ""/c"", ""interactions"": """", ""processors"": """", ""groups"": ""KeyboardMouse"", ""action"": ""Walk"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""d4fe95a6-93fb-48d0-ba64-a0f8fc6f027e"", ""path"": ""/middleButton"", ""interactions"": """", ""processors"": """", ""groups"": "";KeyboardMouse"", ""action"": ""LockonTarget"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""5985f280-0f2e-4db4-9fa7-4b8341fd5e6f"", ""path"": ""/q"", ""interactions"": """", ""processors"": """", ""groups"": ""KeyboardMouse"", ""action"": ""MainWeaponSpecialA"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""195ddaf1-7a00-4f73-ba52-f42e255b823d"", ""path"": ""/e"", ""interactions"": """", ""processors"": """", ""groups"": ""KeyboardMouse"", ""action"": ""MainWeaponSpecialB"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""bab1781c-a2e5-413a-8e89-c65076a32c8e"", ""path"": ""/leftShift"", ""interactions"": """", ""processors"": """", ""groups"": ""KeyboardMouse"", ""action"": ""MainWeaponSpecialC"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""0c338080-389d-49b4-8925-d1468dbf0e24"", ""path"": ""/f"", ""interactions"": ""Hold"", ""processors"": """", ""groups"": """", ""action"": ""RouletteSwitchMainWeapon"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""474b9871-71cd-415f-94e2-41c5eeb60156"", ""path"": ""/g"", ""interactions"": ""Hold"", ""processors"": """", ""groups"": """", ""action"": ""RouletteSwitchMainWeapon"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""13962bd7-cc43-4f3a-987c-361c84f01629"", ""path"": ""/scroll/y"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""SelectLockonTarget"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""9807ab1b-c3de-47a6-a82f-5aab5c283639"", ""path"": ""/tab"", ""interactions"": """", ""processors"": """", ""groups"": "";KeyboardMouse"", ""action"": ""Map"", ""isComposite"": false, ""isPartOfComposite"": false } ] } ], ""controlSchemes"": [ { ""name"": ""KeyboardMouse"", ""bindingGroup"": ""KeyboardMouse"", ""devices"": [ { ""devicePath"": """", ""isOptional"": false, ""isOR"": false }, { ""devicePath"": """", ""isOptional"": false, ""isOR"": false } ] }, { ""name"": ""Gamepad"", ""bindingGroup"": ""Gamepad"", ""devices"": [ { ""devicePath"": """", ""isOptional"": true, ""isOR"": false }, { ""devicePath"": """", ""isOptional"": true, ""isOR"": false }, { ""devicePath"": """", ""isOptional"": true, ""isOR"": false } ] }, { ""name"": ""Xbox Controller"", ""bindingGroup"": ""Xbox Controller"", ""devices"": [] }, { ""name"": ""PS4 Controller"", ""bindingGroup"": ""PS4 Controller"", ""devices"": [] } ] }"); // Player m_Player = asset.FindActionMap("Player", throwIfNotFound: true); m_Player_Move = m_Player.FindAction("Move", throwIfNotFound: true); m_Player_Look = m_Player.FindAction("Look", throwIfNotFound: true); m_Player_Jump = m_Player.FindAction("Jump", throwIfNotFound: true); m_Player_Dash = m_Player.FindAction("Dash", throwIfNotFound: true); m_Player_MainWeaponPrimary = m_Player.FindAction("MainWeaponPrimary", throwIfNotFound: true); m_Player_MainWeaponSecondary = m_Player.FindAction("MainWeaponSecondary", throwIfNotFound: true); m_Player_MainWeaponSpecialA = m_Player.FindAction("MainWeaponSpecialA", throwIfNotFound: true); m_Player_MainWeaponSpecialB = m_Player.FindAction("MainWeaponSpecialB", throwIfNotFound: true); m_Player_MainWeaponSpecialC = m_Player.FindAction("MainWeaponSpecialC", throwIfNotFound: true); m_Player_Interact = m_Player.FindAction("Interact", throwIfNotFound: true); m_Player_UseSupportEquipment0 = m_Player.FindAction("UseSupportEquipment0", throwIfNotFound: true); m_Player_UseSupportEquipment1 = m_Player.FindAction("UseSupportEquipment1", throwIfNotFound: true); m_Player_UseSupportEquipment2 = m_Player.FindAction("UseSupportEquipment2", throwIfNotFound: true); m_Player_UseSupportEquipment3 = m_Player.FindAction("UseSupportEquipment3", throwIfNotFound: true); m_Player_OpenInventory = m_Player.FindAction("OpenInventory", throwIfNotFound: true); m_Player_SwitchPreviousMainWeapon = m_Player.FindAction("SwitchPreviousMainWeapon", throwIfNotFound: true); m_Player_SwitchNextMainWeapon = m_Player.FindAction("SwitchNextMainWeapon", throwIfNotFound: true); m_Player_Walk = m_Player.FindAction("Walk", throwIfNotFound: true); m_Player_LockonTarget = m_Player.FindAction("LockonTarget", throwIfNotFound: true); m_Player_SelectLockonTarget = m_Player.FindAction("SelectLockonTarget", throwIfNotFound: true); m_Player_RouletteSwitchMainWeapon = m_Player.FindAction("RouletteSwitchMainWeapon", throwIfNotFound: true); m_Player_Map = m_Player.FindAction("Map", throwIfNotFound: true); } ~@PlayerInputActions() { UnityEngine.Debug.Assert(!m_Player.enabled, "This will cause a leak and performance issues, PlayerInputActions.Player.Disable() has not been called."); } /// /// Destroys this asset and all associated instances. /// public void Dispose() { UnityEngine.Object.Destroy(asset); } /// public InputBinding? bindingMask { get => asset.bindingMask; set => asset.bindingMask = value; } /// public ReadOnlyArray? devices { get => asset.devices; set => asset.devices = value; } /// public ReadOnlyArray controlSchemes => asset.controlSchemes; /// public bool Contains(InputAction action) { return asset.Contains(action); } /// public IEnumerator GetEnumerator() { return asset.GetEnumerator(); } /// IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator(); } /// public void Enable() { asset.Enable(); } /// public void Disable() { asset.Disable(); } /// public IEnumerable bindings => asset.bindings; /// public InputAction FindAction(string actionNameOrId, bool throwIfNotFound = false) { return asset.FindAction(actionNameOrId, throwIfNotFound); } /// public int FindBinding(InputBinding bindingMask, out InputAction action) { return asset.FindBinding(bindingMask, out action); } // Player private readonly InputActionMap m_Player; private List m_PlayerActionsCallbackInterfaces = new List(); private readonly InputAction m_Player_Move; private readonly InputAction m_Player_Look; private readonly InputAction m_Player_Jump; private readonly InputAction m_Player_Dash; private readonly InputAction m_Player_MainWeaponPrimary; private readonly InputAction m_Player_MainWeaponSecondary; private readonly InputAction m_Player_MainWeaponSpecialA; private readonly InputAction m_Player_MainWeaponSpecialB; private readonly InputAction m_Player_MainWeaponSpecialC; private readonly InputAction m_Player_Interact; private readonly InputAction m_Player_UseSupportEquipment0; private readonly InputAction m_Player_UseSupportEquipment1; private readonly InputAction m_Player_UseSupportEquipment2; private readonly InputAction m_Player_UseSupportEquipment3; private readonly InputAction m_Player_OpenInventory; private readonly InputAction m_Player_SwitchPreviousMainWeapon; private readonly InputAction m_Player_SwitchNextMainWeapon; private readonly InputAction m_Player_Walk; private readonly InputAction m_Player_LockonTarget; private readonly InputAction m_Player_SelectLockonTarget; private readonly InputAction m_Player_RouletteSwitchMainWeapon; private readonly InputAction m_Player_Map; /// /// Provides access to input actions defined in input action map "Player". /// public struct PlayerActions { private @PlayerInputActions m_Wrapper; /// /// Construct a new instance of the input action map wrapper class. /// public PlayerActions(@PlayerInputActions wrapper) { m_Wrapper = wrapper; } /// /// Provides access to the underlying input action "Player/Move". /// public InputAction @Move => m_Wrapper.m_Player_Move; /// /// Provides access to the underlying input action "Player/Look". /// public InputAction @Look => m_Wrapper.m_Player_Look; /// /// Provides access to the underlying input action "Player/Jump". /// public InputAction @Jump => m_Wrapper.m_Player_Jump; /// /// Provides access to the underlying input action "Player/Dash". /// public InputAction @Dash => m_Wrapper.m_Player_Dash; /// /// Provides access to the underlying input action "Player/MainWeaponPrimary". /// public InputAction @MainWeaponPrimary => m_Wrapper.m_Player_MainWeaponPrimary; /// /// Provides access to the underlying input action "Player/MainWeaponSecondary". /// public InputAction @MainWeaponSecondary => m_Wrapper.m_Player_MainWeaponSecondary; /// /// Provides access to the underlying input action "Player/MainWeaponSpecialA". /// public InputAction @MainWeaponSpecialA => m_Wrapper.m_Player_MainWeaponSpecialA; /// /// Provides access to the underlying input action "Player/MainWeaponSpecialB". /// public InputAction @MainWeaponSpecialB => m_Wrapper.m_Player_MainWeaponSpecialB; /// /// Provides access to the underlying input action "Player/MainWeaponSpecialC". /// public InputAction @MainWeaponSpecialC => m_Wrapper.m_Player_MainWeaponSpecialC; /// /// Provides access to the underlying input action "Player/Interact". /// public InputAction @Interact => m_Wrapper.m_Player_Interact; /// /// Provides access to the underlying input action "Player/UseSupportEquipment0". /// public InputAction @UseSupportEquipment0 => m_Wrapper.m_Player_UseSupportEquipment0; /// /// Provides access to the underlying input action "Player/UseSupportEquipment1". /// public InputAction @UseSupportEquipment1 => m_Wrapper.m_Player_UseSupportEquipment1; /// /// Provides access to the underlying input action "Player/UseSupportEquipment2". /// public InputAction @UseSupportEquipment2 => m_Wrapper.m_Player_UseSupportEquipment2; /// /// Provides access to the underlying input action "Player/UseSupportEquipment3". /// public InputAction @UseSupportEquipment3 => m_Wrapper.m_Player_UseSupportEquipment3; /// /// Provides access to the underlying input action "Player/OpenInventory". /// public InputAction @OpenInventory => m_Wrapper.m_Player_OpenInventory; /// /// Provides access to the underlying input action "Player/SwitchPreviousMainWeapon". /// public InputAction @SwitchPreviousMainWeapon => m_Wrapper.m_Player_SwitchPreviousMainWeapon; /// /// Provides access to the underlying input action "Player/SwitchNextMainWeapon". /// public InputAction @SwitchNextMainWeapon => m_Wrapper.m_Player_SwitchNextMainWeapon; /// /// Provides access to the underlying input action "Player/Walk". /// public InputAction @Walk => m_Wrapper.m_Player_Walk; /// /// Provides access to the underlying input action "Player/LockonTarget". /// public InputAction @LockonTarget => m_Wrapper.m_Player_LockonTarget; /// /// Provides access to the underlying input action "Player/SelectLockonTarget". /// public InputAction @SelectLockonTarget => m_Wrapper.m_Player_SelectLockonTarget; /// /// Provides access to the underlying input action "Player/RouletteSwitchMainWeapon". /// public InputAction @RouletteSwitchMainWeapon => m_Wrapper.m_Player_RouletteSwitchMainWeapon; /// /// Provides access to the underlying input action "Player/Map". /// public InputAction @Map => m_Wrapper.m_Player_Map; /// /// Provides access to the underlying input action map instance. /// public InputActionMap Get() { return m_Wrapper.m_Player; } /// public void Enable() { Get().Enable(); } /// public void Disable() { Get().Disable(); } /// public bool enabled => Get().enabled; /// /// Implicitly converts an to an instance. /// public static implicit operator InputActionMap(PlayerActions set) { return set.Get(); } /// /// Adds , and callbacks provided via on all input actions contained in this map. /// /// Callback instance. /// /// If is null or have already been added this method does nothing. /// /// public void AddCallbacks(IPlayerActions instance) { if (instance == null || m_Wrapper.m_PlayerActionsCallbackInterfaces.Contains(instance)) return; m_Wrapper.m_PlayerActionsCallbackInterfaces.Add(instance); @Move.started += instance.OnMove; @Move.performed += instance.OnMove; @Move.canceled += instance.OnMove; @Look.started += instance.OnLook; @Look.performed += instance.OnLook; @Look.canceled += instance.OnLook; @Jump.started += instance.OnJump; @Jump.performed += instance.OnJump; @Jump.canceled += instance.OnJump; @Dash.started += instance.OnDash; @Dash.performed += instance.OnDash; @Dash.canceled += instance.OnDash; @MainWeaponPrimary.started += instance.OnMainWeaponPrimary; @MainWeaponPrimary.performed += instance.OnMainWeaponPrimary; @MainWeaponPrimary.canceled += instance.OnMainWeaponPrimary; @MainWeaponSecondary.started += instance.OnMainWeaponSecondary; @MainWeaponSecondary.performed += instance.OnMainWeaponSecondary; @MainWeaponSecondary.canceled += instance.OnMainWeaponSecondary; @MainWeaponSpecialA.started += instance.OnMainWeaponSpecialA; @MainWeaponSpecialA.performed += instance.OnMainWeaponSpecialA; @MainWeaponSpecialA.canceled += instance.OnMainWeaponSpecialA; @MainWeaponSpecialB.started += instance.OnMainWeaponSpecialB; @MainWeaponSpecialB.performed += instance.OnMainWeaponSpecialB; @MainWeaponSpecialB.canceled += instance.OnMainWeaponSpecialB; @MainWeaponSpecialC.started += instance.OnMainWeaponSpecialC; @MainWeaponSpecialC.performed += instance.OnMainWeaponSpecialC; @MainWeaponSpecialC.canceled += instance.OnMainWeaponSpecialC; @Interact.started += instance.OnInteract; @Interact.performed += instance.OnInteract; @Interact.canceled += instance.OnInteract; @UseSupportEquipment0.started += instance.OnUseSupportEquipment0; @UseSupportEquipment0.performed += instance.OnUseSupportEquipment0; @UseSupportEquipment0.canceled += instance.OnUseSupportEquipment0; @UseSupportEquipment1.started += instance.OnUseSupportEquipment1; @UseSupportEquipment1.performed += instance.OnUseSupportEquipment1; @UseSupportEquipment1.canceled += instance.OnUseSupportEquipment1; @UseSupportEquipment2.started += instance.OnUseSupportEquipment2; @UseSupportEquipment2.performed += instance.OnUseSupportEquipment2; @UseSupportEquipment2.canceled += instance.OnUseSupportEquipment2; @UseSupportEquipment3.started += instance.OnUseSupportEquipment3; @UseSupportEquipment3.performed += instance.OnUseSupportEquipment3; @UseSupportEquipment3.canceled += instance.OnUseSupportEquipment3; @OpenInventory.started += instance.OnOpenInventory; @OpenInventory.performed += instance.OnOpenInventory; @OpenInventory.canceled += instance.OnOpenInventory; @SwitchPreviousMainWeapon.started += instance.OnSwitchPreviousMainWeapon; @SwitchPreviousMainWeapon.performed += instance.OnSwitchPreviousMainWeapon; @SwitchPreviousMainWeapon.canceled += instance.OnSwitchPreviousMainWeapon; @SwitchNextMainWeapon.started += instance.OnSwitchNextMainWeapon; @SwitchNextMainWeapon.performed += instance.OnSwitchNextMainWeapon; @SwitchNextMainWeapon.canceled += instance.OnSwitchNextMainWeapon; @Walk.started += instance.OnWalk; @Walk.performed += instance.OnWalk; @Walk.canceled += instance.OnWalk; @LockonTarget.started += instance.OnLockonTarget; @LockonTarget.performed += instance.OnLockonTarget; @LockonTarget.canceled += instance.OnLockonTarget; @SelectLockonTarget.started += instance.OnSelectLockonTarget; @SelectLockonTarget.performed += instance.OnSelectLockonTarget; @SelectLockonTarget.canceled += instance.OnSelectLockonTarget; @RouletteSwitchMainWeapon.started += instance.OnRouletteSwitchMainWeapon; @RouletteSwitchMainWeapon.performed += instance.OnRouletteSwitchMainWeapon; @RouletteSwitchMainWeapon.canceled += instance.OnRouletteSwitchMainWeapon; @Map.started += instance.OnMap; @Map.performed += instance.OnMap; @Map.canceled += instance.OnMap; } /// /// Removes , and callbacks provided via on all input actions contained in this map. /// /// /// Calling this method when have not previously been registered has no side-effects. /// /// private void UnregisterCallbacks(IPlayerActions instance) { @Move.started -= instance.OnMove; @Move.performed -= instance.OnMove; @Move.canceled -= instance.OnMove; @Look.started -= instance.OnLook; @Look.performed -= instance.OnLook; @Look.canceled -= instance.OnLook; @Jump.started -= instance.OnJump; @Jump.performed -= instance.OnJump; @Jump.canceled -= instance.OnJump; @Dash.started -= instance.OnDash; @Dash.performed -= instance.OnDash; @Dash.canceled -= instance.OnDash; @MainWeaponPrimary.started -= instance.OnMainWeaponPrimary; @MainWeaponPrimary.performed -= instance.OnMainWeaponPrimary; @MainWeaponPrimary.canceled -= instance.OnMainWeaponPrimary; @MainWeaponSecondary.started -= instance.OnMainWeaponSecondary; @MainWeaponSecondary.performed -= instance.OnMainWeaponSecondary; @MainWeaponSecondary.canceled -= instance.OnMainWeaponSecondary; @MainWeaponSpecialA.started -= instance.OnMainWeaponSpecialA; @MainWeaponSpecialA.performed -= instance.OnMainWeaponSpecialA; @MainWeaponSpecialA.canceled -= instance.OnMainWeaponSpecialA; @MainWeaponSpecialB.started -= instance.OnMainWeaponSpecialB; @MainWeaponSpecialB.performed -= instance.OnMainWeaponSpecialB; @MainWeaponSpecialB.canceled -= instance.OnMainWeaponSpecialB; @MainWeaponSpecialC.started -= instance.OnMainWeaponSpecialC; @MainWeaponSpecialC.performed -= instance.OnMainWeaponSpecialC; @MainWeaponSpecialC.canceled -= instance.OnMainWeaponSpecialC; @Interact.started -= instance.OnInteract; @Interact.performed -= instance.OnInteract; @Interact.canceled -= instance.OnInteract; @UseSupportEquipment0.started -= instance.OnUseSupportEquipment0; @UseSupportEquipment0.performed -= instance.OnUseSupportEquipment0; @UseSupportEquipment0.canceled -= instance.OnUseSupportEquipment0; @UseSupportEquipment1.started -= instance.OnUseSupportEquipment1; @UseSupportEquipment1.performed -= instance.OnUseSupportEquipment1; @UseSupportEquipment1.canceled -= instance.OnUseSupportEquipment1; @UseSupportEquipment2.started -= instance.OnUseSupportEquipment2; @UseSupportEquipment2.performed -= instance.OnUseSupportEquipment2; @UseSupportEquipment2.canceled -= instance.OnUseSupportEquipment2; @UseSupportEquipment3.started -= instance.OnUseSupportEquipment3; @UseSupportEquipment3.performed -= instance.OnUseSupportEquipment3; @UseSupportEquipment3.canceled -= instance.OnUseSupportEquipment3; @OpenInventory.started -= instance.OnOpenInventory; @OpenInventory.performed -= instance.OnOpenInventory; @OpenInventory.canceled -= instance.OnOpenInventory; @SwitchPreviousMainWeapon.started -= instance.OnSwitchPreviousMainWeapon; @SwitchPreviousMainWeapon.performed -= instance.OnSwitchPreviousMainWeapon; @SwitchPreviousMainWeapon.canceled -= instance.OnSwitchPreviousMainWeapon; @SwitchNextMainWeapon.started -= instance.OnSwitchNextMainWeapon; @SwitchNextMainWeapon.performed -= instance.OnSwitchNextMainWeapon; @SwitchNextMainWeapon.canceled -= instance.OnSwitchNextMainWeapon; @Walk.started -= instance.OnWalk; @Walk.performed -= instance.OnWalk; @Walk.canceled -= instance.OnWalk; @LockonTarget.started -= instance.OnLockonTarget; @LockonTarget.performed -= instance.OnLockonTarget; @LockonTarget.canceled -= instance.OnLockonTarget; @SelectLockonTarget.started -= instance.OnSelectLockonTarget; @SelectLockonTarget.performed -= instance.OnSelectLockonTarget; @SelectLockonTarget.canceled -= instance.OnSelectLockonTarget; @RouletteSwitchMainWeapon.started -= instance.OnRouletteSwitchMainWeapon; @RouletteSwitchMainWeapon.performed -= instance.OnRouletteSwitchMainWeapon; @RouletteSwitchMainWeapon.canceled -= instance.OnRouletteSwitchMainWeapon; @Map.started -= instance.OnMap; @Map.performed -= instance.OnMap; @Map.canceled -= instance.OnMap; } /// /// Unregisters and unregisters all input action callbacks via . /// /// public void RemoveCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterfaces.Remove(instance)) UnregisterCallbacks(instance); } /// /// Replaces all existing callback instances and previously registered input action callbacks associated with them with callbacks provided via . /// /// /// If is null, calling this method will only unregister all existing callbacks but not register any new callbacks. /// /// /// /// public void SetCallbacks(IPlayerActions instance) { foreach (var item in m_Wrapper.m_PlayerActionsCallbackInterfaces) UnregisterCallbacks(item); m_Wrapper.m_PlayerActionsCallbackInterfaces.Clear(); AddCallbacks(instance); } } /// /// Provides a new instance referencing this action map. /// public PlayerActions @Player => new PlayerActions(this); private int m_KeyboardMouseSchemeIndex = -1; /// /// Provides access to the input control scheme. /// /// public InputControlScheme KeyboardMouseScheme { get { if (m_KeyboardMouseSchemeIndex == -1) m_KeyboardMouseSchemeIndex = asset.FindControlSchemeIndex("KeyboardMouse"); return asset.controlSchemes[m_KeyboardMouseSchemeIndex]; } } private int m_GamepadSchemeIndex = -1; /// /// Provides access to the input control scheme. /// /// public InputControlScheme GamepadScheme { get { if (m_GamepadSchemeIndex == -1) m_GamepadSchemeIndex = asset.FindControlSchemeIndex("Gamepad"); return asset.controlSchemes[m_GamepadSchemeIndex]; } } private int m_XboxControllerSchemeIndex = -1; /// /// Provides access to the input control scheme. /// /// public InputControlScheme XboxControllerScheme { get { if (m_XboxControllerSchemeIndex == -1) m_XboxControllerSchemeIndex = asset.FindControlSchemeIndex("Xbox Controller"); return asset.controlSchemes[m_XboxControllerSchemeIndex]; } } private int m_PS4ControllerSchemeIndex = -1; /// /// Provides access to the input control scheme. /// /// public InputControlScheme PS4ControllerScheme { get { if (m_PS4ControllerSchemeIndex == -1) m_PS4ControllerSchemeIndex = asset.FindControlSchemeIndex("PS4 Controller"); return asset.controlSchemes[m_PS4ControllerSchemeIndex]; } } /// /// Interface to implement callback methods for all input action callbacks associated with input actions defined by "Player" which allows adding and removing callbacks. /// /// /// public interface IPlayerActions { /// /// Method invoked when associated input action "Move" is either , or . /// /// /// /// void OnMove(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Look" is either , or . /// /// /// /// void OnLook(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Jump" is either , or . /// /// /// /// void OnJump(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Dash" is either , or . /// /// /// /// void OnDash(InputAction.CallbackContext context); /// /// Method invoked when associated input action "MainWeaponPrimary" is either , or . /// /// /// /// void OnMainWeaponPrimary(InputAction.CallbackContext context); /// /// Method invoked when associated input action "MainWeaponSecondary" is either , or . /// /// /// /// void OnMainWeaponSecondary(InputAction.CallbackContext context); /// /// Method invoked when associated input action "MainWeaponSpecialA" is either , or . /// /// /// /// void OnMainWeaponSpecialA(InputAction.CallbackContext context); /// /// Method invoked when associated input action "MainWeaponSpecialB" is either , or . /// /// /// /// void OnMainWeaponSpecialB(InputAction.CallbackContext context); /// /// Method invoked when associated input action "MainWeaponSpecialC" is either , or . /// /// /// /// void OnMainWeaponSpecialC(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Interact" is either , or . /// /// /// /// void OnInteract(InputAction.CallbackContext context); /// /// Method invoked when associated input action "UseSupportEquipment0" is either , or . /// /// /// /// void OnUseSupportEquipment0(InputAction.CallbackContext context); /// /// Method invoked when associated input action "UseSupportEquipment1" is either , or . /// /// /// /// void OnUseSupportEquipment1(InputAction.CallbackContext context); /// /// Method invoked when associated input action "UseSupportEquipment2" is either , or . /// /// /// /// void OnUseSupportEquipment2(InputAction.CallbackContext context); /// /// Method invoked when associated input action "UseSupportEquipment3" is either , or . /// /// /// /// void OnUseSupportEquipment3(InputAction.CallbackContext context); /// /// Method invoked when associated input action "OpenInventory" is either , or . /// /// /// /// void OnOpenInventory(InputAction.CallbackContext context); /// /// Method invoked when associated input action "SwitchPreviousMainWeapon" is either , or . /// /// /// /// void OnSwitchPreviousMainWeapon(InputAction.CallbackContext context); /// /// Method invoked when associated input action "SwitchNextMainWeapon" is either , or . /// /// /// /// void OnSwitchNextMainWeapon(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Walk" is either , or . /// /// /// /// void OnWalk(InputAction.CallbackContext context); /// /// Method invoked when associated input action "LockonTarget" is either , or . /// /// /// /// void OnLockonTarget(InputAction.CallbackContext context); /// /// Method invoked when associated input action "SelectLockonTarget" is either , or . /// /// /// /// void OnSelectLockonTarget(InputAction.CallbackContext context); /// /// Method invoked when associated input action "RouletteSwitchMainWeapon" is either , or . /// /// /// /// void OnRouletteSwitchMainWeapon(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Map" is either , or . /// /// /// /// void OnMap(InputAction.CallbackContext context); } }