//------------------------------------------------------------------------------
// <auto-generated>
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
// version 1.3.0
// from Assets/PlayerInputActions.inputactions
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine.InputSystem;
using UnityEngine.InputSystem.Utilities;
public partial class @PlayerInputActions : IInputActionCollection2, IDisposable
{
public InputActionAsset asset { get; }
public @PlayerInputActions()
{
asset = InputActionAsset.FromJson(@"{
""name"": ""PlayerInputActions"",
""maps"": [
{
""name"": ""Player"",
""id"": ""acd20084-df9a-469c-be63-2de82e53794c"",
""actions"": [
{
""name"": ""CameraMovement"",
""type"": ""Value"",
""id"": ""0f9f8b9b-cc14-4a76-8e49-ff978a25b953"",
""expectedControlType"": ""Vector2"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": true
},
{
""name"": ""CameraRotate"",
""type"": ""Value"",
""id"": ""c78be949-c02a-464c-afec-3e67266c2ee4"",
""expectedControlType"": ""Axis"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": true
},
{
""name"": ""CameraZoom"",
""type"": ""Value"",
""id"": ""1ec24757-7c5a-40e8-99dd-56ea74f3f582"",
""expectedControlType"": ""Axis"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": true
},
{
""name"": ""Click"",
""type"": ""Button"",
""id"": ""edcefeca-182c-4c63-ba31-b20656bdbb4f"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
}
],
""bindings"": [
{
""name"": ""2D Vector"",
""id"": ""a569e40c-226e-408a-bf97-575add5d4826"",
""path"": ""2DVector"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""CameraMovement"",
""isComposite"": true,
""isPartOfComposite"": false
},
{
""name"": ""up"",
""id"": ""03a8b7f2-5fbe-4636-932a-f9ac50754aa5"",
""path"": ""<Keyboard>/w"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""CameraMovement"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""down"",
""id"": ""3fa7d227-bb2b-42b6-9612-d579474123ba"",
""path"": ""<Keyboard>/s"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""CameraMovement"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""left"",
""id"": ""ec81b84f-4ff0-4eff-8b90-13ed8ca09cb5"",
""path"": ""<Keyboard>/a"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""CameraMovement"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""right"",
""id"": ""c824fec4-841c-4504-b405-400b5d800903"",
""path"": ""<Keyboard>/d"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""CameraMovement"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""1D Axis"",
""id"": ""4aa1e988-db43-4ceb-a531-90601615eb27"",
""path"": ""1DAxis"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""CameraRotate"",
""isComposite"": true,
""isPartOfComposite"": false
},
{
""name"": ""negative"",
""id"": ""a589de05-15a1-4000-a4ef-5825c26e430a"",
""path"": ""<Keyboard>/e"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""CameraRotate"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""positive"",
""id"": ""ad09b24b-5e51-42d9-ae86-1dc7f50b1f8b"",
""path"": ""<Keyboard>/q"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""CameraRotate"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": """",
""id"": ""3fd5629f-6037-4e6b-b211-c21c486e56c3"",
""path"": ""<Mouse>/scroll/y"",
""interactions"": """",
""processors"": ""Clamp(min=-1,max=1),Invert"",
""groups"": """",
""action"": ""CameraZoom"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""f270f827-3213-4803-8e6c-690593a30c00"",
""path"": ""<Mouse>/leftButton"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Click"",
""isComposite"": false,
""isPartOfComposite"": false
}
]
}
],
""controlSchemes"": []
}");
// Player
m_Player = asset.FindActionMap("Player", throwIfNotFound: true);
m_Player_CameraMovement = m_Player.FindAction("CameraMovement", throwIfNotFound: true);
m_Player_CameraRotate = m_Player.FindAction("CameraRotate", throwIfNotFound: true);
m_Player_CameraZoom = m_Player.FindAction("CameraZoom", throwIfNotFound: true);
m_Player_Click = m_Player.FindAction("Click", throwIfNotFound: true);
}
public void Dispose()
{
UnityEngine.Object.Destroy(asset);
}
public InputBinding? bindingMask
{
get => asset.bindingMask;
set => asset.bindingMask = value;
}
public ReadOnlyArray<InputDevice>? devices
{
get => asset.devices;
set => asset.devices = value;
}
public ReadOnlyArray<InputControlScheme> controlSchemes => asset.controlSchemes;
public bool Contains(InputAction action)
{
return asset.Contains(action);
}
public IEnumerator<InputAction> GetEnumerator()
{
return asset.GetEnumerator();
}
IEnumerator IEnumerable.GetEnumerator()
{
return GetEnumerator();
}
public void Enable()
{
asset.Enable();
}
public void Disable()
{
asset.Disable();
}
public IEnumerable<InputBinding> 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 IPlayerActions m_PlayerActionsCallbackInterface;
private readonly InputAction m_Player_CameraMovement;
private readonly InputAction m_Player_CameraRotate;
private readonly InputAction m_Player_CameraZoom;
private readonly InputAction m_Player_Click;
public struct PlayerActions
{
private @PlayerInputActions m_Wrapper;
public PlayerActions(@PlayerInputActions wrapper) { m_Wrapper = wrapper; }
public InputAction @CameraMovement => m_Wrapper.m_Player_CameraMovement;
public InputAction @CameraRotate => m_Wrapper.m_Player_CameraRotate;
public InputAction @CameraZoom => m_Wrapper.m_Player_CameraZoom;
public InputAction @Click => m_Wrapper.m_Player_Click;
public InputActionMap Get() { return m_Wrapper.m_Player; }
public void Enable() { Get().Enable(); }
public void Disable() { Get().Disable(); }
public bool enabled => Get().enabled;
public static implicit operator InputActionMap(PlayerActions set) { return set.Get(); }
public void SetCallbacks(IPlayerActions instance)
{
if (m_Wrapper.m_PlayerActionsCallbackInterface != null)
{
@CameraMovement.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnCameraMovement;
@CameraMovement.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnCameraMovement;
@CameraMovement.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnCameraMovement;
@CameraRotate.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnCameraRotate;
@CameraRotate.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnCameraRotate;
@CameraRotate.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnCameraRotate;
@CameraZoom.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnCameraZoom;
@CameraZoom.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnCameraZoom;
@CameraZoom.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnCameraZoom;
@Click.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnClick;
@Click.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnClick;
@Click.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnClick;
}
m_Wrapper.m_PlayerActionsCallbackInterface = instance;
if (instance != null)
{
@CameraMovement.started += instance.OnCameraMovement;
@CameraMovement.performed += instance.OnCameraMovement;
@CameraMovement.canceled += instance.OnCameraMovement;
@CameraRotate.started += instance.OnCameraRotate;
@CameraRotate.performed += instance.OnCameraRotate;
@CameraRotate.canceled += instance.OnCameraRotate;
@CameraZoom.started += instance.OnCameraZoom;
@CameraZoom.performed += instance.OnCameraZoom;
@CameraZoom.canceled += instance.OnCameraZoom;
@Click.started += instance.OnClick;
@Click.performed += instance.OnClick;
@Click.canceled += instance.OnClick;
}
}
}
public PlayerActions @Player => new PlayerActions(this);
public interface IPlayerActions
{
void OnCameraMovement(InputAction.CallbackContext context);
void OnCameraRotate(InputAction.CallbackContext context);
void OnCameraZoom(InputAction.CallbackContext context);
void OnClick(InputAction.CallbackContext context);
}
}