//------------------------------------------------------------------------------ // // This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator // version 1.4.4 // from Assets/FishNet/Demos/Network LOD/Prefabs/New Controls.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; public partial class @NewControls : IInputActionCollection2, IDisposable { public InputActionAsset asset { get; } public @NewControls() { asset = InputActionAsset.FromJson(@"{ ""name"": ""New Controls"", ""maps"": [ { ""name"": ""New action map"", ""id"": ""d0f51457-a857-4fa4-98ce-e5cde69f5bba"", ""actions"": [ { ""name"": ""New action"", ""type"": ""Value"", ""id"": ""55dfdeea-331d-47f2-9a02-526e458aa5ed"", ""expectedControlType"": ""Vector2"", ""processors"": """", ""interactions"": ""Hold"", ""initialStateCheck"": true } ], ""bindings"": [ { ""name"": ""2D Vector"", ""id"": ""ab43b81b-3869-467f-9684-e4f7a35d6c73"", ""path"": ""2DVector"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""New action"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""up"", ""id"": ""24cc63fc-7927-464b-acce-ad9f5d5de163"", ""path"": ""/w"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""New action"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""6fbbe716-aa97-412a-85c5-9597c0fea21c"", ""path"": ""/s"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""New action"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""3da6b6cd-13d7-4bd9-b943-010ef1aafb06"", ""path"": ""/a"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""New action"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""5dd39ce5-66ed-442e-af87-f9b09cb1b971"", ""path"": ""/d"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""New action"", ""isComposite"": false, ""isPartOfComposite"": true } ] } ], ""controlSchemes"": [] }"); // New action map m_Newactionmap = asset.FindActionMap("New action map", throwIfNotFound: true); m_Newactionmap_Newaction = m_Newactionmap.FindAction("New action", throwIfNotFound: true); } 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); } // New action map private readonly InputActionMap m_Newactionmap; private INewactionmapActions m_NewactionmapActionsCallbackInterface; private readonly InputAction m_Newactionmap_Newaction; public struct NewactionmapActions { private @NewControls m_Wrapper; public NewactionmapActions(@NewControls wrapper) { m_Wrapper = wrapper; } public InputAction @Newaction => m_Wrapper.m_Newactionmap_Newaction; public InputActionMap Get() { return m_Wrapper.m_Newactionmap; } public void Enable() { Get().Enable(); } public void Disable() { Get().Disable(); } public bool enabled => Get().enabled; public static implicit operator InputActionMap(NewactionmapActions set) { return set.Get(); } public void SetCallbacks(INewactionmapActions instance) { if (m_Wrapper.m_NewactionmapActionsCallbackInterface != null) { @Newaction.started -= m_Wrapper.m_NewactionmapActionsCallbackInterface.OnNewaction; @Newaction.performed -= m_Wrapper.m_NewactionmapActionsCallbackInterface.OnNewaction; @Newaction.canceled -= m_Wrapper.m_NewactionmapActionsCallbackInterface.OnNewaction; } m_Wrapper.m_NewactionmapActionsCallbackInterface = instance; if (instance != null) { @Newaction.started += instance.OnNewaction; @Newaction.performed += instance.OnNewaction; @Newaction.canceled += instance.OnNewaction; } } } public NewactionmapActions @Newactionmap => new NewactionmapActions(this); public interface INewactionmapActions { void OnNewaction(InputAction.CallbackContext context); } }