//------------------------------------------------------------------------------
//
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
// version 1.3.0
// from Assets/Scripts/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"": ""Player"",
""id"": ""952aaaa8-bf7a-47f1-b438-385d6a96429c"",
""actions"": [
{
""name"": ""Select"",
""type"": ""Button"",
""id"": ""caf57feb-e167-4241-9310-a582af647a6b"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
}
],
""bindings"": [
{
""name"": """",
""id"": ""d87e80fc-28aa-4c14-b522-31ea00f739b3"",
""path"": ""/buttonSouth"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Select"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""b2467757-6beb-4a81-8321-77f102bc69c6"",
""path"": ""/e"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Select"",
""isComposite"": false,
""isPartOfComposite"": false
}
]
}
],
""controlSchemes"": []
}");
// Player
m_Player = asset.FindActionMap("Player", throwIfNotFound: true);
m_Player_Select = m_Player.FindAction("Select", 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 IPlayerActions m_PlayerActionsCallbackInterface;
private readonly InputAction m_Player_Select;
public struct PlayerActions
{
private @PlayerControls m_Wrapper;
public PlayerActions(@PlayerControls wrapper) { m_Wrapper = wrapper; }
public InputAction @Select => m_Wrapper.m_Player_Select;
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)
{
@Select.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnSelect;
@Select.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnSelect;
@Select.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnSelect;
}
m_Wrapper.m_PlayerActionsCallbackInterface = instance;
if (instance != null)
{
@Select.started += instance.OnSelect;
@Select.performed += instance.OnSelect;
@Select.canceled += instance.OnSelect;
}
}
}
public PlayerActions @Player => new PlayerActions(this);
public interface IPlayerActions
{
void OnSelect(InputAction.CallbackContext context);
}
}