// GENERATED AUTOMATICALLY FROM 'Assets/PlayerControls.inputactions' using System; using System.Collections; using System.Collections.Generic; using UnityEngine.InputSystem; using UnityEngine.InputSystem.Utilities; public class @PlayerControls : IInputActionCollection, IDisposable { public InputActionAsset asset { get; } public @PlayerControls() { asset = InputActionAsset.FromJson(@"{ ""name"": ""PlayerControls"", ""maps"": [ { ""name"": ""Gameplay"", ""id"": ""ab50d8bd-3a51-45da-93f1-559b352c9e91"", ""actions"": [ { ""name"": ""Move Left"", ""type"": ""Button"", ""id"": ""2c336112-801a-4f65-9a46-7a64ded816be"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """" }, { ""name"": ""Move Right"", ""type"": ""Button"", ""id"": ""2f0a8df3-36f2-4ce7-85ed-0761363672fa"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """" }, { ""name"": ""Jump"", ""type"": ""Button"", ""id"": ""832d2e58-7d24-471f-93a1-24c2e4b86ffd"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """" }, { ""name"": ""Use"", ""type"": ""Button"", ""id"": ""8024baf6-f8c7-4679-aeee-5d86fd2a736a"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """" } ], ""bindings"": [ { ""name"": """", ""id"": ""6aca301e-ad69-4ef5-b726-a2feca4c9f47"", ""path"": ""/leftStick/left"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move Left"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""0395b1d4-bfa7-4d28-aa32-4e11a748fb13"", ""path"": ""/leftStick/right"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move Right"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""cd727e25-7d1c-4a06-8312-686a2abd6a13"", ""path"": ""/buttonSouth"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Jump"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""e504edd0-5cb6-4640-9eeb-31daf533456c"", ""path"": ""/buttonWest"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Use"", ""isComposite"": false, ""isPartOfComposite"": false } ] } ], ""controlSchemes"": [] }"); // Gameplay m_Gameplay = asset.FindActionMap("Gameplay", throwIfNotFound: true); m_Gameplay_MoveLeft = m_Gameplay.FindAction("Move Left", throwIfNotFound: true); m_Gameplay_MoveRight = m_Gameplay.FindAction("Move Right", throwIfNotFound: true); m_Gameplay_Jump = m_Gameplay.FindAction("Jump", throwIfNotFound: true); m_Gameplay_Use = m_Gameplay.FindAction("Use", 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(); } // Gameplay private readonly InputActionMap m_Gameplay; private IGameplayActions m_GameplayActionsCallbackInterface; private readonly InputAction m_Gameplay_MoveLeft; private readonly InputAction m_Gameplay_MoveRight; private readonly InputAction m_Gameplay_Jump; private readonly InputAction m_Gameplay_Use; public struct GameplayActions { private @PlayerControls m_Wrapper; public GameplayActions(@PlayerControls wrapper) { m_Wrapper = wrapper; } public InputAction @MoveLeft => m_Wrapper.m_Gameplay_MoveLeft; public InputAction @MoveRight => m_Wrapper.m_Gameplay_MoveRight; public InputAction @Jump => m_Wrapper.m_Gameplay_Jump; public InputAction @Use => m_Wrapper.m_Gameplay_Use; 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 SetCallbacks(IGameplayActions instance) { if (m_Wrapper.m_GameplayActionsCallbackInterface != null) { @MoveLeft.started -= m_Wrapper.m_GameplayActionsCallbackInterface.OnMoveLeft; @MoveLeft.performed -= m_Wrapper.m_GameplayActionsCallbackInterface.OnMoveLeft; @MoveLeft.canceled -= m_Wrapper.m_GameplayActionsCallbackInterface.OnMoveLeft; @MoveRight.started -= m_Wrapper.m_GameplayActionsCallbackInterface.OnMoveRight; @MoveRight.performed -= m_Wrapper.m_GameplayActionsCallbackInterface.OnMoveRight; @MoveRight.canceled -= m_Wrapper.m_GameplayActionsCallbackInterface.OnMoveRight; @Jump.started -= m_Wrapper.m_GameplayActionsCallbackInterface.OnJump; @Jump.performed -= m_Wrapper.m_GameplayActionsCallbackInterface.OnJump; @Jump.canceled -= m_Wrapper.m_GameplayActionsCallbackInterface.OnJump; @Use.started -= m_Wrapper.m_GameplayActionsCallbackInterface.OnUse; @Use.performed -= m_Wrapper.m_GameplayActionsCallbackInterface.OnUse; @Use.canceled -= m_Wrapper.m_GameplayActionsCallbackInterface.OnUse; } m_Wrapper.m_GameplayActionsCallbackInterface = instance; if (instance != null) { @MoveLeft.started += instance.OnMoveLeft; @MoveLeft.performed += instance.OnMoveLeft; @MoveLeft.canceled += instance.OnMoveLeft; @MoveRight.started += instance.OnMoveRight; @MoveRight.performed += instance.OnMoveRight; @MoveRight.canceled += instance.OnMoveRight; @Jump.started += instance.OnJump; @Jump.performed += instance.OnJump; @Jump.canceled += instance.OnJump; @Use.started += instance.OnUse; @Use.performed += instance.OnUse; @Use.canceled += instance.OnUse; } } } public GameplayActions @Gameplay => new GameplayActions(this); public interface IGameplayActions { void OnMoveLeft(InputAction.CallbackContext context); void OnMoveRight(InputAction.CallbackContext context); void OnJump(InputAction.CallbackContext context); void OnUse(InputAction.CallbackContext context); } }