//------------------------------------------------------------------------------
//
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
// version 1.5.1
// from Assets/Defs/InputActions.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 @InputActions: IInputActionCollection2, IDisposable
{
public InputActionAsset asset { get; }
public @InputActions()
{
asset = InputActionAsset.FromJson(@"{
""name"": ""InputActions"",
""maps"": [
{
""name"": ""Player"",
""id"": ""c3a65a74-d8a0-4b42-a881-420d05e6ac1f"",
""actions"": [
{
""name"": ""Move"",
""type"": ""Value"",
""id"": ""7cb39be5-6517-4a02-8242-00eb49325f65"",
""expectedControlType"": ""Vector2"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": true
},
{
""name"": ""Jump"",
""type"": ""Button"",
""id"": ""4e602a82-721c-42c3-87c8-8fe0c196c42f"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""UIRot"",
""type"": ""Value"",
""id"": ""0cba42ec-bb9f-44a9-914d-b9edfb4136a0"",
""expectedControlType"": ""Vector2"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": true
},
{
""name"": ""PressDown"",
""type"": ""Button"",
""id"": ""dcc64a51-10fb-41c2-a496-fdffe2b6307e"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Touch0"",
""type"": ""Value"",
""id"": ""4184bff5-7d5e-4eb0-a2b6-c3e57c323516"",
""expectedControlType"": ""Vector2"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": true
},
{
""name"": ""Touch1"",
""type"": ""Value"",
""id"": ""857e8ab0-8f79-4c77-9c21-974520656eea"",
""expectedControlType"": ""Vector2"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": true
},
{
""name"": ""Camera"",
""type"": ""Value"",
""id"": ""bf0b2066-2bff-42a3-9b65-402f6d8066a9"",
""expectedControlType"": ""Vector2"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": true
}
],
""bindings"": [
{
""name"": ""WASD"",
""id"": ""bab08eb7-782f-4e21-9a72-6b3c190c0e0f"",
""path"": ""2DVector"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Move"",
""isComposite"": true,
""isPartOfComposite"": false
},
{
""name"": ""up"",
""id"": ""b78b9ec3-a775-4e11-86c0-e72efad24452"",
""path"": ""/w"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Move"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""down"",
""id"": ""a108c3a8-d606-48b1-a267-1230d4924a06"",
""path"": ""/s"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Move"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""left"",
""id"": ""ef42e706-084a-441a-971c-b37b9ff51d54"",
""path"": ""/a"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Move"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""right"",
""id"": ""0671f667-a5f4-4be0-b096-f30e049e8b67"",
""path"": ""/d"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Move"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": """",
""id"": ""8f6591a1-b519-45a1-8f85-0900c22e0bfa"",
""path"": ""/leftStick"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Move"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""6ffa5d62-d6f9-4e28-ac49-1194132095e0"",
""path"": ""/space"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Jump"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""f4e974b0-ee7b-4e3e-a28e-2bd654b60a8f"",
""path"": ""/buttonSouth"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Jump"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""d4ccbb01-d9b6-4358-a81e-c96621bfb98a"",
""path"": ""/delta"",
""interactions"": """",
""processors"": ""ScaleVector2"",
""groups"": """",
""action"": ""UIRot"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""ea41aaa3-71af-4a0f-a472-46b9f582153a"",
""path"": ""/touch0/delta"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""UIRot"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""4077713c-4a4a-4a7d-b59c-3844eff339b8"",
""path"": ""/leftButton"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""PressDown"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""1f3ce28e-26f4-4475-9185-1d065b52e2b8"",
""path"": ""/press"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""PressDown"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""ce253bba-0484-4170-ac71-817a0d336bb2"",
""path"": ""/touch0/delta"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Touch0"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""2777540a-a6da-42d2-9968-207cb69b0dc6"",
""path"": ""/touch1/delta"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Touch1"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""22ca5a7c-ec1e-4637-bf79-ae08d35db535"",
""path"": ""/delta"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Camera"",
""isComposite"": false,
""isPartOfComposite"": false
}
]
}
],
""controlSchemes"": []
}");
// Player
m_Player = asset.FindActionMap("Player", throwIfNotFound: true);
m_Player_Move = m_Player.FindAction("Move", throwIfNotFound: true);
m_Player_Jump = m_Player.FindAction("Jump", throwIfNotFound: true);
m_Player_UIRot = m_Player.FindAction("UIRot", throwIfNotFound: true);
m_Player_PressDown = m_Player.FindAction("PressDown", throwIfNotFound: true);
m_Player_Touch0 = m_Player.FindAction("Touch0", throwIfNotFound: true);
m_Player_Touch1 = m_Player.FindAction("Touch1", throwIfNotFound: true);
m_Player_Camera = m_Player.FindAction("Camera", 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);
}
// Player
private readonly InputActionMap m_Player;
private List m_PlayerActionsCallbackInterfaces = new List();
private readonly InputAction m_Player_Move;
private readonly InputAction m_Player_Jump;
private readonly InputAction m_Player_UIRot;
private readonly InputAction m_Player_PressDown;
private readonly InputAction m_Player_Touch0;
private readonly InputAction m_Player_Touch1;
private readonly InputAction m_Player_Camera;
public struct PlayerActions
{
private @InputActions m_Wrapper;
public PlayerActions(@InputActions wrapper) { m_Wrapper = wrapper; }
public InputAction @Move => m_Wrapper.m_Player_Move;
public InputAction @Jump => m_Wrapper.m_Player_Jump;
public InputAction @UIRot => m_Wrapper.m_Player_UIRot;
public InputAction @PressDown => m_Wrapper.m_Player_PressDown;
public InputAction @Touch0 => m_Wrapper.m_Player_Touch0;
public InputAction @Touch1 => m_Wrapper.m_Player_Touch1;
public InputAction @Camera => m_Wrapper.m_Player_Camera;
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 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;
@Jump.started += instance.OnJump;
@Jump.performed += instance.OnJump;
@Jump.canceled += instance.OnJump;
@UIRot.started += instance.OnUIRot;
@UIRot.performed += instance.OnUIRot;
@UIRot.canceled += instance.OnUIRot;
@PressDown.started += instance.OnPressDown;
@PressDown.performed += instance.OnPressDown;
@PressDown.canceled += instance.OnPressDown;
@Touch0.started += instance.OnTouch0;
@Touch0.performed += instance.OnTouch0;
@Touch0.canceled += instance.OnTouch0;
@Touch1.started += instance.OnTouch1;
@Touch1.performed += instance.OnTouch1;
@Touch1.canceled += instance.OnTouch1;
@Camera.started += instance.OnCamera;
@Camera.performed += instance.OnCamera;
@Camera.canceled += instance.OnCamera;
}
private void UnregisterCallbacks(IPlayerActions instance)
{
@Move.started -= instance.OnMove;
@Move.performed -= instance.OnMove;
@Move.canceled -= instance.OnMove;
@Jump.started -= instance.OnJump;
@Jump.performed -= instance.OnJump;
@Jump.canceled -= instance.OnJump;
@UIRot.started -= instance.OnUIRot;
@UIRot.performed -= instance.OnUIRot;
@UIRot.canceled -= instance.OnUIRot;
@PressDown.started -= instance.OnPressDown;
@PressDown.performed -= instance.OnPressDown;
@PressDown.canceled -= instance.OnPressDown;
@Touch0.started -= instance.OnTouch0;
@Touch0.performed -= instance.OnTouch0;
@Touch0.canceled -= instance.OnTouch0;
@Touch1.started -= instance.OnTouch1;
@Touch1.performed -= instance.OnTouch1;
@Touch1.canceled -= instance.OnTouch1;
@Camera.started -= instance.OnCamera;
@Camera.performed -= instance.OnCamera;
@Camera.canceled -= instance.OnCamera;
}
public void RemoveCallbacks(IPlayerActions instance)
{
if (m_Wrapper.m_PlayerActionsCallbackInterfaces.Remove(instance))
UnregisterCallbacks(instance);
}
public void SetCallbacks(IPlayerActions instance)
{
foreach (var item in m_Wrapper.m_PlayerActionsCallbackInterfaces)
UnregisterCallbacks(item);
m_Wrapper.m_PlayerActionsCallbackInterfaces.Clear();
AddCallbacks(instance);
}
}
public PlayerActions @Player => new PlayerActions(this);
public interface IPlayerActions
{
void OnMove(InputAction.CallbackContext context);
void OnJump(InputAction.CallbackContext context);
void OnUIRot(InputAction.CallbackContext context);
void OnPressDown(InputAction.CallbackContext context);
void OnTouch0(InputAction.CallbackContext context);
void OnTouch1(InputAction.CallbackContext context);
void OnCamera(InputAction.CallbackContext context);
}
}