//------------------------------------------------------------------------------ // // This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator // version 1.7.0 // from Assets/PlayerControls.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 @PlayerControls: IInputActionCollection2, IDisposable { public InputActionAsset asset { get; } public @PlayerControls() { asset = InputActionAsset.FromJson(@"{ ""name"": ""PlayerControls"", ""maps"": [ { ""name"": ""Gameplay"", ""id"": ""34d14788-6775-40b7-a5e3-29a48e9fb898"", ""actions"": [ { ""name"": ""Up"", ""type"": ""Button"", ""id"": ""29cd7fd5-6159-4f3f-b497-eef167d3246f"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Down"", ""type"": ""Button"", ""id"": ""3a8e38e6-f9a0-4754-9564-a85fc90a8e7e"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Move"", ""type"": ""Value"", ""id"": ""b4924df1-3172-4242-933c-5365a384ad47"", ""expectedControlType"": ""Stick"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": true }, { ""name"": ""Rotate"", ""type"": ""Value"", ""id"": ""8c0a19d1-35e8-4f7d-b316-baa8daf7b9ba"", ""expectedControlType"": ""Stick"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": true }, { ""name"": ""CameraRotationLeft"", ""type"": ""Button"", ""id"": ""0a116665-ac14-4194-80ba-70dacb67de9e"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""CameraRotationRight"", ""type"": ""Button"", ""id"": ""82f1ccc6-00c7-4370-97c3-d61b31f6bda9"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""resetCameraRotation"", ""type"": ""Button"", ""id"": ""bca2e0e1-f10e-423d-8cc3-f7e432a9aacd"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""resetCameraPosition"", ""type"": ""Button"", ""id"": ""ee6563ae-7904-4777-afa5-526170208649"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false } ], ""bindings"": [ { ""name"": """", ""id"": ""eb4c779d-90f8-473d-8fce-66377956d57d"", ""path"": ""/rightTrigger"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Up"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""fa1415c2-e45e-48d2-99e0-3e6b9adcfe76"", ""path"": ""/leftTrigger"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Down"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""d2e9011c-2c7f-4e12-81db-de4e6c7d65d9"", ""path"": ""/leftStick"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""bbb3d1bc-06d4-41df-9458-a5bc31662586"", ""path"": ""/rightStick"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Rotate"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""70270423-9056-4a5f-b335-74461d13c272"", ""path"": ""/leftShoulder"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""CameraRotationLeft"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""3595ee40-b5a7-41d3-b46b-d85cbbf0579d"", ""path"": ""/rightShoulder"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""CameraRotationRight"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""ac3a8d25-ab33-40a0-8654-580f9fde1bb2"", ""path"": ""/rightStickPress"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""resetCameraRotation"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""4e29dc17-a971-4790-aaf3-61f130e1808c"", ""path"": ""/leftStickPress"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""resetCameraPosition"", ""isComposite"": false, ""isPartOfComposite"": false } ] } ], ""controlSchemes"": [] }"); // Gameplay m_Gameplay = asset.FindActionMap("Gameplay", throwIfNotFound: true); m_Gameplay_Up = m_Gameplay.FindAction("Up", throwIfNotFound: true); m_Gameplay_Down = m_Gameplay.FindAction("Down", throwIfNotFound: true); m_Gameplay_Move = m_Gameplay.FindAction("Move", throwIfNotFound: true); m_Gameplay_Rotate = m_Gameplay.FindAction("Rotate", throwIfNotFound: true); m_Gameplay_CameraRotationLeft = m_Gameplay.FindAction("CameraRotationLeft", throwIfNotFound: true); m_Gameplay_CameraRotationRight = m_Gameplay.FindAction("CameraRotationRight", throwIfNotFound: true); m_Gameplay_resetCameraRotation = m_Gameplay.FindAction("resetCameraRotation", throwIfNotFound: true); m_Gameplay_resetCameraPosition = m_Gameplay.FindAction("resetCameraPosition", 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); } // Gameplay private readonly InputActionMap m_Gameplay; private List m_GameplayActionsCallbackInterfaces = new List(); private readonly InputAction m_Gameplay_Up; private readonly InputAction m_Gameplay_Down; private readonly InputAction m_Gameplay_Move; private readonly InputAction m_Gameplay_Rotate; private readonly InputAction m_Gameplay_CameraRotationLeft; private readonly InputAction m_Gameplay_CameraRotationRight; private readonly InputAction m_Gameplay_resetCameraRotation; private readonly InputAction m_Gameplay_resetCameraPosition; public struct GameplayActions { private @PlayerControls m_Wrapper; public GameplayActions(@PlayerControls wrapper) { m_Wrapper = wrapper; } public InputAction @Up => m_Wrapper.m_Gameplay_Up; public InputAction @Down => m_Wrapper.m_Gameplay_Down; public InputAction @Move => m_Wrapper.m_Gameplay_Move; public InputAction @Rotate => m_Wrapper.m_Gameplay_Rotate; public InputAction @CameraRotationLeft => m_Wrapper.m_Gameplay_CameraRotationLeft; public InputAction @CameraRotationRight => m_Wrapper.m_Gameplay_CameraRotationRight; public InputAction @resetCameraRotation => m_Wrapper.m_Gameplay_resetCameraRotation; public InputAction @resetCameraPosition => m_Wrapper.m_Gameplay_resetCameraPosition; public InputActionMap Get() { return m_Wrapper.m_Gameplay; } public void Enable() { Get().Enable(); } public void Disable() { Get().Disable(); } public bool enabled => Get().enabled; public static implicit operator InputActionMap(GameplayActions set) { return set.Get(); } public void AddCallbacks(IGameplayActions instance) { if (instance == null || m_Wrapper.m_GameplayActionsCallbackInterfaces.Contains(instance)) return; m_Wrapper.m_GameplayActionsCallbackInterfaces.Add(instance); @Up.started += instance.OnUp; @Up.performed += instance.OnUp; @Up.canceled += instance.OnUp; @Down.started += instance.OnDown; @Down.performed += instance.OnDown; @Down.canceled += instance.OnDown; @Move.started += instance.OnMove; @Move.performed += instance.OnMove; @Move.canceled += instance.OnMove; @Rotate.started += instance.OnRotate; @Rotate.performed += instance.OnRotate; @Rotate.canceled += instance.OnRotate; @CameraRotationLeft.started += instance.OnCameraRotationLeft; @CameraRotationLeft.performed += instance.OnCameraRotationLeft; @CameraRotationLeft.canceled += instance.OnCameraRotationLeft; @CameraRotationRight.started += instance.OnCameraRotationRight; @CameraRotationRight.performed += instance.OnCameraRotationRight; @CameraRotationRight.canceled += instance.OnCameraRotationRight; @resetCameraRotation.started += instance.OnResetCameraRotation; @resetCameraRotation.performed += instance.OnResetCameraRotation; @resetCameraRotation.canceled += instance.OnResetCameraRotation; @resetCameraPosition.started += instance.OnResetCameraPosition; @resetCameraPosition.performed += instance.OnResetCameraPosition; @resetCameraPosition.canceled += instance.OnResetCameraPosition; } private void UnregisterCallbacks(IGameplayActions instance) { @Up.started -= instance.OnUp; @Up.performed -= instance.OnUp; @Up.canceled -= instance.OnUp; @Down.started -= instance.OnDown; @Down.performed -= instance.OnDown; @Down.canceled -= instance.OnDown; @Move.started -= instance.OnMove; @Move.performed -= instance.OnMove; @Move.canceled -= instance.OnMove; @Rotate.started -= instance.OnRotate; @Rotate.performed -= instance.OnRotate; @Rotate.canceled -= instance.OnRotate; @CameraRotationLeft.started -= instance.OnCameraRotationLeft; @CameraRotationLeft.performed -= instance.OnCameraRotationLeft; @CameraRotationLeft.canceled -= instance.OnCameraRotationLeft; @CameraRotationRight.started -= instance.OnCameraRotationRight; @CameraRotationRight.performed -= instance.OnCameraRotationRight; @CameraRotationRight.canceled -= instance.OnCameraRotationRight; @resetCameraRotation.started -= instance.OnResetCameraRotation; @resetCameraRotation.performed -= instance.OnResetCameraRotation; @resetCameraRotation.canceled -= instance.OnResetCameraRotation; @resetCameraPosition.started -= instance.OnResetCameraPosition; @resetCameraPosition.performed -= instance.OnResetCameraPosition; @resetCameraPosition.canceled -= instance.OnResetCameraPosition; } public void RemoveCallbacks(IGameplayActions instance) { if (m_Wrapper.m_GameplayActionsCallbackInterfaces.Remove(instance)) UnregisterCallbacks(instance); } public void SetCallbacks(IGameplayActions instance) { foreach (var item in m_Wrapper.m_GameplayActionsCallbackInterfaces) UnregisterCallbacks(item); m_Wrapper.m_GameplayActionsCallbackInterfaces.Clear(); AddCallbacks(instance); } } public GameplayActions @Gameplay => new GameplayActions(this); public interface IGameplayActions { void OnUp(InputAction.CallbackContext context); void OnDown(InputAction.CallbackContext context); void OnMove(InputAction.CallbackContext context); void OnRotate(InputAction.CallbackContext context); void OnCameraRotationLeft(InputAction.CallbackContext context); void OnCameraRotationRight(InputAction.CallbackContext context); void OnResetCameraRotation(InputAction.CallbackContext context); void OnResetCameraPosition(InputAction.CallbackContext context); } }