425 lines
19 KiB
C#
425 lines
19 KiB
C#
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
|
|
// version 1.4.4
|
|
// from Assets/Test-Input/Test.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 @TheTestInputs : IInputActionCollection2, IDisposable
|
|
{
|
|
public InputActionAsset asset { get; }
|
|
public @TheTestInputs()
|
|
{
|
|
asset = InputActionAsset.FromJson(@"{
|
|
""name"": ""Test"",
|
|
""maps"": [
|
|
{
|
|
""name"": ""Test"",
|
|
""id"": ""8c830899-5b93-4485-b6cf-690688a32987"",
|
|
""actions"": [
|
|
{
|
|
""name"": ""PressButton1"",
|
|
""type"": ""Button"",
|
|
""id"": ""7fc97698-5a30-4ede-b705-3089212e33a4"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""PressButton2"",
|
|
""type"": ""Button"",
|
|
""id"": ""36279e50-c398-4905-a495-8c9a0c7ea6a0"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""PressButton3"",
|
|
""type"": ""Button"",
|
|
""id"": ""5e4a401d-31b5-4238-be45-fcb742db8257"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""PressButtonA"",
|
|
""type"": ""Button"",
|
|
""id"": ""282753cf-d354-460a-b3d8-897b57100e1c"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""PressButtonB"",
|
|
""type"": ""Button"",
|
|
""id"": ""bcb4b7cb-c447-4222-8b17-021f5992da49"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""PressButtonC"",
|
|
""type"": ""Button"",
|
|
""id"": ""72e5810c-02b1-45de-a7a9-e0732cc11a84"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""PressButtonStart"",
|
|
""type"": ""Button"",
|
|
""id"": ""85317456-76d2-423e-bfbe-4c59f9412c30"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""PressButtonPower"",
|
|
""type"": ""Button"",
|
|
""id"": ""5e2022da-d536-4c6d-b997-9b9005b5fcc1"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Move"",
|
|
""type"": ""Value"",
|
|
""id"": ""1efea12d-0e62-4272-98f2-419a3972b23e"",
|
|
""expectedControlType"": ""Vector2"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": true
|
|
}
|
|
],
|
|
""bindings"": [
|
|
{
|
|
""name"": """",
|
|
""id"": ""1b6d6e5f-df9e-4700-b09a-58d03a083c57"",
|
|
""path"": ""<ConjureArcadeController>/button1"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""New control scheme"",
|
|
""action"": ""PressButton1"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""52815d9a-0ebf-48b6-ae4f-0db59a5e0785"",
|
|
""path"": ""<Keyboard>/l"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""PressButton1"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""dd68c926-eaf2-402d-a3dc-c0c0e5278960"",
|
|
""path"": ""<ConjureArcadeController>/button2"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""New control scheme"",
|
|
""action"": ""PressButton2"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""c4ec34c3-a5b5-4d25-951d-2c4e9ae5567f"",
|
|
""path"": ""<ConjureArcadeController>/button3"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""New control scheme"",
|
|
""action"": ""PressButton3"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""5d36faa3-e6f9-4d7e-a708-8fa196d0bfa2"",
|
|
""path"": ""<ConjureArcadeController>/buttonA"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""New control scheme"",
|
|
""action"": ""PressButtonA"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""a7c51fe1-33ec-4c06-9cec-0f45917c7347"",
|
|
""path"": ""<ConjureArcadeController>/buttonB"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""New control scheme"",
|
|
""action"": ""PressButtonB"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""e580378c-77e5-413f-9dff-8b10adca2e64"",
|
|
""path"": ""<ConjureArcadeController>/buttonC"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""New control scheme"",
|
|
""action"": ""PressButtonC"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""a7d5c7a7-7684-4f91-b0f1-c27cf506a3f6"",
|
|
""path"": ""<ConjureArcadeController>/buttonStart"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""New control scheme"",
|
|
""action"": ""PressButtonStart"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""3cd16b1e-35e3-4be2-9e3e-e68a8470ba76"",
|
|
""path"": ""<ConjureArcadeController>/buttonPower"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""New control scheme"",
|
|
""action"": ""PressButtonPower"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""7628f7a3-2ff4-41b8-8f72-a8c723238dff"",
|
|
""path"": ""<ConjureArcadeController>/stick"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
}
|
|
]
|
|
}
|
|
],
|
|
""controlSchemes"": [
|
|
{
|
|
""name"": ""New control scheme"",
|
|
""bindingGroup"": ""New control scheme"",
|
|
""devices"": [
|
|
{
|
|
""devicePath"": ""<ConjureArcadeController>"",
|
|
""isOptional"": false,
|
|
""isOR"": false
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}");
|
|
// Test
|
|
m_Test = asset.FindActionMap("Test", throwIfNotFound: true);
|
|
m_Test_PressButton1 = m_Test.FindAction("PressButton1", throwIfNotFound: true);
|
|
m_Test_PressButton2 = m_Test.FindAction("PressButton2", throwIfNotFound: true);
|
|
m_Test_PressButton3 = m_Test.FindAction("PressButton3", throwIfNotFound: true);
|
|
m_Test_PressButtonA = m_Test.FindAction("PressButtonA", throwIfNotFound: true);
|
|
m_Test_PressButtonB = m_Test.FindAction("PressButtonB", throwIfNotFound: true);
|
|
m_Test_PressButtonC = m_Test.FindAction("PressButtonC", throwIfNotFound: true);
|
|
m_Test_PressButtonStart = m_Test.FindAction("PressButtonStart", throwIfNotFound: true);
|
|
m_Test_PressButtonPower = m_Test.FindAction("PressButtonPower", throwIfNotFound: true);
|
|
m_Test_Move = m_Test.FindAction("Move", 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);
|
|
}
|
|
|
|
// Test
|
|
private readonly InputActionMap m_Test;
|
|
private ITestActions m_TestActionsCallbackInterface;
|
|
private readonly InputAction m_Test_PressButton1;
|
|
private readonly InputAction m_Test_PressButton2;
|
|
private readonly InputAction m_Test_PressButton3;
|
|
private readonly InputAction m_Test_PressButtonA;
|
|
private readonly InputAction m_Test_PressButtonB;
|
|
private readonly InputAction m_Test_PressButtonC;
|
|
private readonly InputAction m_Test_PressButtonStart;
|
|
private readonly InputAction m_Test_PressButtonPower;
|
|
private readonly InputAction m_Test_Move;
|
|
public struct TestActions
|
|
{
|
|
private @TheTestInputs m_Wrapper;
|
|
public TestActions(@TheTestInputs wrapper) { m_Wrapper = wrapper; }
|
|
public InputAction @PressButton1 => m_Wrapper.m_Test_PressButton1;
|
|
public InputAction @PressButton2 => m_Wrapper.m_Test_PressButton2;
|
|
public InputAction @PressButton3 => m_Wrapper.m_Test_PressButton3;
|
|
public InputAction @PressButtonA => m_Wrapper.m_Test_PressButtonA;
|
|
public InputAction @PressButtonB => m_Wrapper.m_Test_PressButtonB;
|
|
public InputAction @PressButtonC => m_Wrapper.m_Test_PressButtonC;
|
|
public InputAction @PressButtonStart => m_Wrapper.m_Test_PressButtonStart;
|
|
public InputAction @PressButtonPower => m_Wrapper.m_Test_PressButtonPower;
|
|
public InputAction @Move => m_Wrapper.m_Test_Move;
|
|
public InputActionMap Get() { return m_Wrapper.m_Test; }
|
|
public void Enable() { Get().Enable(); }
|
|
public void Disable() { Get().Disable(); }
|
|
public bool enabled => Get().enabled;
|
|
public static implicit operator InputActionMap(TestActions set) { return set.Get(); }
|
|
public void SetCallbacks(ITestActions instance)
|
|
{
|
|
if (m_Wrapper.m_TestActionsCallbackInterface != null)
|
|
{
|
|
@PressButton1.started -= m_Wrapper.m_TestActionsCallbackInterface.OnPressButton1;
|
|
@PressButton1.performed -= m_Wrapper.m_TestActionsCallbackInterface.OnPressButton1;
|
|
@PressButton1.canceled -= m_Wrapper.m_TestActionsCallbackInterface.OnPressButton1;
|
|
@PressButton2.started -= m_Wrapper.m_TestActionsCallbackInterface.OnPressButton2;
|
|
@PressButton2.performed -= m_Wrapper.m_TestActionsCallbackInterface.OnPressButton2;
|
|
@PressButton2.canceled -= m_Wrapper.m_TestActionsCallbackInterface.OnPressButton2;
|
|
@PressButton3.started -= m_Wrapper.m_TestActionsCallbackInterface.OnPressButton3;
|
|
@PressButton3.performed -= m_Wrapper.m_TestActionsCallbackInterface.OnPressButton3;
|
|
@PressButton3.canceled -= m_Wrapper.m_TestActionsCallbackInterface.OnPressButton3;
|
|
@PressButtonA.started -= m_Wrapper.m_TestActionsCallbackInterface.OnPressButtonA;
|
|
@PressButtonA.performed -= m_Wrapper.m_TestActionsCallbackInterface.OnPressButtonA;
|
|
@PressButtonA.canceled -= m_Wrapper.m_TestActionsCallbackInterface.OnPressButtonA;
|
|
@PressButtonB.started -= m_Wrapper.m_TestActionsCallbackInterface.OnPressButtonB;
|
|
@PressButtonB.performed -= m_Wrapper.m_TestActionsCallbackInterface.OnPressButtonB;
|
|
@PressButtonB.canceled -= m_Wrapper.m_TestActionsCallbackInterface.OnPressButtonB;
|
|
@PressButtonC.started -= m_Wrapper.m_TestActionsCallbackInterface.OnPressButtonC;
|
|
@PressButtonC.performed -= m_Wrapper.m_TestActionsCallbackInterface.OnPressButtonC;
|
|
@PressButtonC.canceled -= m_Wrapper.m_TestActionsCallbackInterface.OnPressButtonC;
|
|
@PressButtonStart.started -= m_Wrapper.m_TestActionsCallbackInterface.OnPressButtonStart;
|
|
@PressButtonStart.performed -= m_Wrapper.m_TestActionsCallbackInterface.OnPressButtonStart;
|
|
@PressButtonStart.canceled -= m_Wrapper.m_TestActionsCallbackInterface.OnPressButtonStart;
|
|
@PressButtonPower.started -= m_Wrapper.m_TestActionsCallbackInterface.OnPressButtonPower;
|
|
@PressButtonPower.performed -= m_Wrapper.m_TestActionsCallbackInterface.OnPressButtonPower;
|
|
@PressButtonPower.canceled -= m_Wrapper.m_TestActionsCallbackInterface.OnPressButtonPower;
|
|
@Move.started -= m_Wrapper.m_TestActionsCallbackInterface.OnMove;
|
|
@Move.performed -= m_Wrapper.m_TestActionsCallbackInterface.OnMove;
|
|
@Move.canceled -= m_Wrapper.m_TestActionsCallbackInterface.OnMove;
|
|
}
|
|
m_Wrapper.m_TestActionsCallbackInterface = instance;
|
|
if (instance != null)
|
|
{
|
|
@PressButton1.started += instance.OnPressButton1;
|
|
@PressButton1.performed += instance.OnPressButton1;
|
|
@PressButton1.canceled += instance.OnPressButton1;
|
|
@PressButton2.started += instance.OnPressButton2;
|
|
@PressButton2.performed += instance.OnPressButton2;
|
|
@PressButton2.canceled += instance.OnPressButton2;
|
|
@PressButton3.started += instance.OnPressButton3;
|
|
@PressButton3.performed += instance.OnPressButton3;
|
|
@PressButton3.canceled += instance.OnPressButton3;
|
|
@PressButtonA.started += instance.OnPressButtonA;
|
|
@PressButtonA.performed += instance.OnPressButtonA;
|
|
@PressButtonA.canceled += instance.OnPressButtonA;
|
|
@PressButtonB.started += instance.OnPressButtonB;
|
|
@PressButtonB.performed += instance.OnPressButtonB;
|
|
@PressButtonB.canceled += instance.OnPressButtonB;
|
|
@PressButtonC.started += instance.OnPressButtonC;
|
|
@PressButtonC.performed += instance.OnPressButtonC;
|
|
@PressButtonC.canceled += instance.OnPressButtonC;
|
|
@PressButtonStart.started += instance.OnPressButtonStart;
|
|
@PressButtonStart.performed += instance.OnPressButtonStart;
|
|
@PressButtonStart.canceled += instance.OnPressButtonStart;
|
|
@PressButtonPower.started += instance.OnPressButtonPower;
|
|
@PressButtonPower.performed += instance.OnPressButtonPower;
|
|
@PressButtonPower.canceled += instance.OnPressButtonPower;
|
|
@Move.started += instance.OnMove;
|
|
@Move.performed += instance.OnMove;
|
|
@Move.canceled += instance.OnMove;
|
|
}
|
|
}
|
|
}
|
|
public TestActions @Test => new TestActions(this);
|
|
private int m_NewcontrolschemeSchemeIndex = -1;
|
|
public InputControlScheme NewcontrolschemeScheme
|
|
{
|
|
get
|
|
{
|
|
if (m_NewcontrolschemeSchemeIndex == -1) m_NewcontrolschemeSchemeIndex = asset.FindControlSchemeIndex("New control scheme");
|
|
return asset.controlSchemes[m_NewcontrolschemeSchemeIndex];
|
|
}
|
|
}
|
|
public interface ITestActions
|
|
{
|
|
void OnPressButton1(InputAction.CallbackContext context);
|
|
void OnPressButton2(InputAction.CallbackContext context);
|
|
void OnPressButton3(InputAction.CallbackContext context);
|
|
void OnPressButtonA(InputAction.CallbackContext context);
|
|
void OnPressButtonB(InputAction.CallbackContext context);
|
|
void OnPressButtonC(InputAction.CallbackContext context);
|
|
void OnPressButtonStart(InputAction.CallbackContext context);
|
|
void OnPressButtonPower(InputAction.CallbackContext context);
|
|
void OnMove(InputAction.CallbackContext context);
|
|
}
|
|
}
|