1375 lines
68 KiB
C#
1375 lines
68 KiB
C#
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
|
|
// version 1.18.0
|
|
// from Assets/Input/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;
|
|
|
|
/// <summary>
|
|
/// Provides programmatic access to <see cref="InputActionAsset" />, <see cref="InputActionMap" />, <see cref="InputAction" /> and <see cref="InputControlScheme" /> instances defined in asset "Assets/Input/PlayerInputActions.inputactions".
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// This class is source generated and any manual edits will be discarded if the associated asset is reimported or modified.
|
|
/// </remarks>
|
|
/// <example>
|
|
/// <code>
|
|
/// using namespace UnityEngine;
|
|
/// using UnityEngine.InputSystem;
|
|
///
|
|
/// // Example of using an InputActionMap named "Player" from a UnityEngine.MonoBehaviour implementing callback interface.
|
|
/// public class Example : MonoBehaviour, MyActions.IPlayerActions
|
|
/// {
|
|
/// private MyActions_Actions m_Actions; // Source code representation of asset.
|
|
/// private MyActions_Actions.PlayerActions m_Player; // Source code representation of action map.
|
|
///
|
|
/// void Awake()
|
|
/// {
|
|
/// m_Actions = new MyActions_Actions(); // Create asset object.
|
|
/// m_Player = m_Actions.Player; // Extract action map object.
|
|
/// m_Player.AddCallbacks(this); // Register callback interface IPlayerActions.
|
|
/// }
|
|
///
|
|
/// void OnDestroy()
|
|
/// {
|
|
/// m_Actions.Dispose(); // Destroy asset object.
|
|
/// }
|
|
///
|
|
/// void OnEnable()
|
|
/// {
|
|
/// m_Player.Enable(); // Enable all actions within map.
|
|
/// }
|
|
///
|
|
/// void OnDisable()
|
|
/// {
|
|
/// m_Player.Disable(); // Disable all actions within map.
|
|
/// }
|
|
///
|
|
/// #region Interface implementation of MyActions.IPlayerActions
|
|
///
|
|
/// // Invoked when "Move" action is either started, performed or canceled.
|
|
/// public void OnMove(InputAction.CallbackContext context)
|
|
/// {
|
|
/// Debug.Log($"OnMove: {context.ReadValue<Vector2>()}");
|
|
/// }
|
|
///
|
|
/// // Invoked when "Attack" action is either started, performed or canceled.
|
|
/// public void OnAttack(InputAction.CallbackContext context)
|
|
/// {
|
|
/// Debug.Log($"OnAttack: {context.ReadValue<float>()}");
|
|
/// }
|
|
///
|
|
/// #endregion
|
|
/// }
|
|
/// </code>
|
|
/// </example>
|
|
public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
|
{
|
|
/// <summary>
|
|
/// Provides access to the underlying asset instance.
|
|
/// </summary>
|
|
public InputActionAsset asset { get; }
|
|
|
|
/// <summary>
|
|
/// Constructs a new instance.
|
|
/// </summary>
|
|
public @PlayerInputActions()
|
|
{
|
|
asset = InputActionAsset.FromJson(@"{
|
|
""version"": 1,
|
|
""name"": ""PlayerInputActions"",
|
|
""maps"": [
|
|
{
|
|
""name"": ""Player"",
|
|
""id"": ""f62a4b92-ef5e-4175-8f4c-c9075429d32c"",
|
|
""actions"": [
|
|
{
|
|
""name"": ""Move"",
|
|
""type"": ""Value"",
|
|
""id"": ""6bc1aaf4-b110-4ff7-891e-5b9fe6f32c4d"",
|
|
""expectedControlType"": ""Vector2"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": true
|
|
},
|
|
{
|
|
""name"": ""Look"",
|
|
""type"": ""Value"",
|
|
""id"": ""2690c379-f54d-45be-a724-414123833eb4"",
|
|
""expectedControlType"": ""Vector2"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": true
|
|
},
|
|
{
|
|
""name"": ""Jump"",
|
|
""type"": ""Button"",
|
|
""id"": ""8c4abdf8-4099-493a-aa1a-129acec7c3df"",
|
|
""expectedControlType"": """",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Dash"",
|
|
""type"": ""Button"",
|
|
""id"": ""980e881e-182c-404c-8cbf-3d09fdb48fef"",
|
|
""expectedControlType"": """",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""MainWeaponPrimary"",
|
|
""type"": ""PassThrough"",
|
|
""id"": ""e00762d7-72dd-429e-95dd-309f6eede6e9"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": ""Hold"",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""MainWeaponSecondary"",
|
|
""type"": ""PassThrough"",
|
|
""id"": ""acd32ee1-e54a-4661-876b-1e9c828d3b83"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": ""Hold"",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""MainWeaponSpecialA"",
|
|
""type"": ""PassThrough"",
|
|
""id"": ""c66aac57-886f-465e-9903-379425494c02"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": ""Hold"",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""MainWeaponSpecialB"",
|
|
""type"": ""PassThrough"",
|
|
""id"": ""519b7f50-0ff1-4a65-9fa5-69a47a81b893"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": ""Hold"",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""MainWeaponSpecialC"",
|
|
""type"": ""PassThrough"",
|
|
""id"": ""4c8f0cd2-faea-463e-91ba-b06a92f8e2ce"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": ""Hold"",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Interact"",
|
|
""type"": ""Button"",
|
|
""id"": ""8bda3820-d4ea-43a0-a8f4-9d5e587307df"",
|
|
""expectedControlType"": """",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""UseConsumableItem"",
|
|
""type"": ""Button"",
|
|
""id"": ""8830d08a-0d4a-4e8e-a8ae-6a3aca3c64af"",
|
|
""expectedControlType"": """",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""UseSupportEquipment0"",
|
|
""type"": ""Button"",
|
|
""id"": ""775191fa-274f-47da-8ded-cf5688c66672"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""UseSupportEquipment1"",
|
|
""type"": ""Button"",
|
|
""id"": ""03ccda96-e91b-477d-96ea-9f3e64ecbce6"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""UseSupportEquipment2"",
|
|
""type"": ""Button"",
|
|
""id"": ""7daf229a-a02f-48a7-a445-011630173622"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""UseSupportEquipment3"",
|
|
""type"": ""Button"",
|
|
""id"": ""935ce0d0-6b7c-4e23-a545-a9439ba24d11"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""OpenInventory"",
|
|
""type"": ""Button"",
|
|
""id"": ""7f4fcfe0-8ac3-41e7-86f5-61ccce49c8f5"",
|
|
""expectedControlType"": """",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""SwitchPreviousMainWeapon"",
|
|
""type"": ""Button"",
|
|
""id"": ""23373bb7-edbd-4df4-bfc4-6988b75aee1c"",
|
|
""expectedControlType"": """",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": true
|
|
},
|
|
{
|
|
""name"": ""SwitchNextMainWeapon"",
|
|
""type"": ""Button"",
|
|
""id"": ""64102ac4-5555-45c0-9ad1-5368a2933a15"",
|
|
""expectedControlType"": """",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": true
|
|
},
|
|
{
|
|
""name"": ""Walk"",
|
|
""type"": ""PassThrough"",
|
|
""id"": ""f56a915f-8777-4b96-9185-a92247bdda26"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": ""Press"",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""FlyUp"",
|
|
""type"": ""PassThrough"",
|
|
""id"": ""cb3598c8-0378-4776-92f3-56d109a85e3f"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": ""Press"",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""LockOnTarget"",
|
|
""type"": ""Button"",
|
|
""id"": ""eed9b745-4c84-4af3-b428-6badafdfe7d8"",
|
|
""expectedControlType"": """",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""RouletteSwitchMainWeapon"",
|
|
""type"": ""Button"",
|
|
""id"": ""518be4f7-4a60-4178-8094-30fb0523362d"",
|
|
""expectedControlType"": """",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
}
|
|
],
|
|
""bindings"": [
|
|
{
|
|
""name"": ""WASD"",
|
|
""id"": ""b7594ddb-26c9-4ba2-bd5a-901468929edc"",
|
|
""path"": ""2DVector(mode=1)"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Move"",
|
|
""isComposite"": true,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": ""up"",
|
|
""id"": ""2063a8b5-6a45-43de-851b-65f3d46e7b58"",
|
|
""path"": ""<Keyboard>/w"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""KeyboardMouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""down"",
|
|
""id"": ""64e4d037-32e1-4fb9-80e4-fc7330404dfe"",
|
|
""path"": ""<Keyboard>/s"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""KeyboardMouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""left"",
|
|
""id"": ""0fce8b11-5eab-4e4e-a741-b732e7b20873"",
|
|
""path"": ""<Keyboard>/a"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""KeyboardMouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""right"",
|
|
""id"": ""7bdda0d6-57a8-47c8-8238-8aecf3110e47"",
|
|
""path"": ""<Keyboard>/d"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""KeyboardMouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""up"",
|
|
""id"": ""bb94b405-58d3-4998-8535-d705c1218a98"",
|
|
""path"": ""<Keyboard>/upArrow"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""KeyboardMouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""down"",
|
|
""id"": ""929d9071-7dd0-4368-9743-6793bb98087e"",
|
|
""path"": ""<Keyboard>/downArrow"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""KeyboardMouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""left"",
|
|
""id"": ""28abadba-06ff-4d37-bb70-af2f1e35a3b9"",
|
|
""path"": ""<Keyboard>/leftArrow"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""KeyboardMouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""right"",
|
|
""id"": ""45f115b6-9b4f-4ba8-b500-b94c93bf7d7e"",
|
|
""path"": ""<Keyboard>/rightArrow"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""KeyboardMouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""e2f9aa65-db06-4c5b-a2e9-41bc8acb9517"",
|
|
""path"": ""<Gamepad>/leftStick"",
|
|
""interactions"": """",
|
|
""processors"": ""StickDeadzone"",
|
|
""groups"": ""Gamepad"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""ed66cbff-2900-4a62-8896-696503cfcd31"",
|
|
""path"": ""<Pointer>/delta"",
|
|
""interactions"": """",
|
|
""processors"": ""InvertVector2(invertX=false),ScaleVector2(x=0.05,y=0.05)"",
|
|
""groups"": ""KeyboardMouse"",
|
|
""action"": ""Look"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""d1d171b6-19d8-47a6-ba3a-71b6a8e7b3c0"",
|
|
""path"": ""<Gamepad>/rightStick"",
|
|
""interactions"": """",
|
|
""processors"": ""InvertVector2(invertX=false),StickDeadzone,ScaleVector2(x=300,y=300)"",
|
|
""groups"": ""Gamepad"",
|
|
""action"": ""Look"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""1bd55a0b-761e-4ae4-89ae-8ec127e08a29"",
|
|
""path"": ""<Keyboard>/leftCtrl"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""KeyboardMouse"",
|
|
""action"": ""Jump"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""9f973413-5e27-4239-acee-38c4a63feeba"",
|
|
""path"": ""<Gamepad>/buttonSouth"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Gamepad"",
|
|
""action"": ""Jump"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""dc65b89f-9bd3-43fb-92af-d0d87ba5faa4"",
|
|
""path"": ""<Keyboard>/space"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""KeyboardMouse"",
|
|
""action"": ""Dash"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""c8fcd86e-dcfd-4f88-8e93-b638cdbf3320"",
|
|
""path"": ""<Gamepad>/leftTrigger"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Gamepad"",
|
|
""action"": ""Dash"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""18ad7883-0ed8-4505-9474-bea2bcbcfd94"",
|
|
""path"": ""<Mouse>/leftButton"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""KeyboardMouse"",
|
|
""action"": ""MainWeaponPrimary"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""91bee659-27fe-4039-82c5-d510467564af"",
|
|
""path"": ""<Mouse>/rightButton"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""KeyboardMouse"",
|
|
""action"": ""MainWeaponSecondary"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""47bed551-0461-4a67-b686-cf3ae396d781"",
|
|
""path"": ""<Keyboard>/r"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""KeyboardMouse"",
|
|
""action"": ""Interact"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""97d6149c-757c-4cf3-8f2a-c2642f66e862"",
|
|
""path"": ""<Keyboard>/f"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""UseConsumableItem"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""648e3aad-f0c4-4e0f-b735-df392bc3f2c0"",
|
|
""path"": ""<Keyboard>/1"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""UseSupportEquipment0"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""4c6e84bd-9129-4b0e-9172-dbe2c2cfd52e"",
|
|
""path"": ""<Keyboard>/2"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""UseSupportEquipment1"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""9ffd1dc5-2d0a-4f18-b619-a598170eaf89"",
|
|
""path"": ""<Keyboard>/3"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""UseSupportEquipment2"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""dee240c5-9a70-46a4-b6c4-59c21f4cb700"",
|
|
""path"": ""<Keyboard>/4"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""UseSupportEquipment3"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""49351acf-c348-47ee-b36f-7b3fc38f6163"",
|
|
""path"": ""<Keyboard>/i"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""OpenInventory"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""2690141f-c8c8-4171-a115-9aee303742ed"",
|
|
""path"": ""<Keyboard>/r"",
|
|
""interactions"": ""Press"",
|
|
""processors"": """",
|
|
""groups"": ""KeyboardMouse"",
|
|
""action"": ""SwitchPreviousMainWeapon"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""3d0ed8b7-a930-4ae4-8357-5c9ad407c03c"",
|
|
""path"": ""<Keyboard>/f"",
|
|
""interactions"": ""Press"",
|
|
""processors"": """",
|
|
""groups"": ""KeyboardMouse"",
|
|
""action"": ""SwitchNextMainWeapon"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""b2369cd5-4e45-4c6d-a80c-465c992f96b8"",
|
|
""path"": ""<Keyboard>/c"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""KeyboardMouse"",
|
|
""action"": ""Walk"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""d4fe95a6-93fb-48d0-ba64-a0f8fc6f027e"",
|
|
""path"": ""<Mouse>/middleButton"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""LockOnTarget"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""e42691ba-c2e3-49a1-a52f-a3185efe51ee"",
|
|
""path"": ""<Keyboard>/space"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""KeyboardMouse"",
|
|
""action"": ""FlyUp"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""5985f280-0f2e-4db4-9fa7-4b8341fd5e6f"",
|
|
""path"": ""<Keyboard>/q"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""KeyboardMouse"",
|
|
""action"": ""MainWeaponSpecialA"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""195ddaf1-7a00-4f73-ba52-f42e255b823d"",
|
|
""path"": ""<Keyboard>/e"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""KeyboardMouse"",
|
|
""action"": ""MainWeaponSpecialB"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""bab1781c-a2e5-413a-8e89-c65076a32c8e"",
|
|
""path"": ""<Keyboard>/leftShift"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""KeyboardMouse"",
|
|
""action"": ""MainWeaponSpecialC"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""0c338080-389d-49b4-8925-d1468dbf0e24"",
|
|
""path"": ""<Keyboard>/f"",
|
|
""interactions"": ""Hold"",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""RouletteSwitchMainWeapon"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""474b9871-71cd-415f-94e2-41c5eeb60156"",
|
|
""path"": ""<Keyboard>/r"",
|
|
""interactions"": ""Hold"",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""RouletteSwitchMainWeapon"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
}
|
|
]
|
|
}
|
|
],
|
|
""controlSchemes"": [
|
|
{
|
|
""name"": ""KeyboardMouse"",
|
|
""bindingGroup"": ""KeyboardMouse"",
|
|
""devices"": [
|
|
{
|
|
""devicePath"": ""<Keyboard>"",
|
|
""isOptional"": false,
|
|
""isOR"": false
|
|
},
|
|
{
|
|
""devicePath"": ""<Mouse>"",
|
|
""isOptional"": false,
|
|
""isOR"": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
""name"": ""Gamepad"",
|
|
""bindingGroup"": ""Gamepad"",
|
|
""devices"": [
|
|
{
|
|
""devicePath"": ""<Gamepad>"",
|
|
""isOptional"": true,
|
|
""isOR"": false
|
|
},
|
|
{
|
|
""devicePath"": ""<XInputController>"",
|
|
""isOptional"": true,
|
|
""isOR"": false
|
|
},
|
|
{
|
|
""devicePath"": ""<DualShockGamepad>"",
|
|
""isOptional"": true,
|
|
""isOR"": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
""name"": ""Xbox Controller"",
|
|
""bindingGroup"": ""Xbox Controller"",
|
|
""devices"": []
|
|
},
|
|
{
|
|
""name"": ""PS4 Controller"",
|
|
""bindingGroup"": ""PS4 Controller"",
|
|
""devices"": []
|
|
}
|
|
]
|
|
}");
|
|
// Player
|
|
m_Player = asset.FindActionMap("Player", throwIfNotFound: true);
|
|
m_Player_Move = m_Player.FindAction("Move", throwIfNotFound: true);
|
|
m_Player_Look = m_Player.FindAction("Look", throwIfNotFound: true);
|
|
m_Player_Jump = m_Player.FindAction("Jump", throwIfNotFound: true);
|
|
m_Player_Dash = m_Player.FindAction("Dash", throwIfNotFound: true);
|
|
m_Player_MainWeaponPrimary = m_Player.FindAction("MainWeaponPrimary", throwIfNotFound: true);
|
|
m_Player_MainWeaponSecondary = m_Player.FindAction("MainWeaponSecondary", throwIfNotFound: true);
|
|
m_Player_MainWeaponSpecialA = m_Player.FindAction("MainWeaponSpecialA", throwIfNotFound: true);
|
|
m_Player_MainWeaponSpecialB = m_Player.FindAction("MainWeaponSpecialB", throwIfNotFound: true);
|
|
m_Player_MainWeaponSpecialC = m_Player.FindAction("MainWeaponSpecialC", throwIfNotFound: true);
|
|
m_Player_Interact = m_Player.FindAction("Interact", throwIfNotFound: true);
|
|
m_Player_UseConsumableItem = m_Player.FindAction("UseConsumableItem", throwIfNotFound: true);
|
|
m_Player_UseSupportEquipment0 = m_Player.FindAction("UseSupportEquipment0", throwIfNotFound: true);
|
|
m_Player_UseSupportEquipment1 = m_Player.FindAction("UseSupportEquipment1", throwIfNotFound: true);
|
|
m_Player_UseSupportEquipment2 = m_Player.FindAction("UseSupportEquipment2", throwIfNotFound: true);
|
|
m_Player_UseSupportEquipment3 = m_Player.FindAction("UseSupportEquipment3", throwIfNotFound: true);
|
|
m_Player_OpenInventory = m_Player.FindAction("OpenInventory", throwIfNotFound: true);
|
|
m_Player_SwitchPreviousMainWeapon = m_Player.FindAction("SwitchPreviousMainWeapon", throwIfNotFound: true);
|
|
m_Player_SwitchNextMainWeapon = m_Player.FindAction("SwitchNextMainWeapon", throwIfNotFound: true);
|
|
m_Player_Walk = m_Player.FindAction("Walk", throwIfNotFound: true);
|
|
m_Player_FlyUp = m_Player.FindAction("FlyUp", throwIfNotFound: true);
|
|
m_Player_LockOnTarget = m_Player.FindAction("LockOnTarget", throwIfNotFound: true);
|
|
m_Player_RouletteSwitchMainWeapon = m_Player.FindAction("RouletteSwitchMainWeapon", throwIfNotFound: true);
|
|
}
|
|
|
|
~@PlayerInputActions()
|
|
{
|
|
UnityEngine.Debug.Assert(!m_Player.enabled, "This will cause a leak and performance issues, PlayerInputActions.Player.Disable() has not been called.");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Destroys this asset and all associated <see cref="InputAction"/> instances.
|
|
/// </summary>
|
|
public void Dispose()
|
|
{
|
|
UnityEngine.Object.Destroy(asset);
|
|
}
|
|
|
|
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.bindingMask" />
|
|
public InputBinding? bindingMask
|
|
{
|
|
get => asset.bindingMask;
|
|
set => asset.bindingMask = value;
|
|
}
|
|
|
|
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.devices" />
|
|
public ReadOnlyArray<InputDevice>? devices
|
|
{
|
|
get => asset.devices;
|
|
set => asset.devices = value;
|
|
}
|
|
|
|
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.controlSchemes" />
|
|
public ReadOnlyArray<InputControlScheme> controlSchemes => asset.controlSchemes;
|
|
|
|
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.Contains(InputAction)" />
|
|
public bool Contains(InputAction action)
|
|
{
|
|
return asset.Contains(action);
|
|
}
|
|
|
|
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.GetEnumerator()" />
|
|
public IEnumerator<InputAction> GetEnumerator()
|
|
{
|
|
return asset.GetEnumerator();
|
|
}
|
|
|
|
/// <inheritdoc cref="IEnumerable.GetEnumerator()" />
|
|
IEnumerator IEnumerable.GetEnumerator()
|
|
{
|
|
return GetEnumerator();
|
|
}
|
|
|
|
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.Enable()" />
|
|
public void Enable()
|
|
{
|
|
asset.Enable();
|
|
}
|
|
|
|
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.Disable()" />
|
|
public void Disable()
|
|
{
|
|
asset.Disable();
|
|
}
|
|
|
|
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.bindings" />
|
|
public IEnumerable<InputBinding> bindings => asset.bindings;
|
|
|
|
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.FindAction(string, bool)" />
|
|
public InputAction FindAction(string actionNameOrId, bool throwIfNotFound = false)
|
|
{
|
|
return asset.FindAction(actionNameOrId, throwIfNotFound);
|
|
}
|
|
|
|
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.FindBinding(InputBinding, out InputAction)" />
|
|
public int FindBinding(InputBinding bindingMask, out InputAction action)
|
|
{
|
|
return asset.FindBinding(bindingMask, out action);
|
|
}
|
|
|
|
// Player
|
|
private readonly InputActionMap m_Player;
|
|
private List<IPlayerActions> m_PlayerActionsCallbackInterfaces = new List<IPlayerActions>();
|
|
private readonly InputAction m_Player_Move;
|
|
private readonly InputAction m_Player_Look;
|
|
private readonly InputAction m_Player_Jump;
|
|
private readonly InputAction m_Player_Dash;
|
|
private readonly InputAction m_Player_MainWeaponPrimary;
|
|
private readonly InputAction m_Player_MainWeaponSecondary;
|
|
private readonly InputAction m_Player_MainWeaponSpecialA;
|
|
private readonly InputAction m_Player_MainWeaponSpecialB;
|
|
private readonly InputAction m_Player_MainWeaponSpecialC;
|
|
private readonly InputAction m_Player_Interact;
|
|
private readonly InputAction m_Player_UseConsumableItem;
|
|
private readonly InputAction m_Player_UseSupportEquipment0;
|
|
private readonly InputAction m_Player_UseSupportEquipment1;
|
|
private readonly InputAction m_Player_UseSupportEquipment2;
|
|
private readonly InputAction m_Player_UseSupportEquipment3;
|
|
private readonly InputAction m_Player_OpenInventory;
|
|
private readonly InputAction m_Player_SwitchPreviousMainWeapon;
|
|
private readonly InputAction m_Player_SwitchNextMainWeapon;
|
|
private readonly InputAction m_Player_Walk;
|
|
private readonly InputAction m_Player_FlyUp;
|
|
private readonly InputAction m_Player_LockOnTarget;
|
|
private readonly InputAction m_Player_RouletteSwitchMainWeapon;
|
|
/// <summary>
|
|
/// Provides access to input actions defined in input action map "Player".
|
|
/// </summary>
|
|
public struct PlayerActions
|
|
{
|
|
private @PlayerInputActions m_Wrapper;
|
|
|
|
/// <summary>
|
|
/// Construct a new instance of the input action map wrapper class.
|
|
/// </summary>
|
|
public PlayerActions(@PlayerInputActions wrapper) { m_Wrapper = wrapper; }
|
|
/// <summary>
|
|
/// Provides access to the underlying input action "Player/Move".
|
|
/// </summary>
|
|
public InputAction @Move => m_Wrapper.m_Player_Move;
|
|
/// <summary>
|
|
/// Provides access to the underlying input action "Player/Look".
|
|
/// </summary>
|
|
public InputAction @Look => m_Wrapper.m_Player_Look;
|
|
/// <summary>
|
|
/// Provides access to the underlying input action "Player/Jump".
|
|
/// </summary>
|
|
public InputAction @Jump => m_Wrapper.m_Player_Jump;
|
|
/// <summary>
|
|
/// Provides access to the underlying input action "Player/Dash".
|
|
/// </summary>
|
|
public InputAction @Dash => m_Wrapper.m_Player_Dash;
|
|
/// <summary>
|
|
/// Provides access to the underlying input action "Player/MainWeaponPrimary".
|
|
/// </summary>
|
|
public InputAction @MainWeaponPrimary => m_Wrapper.m_Player_MainWeaponPrimary;
|
|
/// <summary>
|
|
/// Provides access to the underlying input action "Player/MainWeaponSecondary".
|
|
/// </summary>
|
|
public InputAction @MainWeaponSecondary => m_Wrapper.m_Player_MainWeaponSecondary;
|
|
/// <summary>
|
|
/// Provides access to the underlying input action "Player/MainWeaponSpecialA".
|
|
/// </summary>
|
|
public InputAction @MainWeaponSpecialA => m_Wrapper.m_Player_MainWeaponSpecialA;
|
|
/// <summary>
|
|
/// Provides access to the underlying input action "Player/MainWeaponSpecialB".
|
|
/// </summary>
|
|
public InputAction @MainWeaponSpecialB => m_Wrapper.m_Player_MainWeaponSpecialB;
|
|
/// <summary>
|
|
/// Provides access to the underlying input action "Player/MainWeaponSpecialC".
|
|
/// </summary>
|
|
public InputAction @MainWeaponSpecialC => m_Wrapper.m_Player_MainWeaponSpecialC;
|
|
/// <summary>
|
|
/// Provides access to the underlying input action "Player/Interact".
|
|
/// </summary>
|
|
public InputAction @Interact => m_Wrapper.m_Player_Interact;
|
|
/// <summary>
|
|
/// Provides access to the underlying input action "Player/UseConsumableItem".
|
|
/// </summary>
|
|
public InputAction @UseConsumableItem => m_Wrapper.m_Player_UseConsumableItem;
|
|
/// <summary>
|
|
/// Provides access to the underlying input action "Player/UseSupportEquipment0".
|
|
/// </summary>
|
|
public InputAction @UseSupportEquipment0 => m_Wrapper.m_Player_UseSupportEquipment0;
|
|
/// <summary>
|
|
/// Provides access to the underlying input action "Player/UseSupportEquipment1".
|
|
/// </summary>
|
|
public InputAction @UseSupportEquipment1 => m_Wrapper.m_Player_UseSupportEquipment1;
|
|
/// <summary>
|
|
/// Provides access to the underlying input action "Player/UseSupportEquipment2".
|
|
/// </summary>
|
|
public InputAction @UseSupportEquipment2 => m_Wrapper.m_Player_UseSupportEquipment2;
|
|
/// <summary>
|
|
/// Provides access to the underlying input action "Player/UseSupportEquipment3".
|
|
/// </summary>
|
|
public InputAction @UseSupportEquipment3 => m_Wrapper.m_Player_UseSupportEquipment3;
|
|
/// <summary>
|
|
/// Provides access to the underlying input action "Player/OpenInventory".
|
|
/// </summary>
|
|
public InputAction @OpenInventory => m_Wrapper.m_Player_OpenInventory;
|
|
/// <summary>
|
|
/// Provides access to the underlying input action "Player/SwitchPreviousMainWeapon".
|
|
/// </summary>
|
|
public InputAction @SwitchPreviousMainWeapon => m_Wrapper.m_Player_SwitchPreviousMainWeapon;
|
|
/// <summary>
|
|
/// Provides access to the underlying input action "Player/SwitchNextMainWeapon".
|
|
/// </summary>
|
|
public InputAction @SwitchNextMainWeapon => m_Wrapper.m_Player_SwitchNextMainWeapon;
|
|
/// <summary>
|
|
/// Provides access to the underlying input action "Player/Walk".
|
|
/// </summary>
|
|
public InputAction @Walk => m_Wrapper.m_Player_Walk;
|
|
/// <summary>
|
|
/// Provides access to the underlying input action "Player/FlyUp".
|
|
/// </summary>
|
|
public InputAction @FlyUp => m_Wrapper.m_Player_FlyUp;
|
|
/// <summary>
|
|
/// Provides access to the underlying input action "Player/LockOnTarget".
|
|
/// </summary>
|
|
public InputAction @LockOnTarget => m_Wrapper.m_Player_LockOnTarget;
|
|
/// <summary>
|
|
/// Provides access to the underlying input action "Player/RouletteSwitchMainWeapon".
|
|
/// </summary>
|
|
public InputAction @RouletteSwitchMainWeapon => m_Wrapper.m_Player_RouletteSwitchMainWeapon;
|
|
/// <summary>
|
|
/// Provides access to the underlying input action map instance.
|
|
/// </summary>
|
|
public InputActionMap Get() { return m_Wrapper.m_Player; }
|
|
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionMap.Enable()" />
|
|
public void Enable() { Get().Enable(); }
|
|
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionMap.Disable()" />
|
|
public void Disable() { Get().Disable(); }
|
|
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionMap.enabled" />
|
|
public bool enabled => Get().enabled;
|
|
/// <summary>
|
|
/// Implicitly converts an <see ref="PlayerActions" /> to an <see ref="InputActionMap" /> instance.
|
|
/// </summary>
|
|
public static implicit operator InputActionMap(PlayerActions set) { return set.Get(); }
|
|
/// <summary>
|
|
/// Adds <see cref="InputAction.started"/>, <see cref="InputAction.performed"/> and <see cref="InputAction.canceled"/> callbacks provided via <param cref="instance" /> on all input actions contained in this map.
|
|
/// </summary>
|
|
/// <param name="instance">Callback instance.</param>
|
|
/// <remarks>
|
|
/// If <paramref name="instance" /> is <c>null</c> or <paramref name="instance"/> have already been added this method does nothing.
|
|
/// </remarks>
|
|
/// <seealso cref="PlayerActions" />
|
|
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;
|
|
@Look.started += instance.OnLook;
|
|
@Look.performed += instance.OnLook;
|
|
@Look.canceled += instance.OnLook;
|
|
@Jump.started += instance.OnJump;
|
|
@Jump.performed += instance.OnJump;
|
|
@Jump.canceled += instance.OnJump;
|
|
@Dash.started += instance.OnDash;
|
|
@Dash.performed += instance.OnDash;
|
|
@Dash.canceled += instance.OnDash;
|
|
@MainWeaponPrimary.started += instance.OnMainWeaponPrimary;
|
|
@MainWeaponPrimary.performed += instance.OnMainWeaponPrimary;
|
|
@MainWeaponPrimary.canceled += instance.OnMainWeaponPrimary;
|
|
@MainWeaponSecondary.started += instance.OnMainWeaponSecondary;
|
|
@MainWeaponSecondary.performed += instance.OnMainWeaponSecondary;
|
|
@MainWeaponSecondary.canceled += instance.OnMainWeaponSecondary;
|
|
@MainWeaponSpecialA.started += instance.OnMainWeaponSpecialA;
|
|
@MainWeaponSpecialA.performed += instance.OnMainWeaponSpecialA;
|
|
@MainWeaponSpecialA.canceled += instance.OnMainWeaponSpecialA;
|
|
@MainWeaponSpecialB.started += instance.OnMainWeaponSpecialB;
|
|
@MainWeaponSpecialB.performed += instance.OnMainWeaponSpecialB;
|
|
@MainWeaponSpecialB.canceled += instance.OnMainWeaponSpecialB;
|
|
@MainWeaponSpecialC.started += instance.OnMainWeaponSpecialC;
|
|
@MainWeaponSpecialC.performed += instance.OnMainWeaponSpecialC;
|
|
@MainWeaponSpecialC.canceled += instance.OnMainWeaponSpecialC;
|
|
@Interact.started += instance.OnInteract;
|
|
@Interact.performed += instance.OnInteract;
|
|
@Interact.canceled += instance.OnInteract;
|
|
@UseConsumableItem.started += instance.OnUseConsumableItem;
|
|
@UseConsumableItem.performed += instance.OnUseConsumableItem;
|
|
@UseConsumableItem.canceled += instance.OnUseConsumableItem;
|
|
@UseSupportEquipment0.started += instance.OnUseSupportEquipment0;
|
|
@UseSupportEquipment0.performed += instance.OnUseSupportEquipment0;
|
|
@UseSupportEquipment0.canceled += instance.OnUseSupportEquipment0;
|
|
@UseSupportEquipment1.started += instance.OnUseSupportEquipment1;
|
|
@UseSupportEquipment1.performed += instance.OnUseSupportEquipment1;
|
|
@UseSupportEquipment1.canceled += instance.OnUseSupportEquipment1;
|
|
@UseSupportEquipment2.started += instance.OnUseSupportEquipment2;
|
|
@UseSupportEquipment2.performed += instance.OnUseSupportEquipment2;
|
|
@UseSupportEquipment2.canceled += instance.OnUseSupportEquipment2;
|
|
@UseSupportEquipment3.started += instance.OnUseSupportEquipment3;
|
|
@UseSupportEquipment3.performed += instance.OnUseSupportEquipment3;
|
|
@UseSupportEquipment3.canceled += instance.OnUseSupportEquipment3;
|
|
@OpenInventory.started += instance.OnOpenInventory;
|
|
@OpenInventory.performed += instance.OnOpenInventory;
|
|
@OpenInventory.canceled += instance.OnOpenInventory;
|
|
@SwitchPreviousMainWeapon.started += instance.OnSwitchPreviousMainWeapon;
|
|
@SwitchPreviousMainWeapon.performed += instance.OnSwitchPreviousMainWeapon;
|
|
@SwitchPreviousMainWeapon.canceled += instance.OnSwitchPreviousMainWeapon;
|
|
@SwitchNextMainWeapon.started += instance.OnSwitchNextMainWeapon;
|
|
@SwitchNextMainWeapon.performed += instance.OnSwitchNextMainWeapon;
|
|
@SwitchNextMainWeapon.canceled += instance.OnSwitchNextMainWeapon;
|
|
@Walk.started += instance.OnWalk;
|
|
@Walk.performed += instance.OnWalk;
|
|
@Walk.canceled += instance.OnWalk;
|
|
@FlyUp.started += instance.OnFlyUp;
|
|
@FlyUp.performed += instance.OnFlyUp;
|
|
@FlyUp.canceled += instance.OnFlyUp;
|
|
@LockOnTarget.started += instance.OnLockOnTarget;
|
|
@LockOnTarget.performed += instance.OnLockOnTarget;
|
|
@LockOnTarget.canceled += instance.OnLockOnTarget;
|
|
@RouletteSwitchMainWeapon.started += instance.OnRouletteSwitchMainWeapon;
|
|
@RouletteSwitchMainWeapon.performed += instance.OnRouletteSwitchMainWeapon;
|
|
@RouletteSwitchMainWeapon.canceled += instance.OnRouletteSwitchMainWeapon;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Removes <see cref="InputAction.started"/>, <see cref="InputAction.performed"/> and <see cref="InputAction.canceled"/> callbacks provided via <param cref="instance" /> on all input actions contained in this map.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Calling this method when <paramref name="instance" /> have not previously been registered has no side-effects.
|
|
/// </remarks>
|
|
/// <seealso cref="PlayerActions" />
|
|
private void UnregisterCallbacks(IPlayerActions instance)
|
|
{
|
|
@Move.started -= instance.OnMove;
|
|
@Move.performed -= instance.OnMove;
|
|
@Move.canceled -= instance.OnMove;
|
|
@Look.started -= instance.OnLook;
|
|
@Look.performed -= instance.OnLook;
|
|
@Look.canceled -= instance.OnLook;
|
|
@Jump.started -= instance.OnJump;
|
|
@Jump.performed -= instance.OnJump;
|
|
@Jump.canceled -= instance.OnJump;
|
|
@Dash.started -= instance.OnDash;
|
|
@Dash.performed -= instance.OnDash;
|
|
@Dash.canceled -= instance.OnDash;
|
|
@MainWeaponPrimary.started -= instance.OnMainWeaponPrimary;
|
|
@MainWeaponPrimary.performed -= instance.OnMainWeaponPrimary;
|
|
@MainWeaponPrimary.canceled -= instance.OnMainWeaponPrimary;
|
|
@MainWeaponSecondary.started -= instance.OnMainWeaponSecondary;
|
|
@MainWeaponSecondary.performed -= instance.OnMainWeaponSecondary;
|
|
@MainWeaponSecondary.canceled -= instance.OnMainWeaponSecondary;
|
|
@MainWeaponSpecialA.started -= instance.OnMainWeaponSpecialA;
|
|
@MainWeaponSpecialA.performed -= instance.OnMainWeaponSpecialA;
|
|
@MainWeaponSpecialA.canceled -= instance.OnMainWeaponSpecialA;
|
|
@MainWeaponSpecialB.started -= instance.OnMainWeaponSpecialB;
|
|
@MainWeaponSpecialB.performed -= instance.OnMainWeaponSpecialB;
|
|
@MainWeaponSpecialB.canceled -= instance.OnMainWeaponSpecialB;
|
|
@MainWeaponSpecialC.started -= instance.OnMainWeaponSpecialC;
|
|
@MainWeaponSpecialC.performed -= instance.OnMainWeaponSpecialC;
|
|
@MainWeaponSpecialC.canceled -= instance.OnMainWeaponSpecialC;
|
|
@Interact.started -= instance.OnInteract;
|
|
@Interact.performed -= instance.OnInteract;
|
|
@Interact.canceled -= instance.OnInteract;
|
|
@UseConsumableItem.started -= instance.OnUseConsumableItem;
|
|
@UseConsumableItem.performed -= instance.OnUseConsumableItem;
|
|
@UseConsumableItem.canceled -= instance.OnUseConsumableItem;
|
|
@UseSupportEquipment0.started -= instance.OnUseSupportEquipment0;
|
|
@UseSupportEquipment0.performed -= instance.OnUseSupportEquipment0;
|
|
@UseSupportEquipment0.canceled -= instance.OnUseSupportEquipment0;
|
|
@UseSupportEquipment1.started -= instance.OnUseSupportEquipment1;
|
|
@UseSupportEquipment1.performed -= instance.OnUseSupportEquipment1;
|
|
@UseSupportEquipment1.canceled -= instance.OnUseSupportEquipment1;
|
|
@UseSupportEquipment2.started -= instance.OnUseSupportEquipment2;
|
|
@UseSupportEquipment2.performed -= instance.OnUseSupportEquipment2;
|
|
@UseSupportEquipment2.canceled -= instance.OnUseSupportEquipment2;
|
|
@UseSupportEquipment3.started -= instance.OnUseSupportEquipment3;
|
|
@UseSupportEquipment3.performed -= instance.OnUseSupportEquipment3;
|
|
@UseSupportEquipment3.canceled -= instance.OnUseSupportEquipment3;
|
|
@OpenInventory.started -= instance.OnOpenInventory;
|
|
@OpenInventory.performed -= instance.OnOpenInventory;
|
|
@OpenInventory.canceled -= instance.OnOpenInventory;
|
|
@SwitchPreviousMainWeapon.started -= instance.OnSwitchPreviousMainWeapon;
|
|
@SwitchPreviousMainWeapon.performed -= instance.OnSwitchPreviousMainWeapon;
|
|
@SwitchPreviousMainWeapon.canceled -= instance.OnSwitchPreviousMainWeapon;
|
|
@SwitchNextMainWeapon.started -= instance.OnSwitchNextMainWeapon;
|
|
@SwitchNextMainWeapon.performed -= instance.OnSwitchNextMainWeapon;
|
|
@SwitchNextMainWeapon.canceled -= instance.OnSwitchNextMainWeapon;
|
|
@Walk.started -= instance.OnWalk;
|
|
@Walk.performed -= instance.OnWalk;
|
|
@Walk.canceled -= instance.OnWalk;
|
|
@FlyUp.started -= instance.OnFlyUp;
|
|
@FlyUp.performed -= instance.OnFlyUp;
|
|
@FlyUp.canceled -= instance.OnFlyUp;
|
|
@LockOnTarget.started -= instance.OnLockOnTarget;
|
|
@LockOnTarget.performed -= instance.OnLockOnTarget;
|
|
@LockOnTarget.canceled -= instance.OnLockOnTarget;
|
|
@RouletteSwitchMainWeapon.started -= instance.OnRouletteSwitchMainWeapon;
|
|
@RouletteSwitchMainWeapon.performed -= instance.OnRouletteSwitchMainWeapon;
|
|
@RouletteSwitchMainWeapon.canceled -= instance.OnRouletteSwitchMainWeapon;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Unregisters <param cref="instance" /> and unregisters all input action callbacks via <see cref="PlayerActions.UnregisterCallbacks(IPlayerActions)" />.
|
|
/// </summary>
|
|
/// <seealso cref="PlayerActions.UnregisterCallbacks(IPlayerActions)" />
|
|
public void RemoveCallbacks(IPlayerActions instance)
|
|
{
|
|
if (m_Wrapper.m_PlayerActionsCallbackInterfaces.Remove(instance))
|
|
UnregisterCallbacks(instance);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Replaces all existing callback instances and previously registered input action callbacks associated with them with callbacks provided via <param cref="instance" />.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// If <paramref name="instance" /> is <c>null</c>, calling this method will only unregister all existing callbacks but not register any new callbacks.
|
|
/// </remarks>
|
|
/// <seealso cref="PlayerActions.AddCallbacks(IPlayerActions)" />
|
|
/// <seealso cref="PlayerActions.RemoveCallbacks(IPlayerActions)" />
|
|
/// <seealso cref="PlayerActions.UnregisterCallbacks(IPlayerActions)" />
|
|
public void SetCallbacks(IPlayerActions instance)
|
|
{
|
|
foreach (var item in m_Wrapper.m_PlayerActionsCallbackInterfaces)
|
|
UnregisterCallbacks(item);
|
|
m_Wrapper.m_PlayerActionsCallbackInterfaces.Clear();
|
|
AddCallbacks(instance);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Provides a new <see cref="PlayerActions" /> instance referencing this action map.
|
|
/// </summary>
|
|
public PlayerActions @Player => new PlayerActions(this);
|
|
private int m_KeyboardMouseSchemeIndex = -1;
|
|
/// <summary>
|
|
/// Provides access to the input control scheme.
|
|
/// </summary>
|
|
/// <seealso cref="UnityEngine.InputSystem.InputControlScheme" />
|
|
public InputControlScheme KeyboardMouseScheme
|
|
{
|
|
get
|
|
{
|
|
if (m_KeyboardMouseSchemeIndex == -1) m_KeyboardMouseSchemeIndex = asset.FindControlSchemeIndex("KeyboardMouse");
|
|
return asset.controlSchemes[m_KeyboardMouseSchemeIndex];
|
|
}
|
|
}
|
|
private int m_GamepadSchemeIndex = -1;
|
|
/// <summary>
|
|
/// Provides access to the input control scheme.
|
|
/// </summary>
|
|
/// <seealso cref="UnityEngine.InputSystem.InputControlScheme" />
|
|
public InputControlScheme GamepadScheme
|
|
{
|
|
get
|
|
{
|
|
if (m_GamepadSchemeIndex == -1) m_GamepadSchemeIndex = asset.FindControlSchemeIndex("Gamepad");
|
|
return asset.controlSchemes[m_GamepadSchemeIndex];
|
|
}
|
|
}
|
|
private int m_XboxControllerSchemeIndex = -1;
|
|
/// <summary>
|
|
/// Provides access to the input control scheme.
|
|
/// </summary>
|
|
/// <seealso cref="UnityEngine.InputSystem.InputControlScheme" />
|
|
public InputControlScheme XboxControllerScheme
|
|
{
|
|
get
|
|
{
|
|
if (m_XboxControllerSchemeIndex == -1) m_XboxControllerSchemeIndex = asset.FindControlSchemeIndex("Xbox Controller");
|
|
return asset.controlSchemes[m_XboxControllerSchemeIndex];
|
|
}
|
|
}
|
|
private int m_PS4ControllerSchemeIndex = -1;
|
|
/// <summary>
|
|
/// Provides access to the input control scheme.
|
|
/// </summary>
|
|
/// <seealso cref="UnityEngine.InputSystem.InputControlScheme" />
|
|
public InputControlScheme PS4ControllerScheme
|
|
{
|
|
get
|
|
{
|
|
if (m_PS4ControllerSchemeIndex == -1) m_PS4ControllerSchemeIndex = asset.FindControlSchemeIndex("PS4 Controller");
|
|
return asset.controlSchemes[m_PS4ControllerSchemeIndex];
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Interface to implement callback methods for all input action callbacks associated with input actions defined by "Player" which allows adding and removing callbacks.
|
|
/// </summary>
|
|
/// <seealso cref="PlayerActions.AddCallbacks(IPlayerActions)" />
|
|
/// <seealso cref="PlayerActions.RemoveCallbacks(IPlayerActions)" />
|
|
public interface IPlayerActions
|
|
{
|
|
/// <summary>
|
|
/// Method invoked when associated input action "Move" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
|
|
/// </summary>
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
|
void OnMove(InputAction.CallbackContext context);
|
|
/// <summary>
|
|
/// Method invoked when associated input action "Look" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
|
|
/// </summary>
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
|
void OnLook(InputAction.CallbackContext context);
|
|
/// <summary>
|
|
/// Method invoked when associated input action "Jump" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
|
|
/// </summary>
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
|
void OnJump(InputAction.CallbackContext context);
|
|
/// <summary>
|
|
/// Method invoked when associated input action "Dash" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
|
|
/// </summary>
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
|
void OnDash(InputAction.CallbackContext context);
|
|
/// <summary>
|
|
/// Method invoked when associated input action "MainWeaponPrimary" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
|
|
/// </summary>
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
|
void OnMainWeaponPrimary(InputAction.CallbackContext context);
|
|
/// <summary>
|
|
/// Method invoked when associated input action "MainWeaponSecondary" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
|
|
/// </summary>
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
|
void OnMainWeaponSecondary(InputAction.CallbackContext context);
|
|
/// <summary>
|
|
/// Method invoked when associated input action "MainWeaponSpecialA" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
|
|
/// </summary>
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
|
void OnMainWeaponSpecialA(InputAction.CallbackContext context);
|
|
/// <summary>
|
|
/// Method invoked when associated input action "MainWeaponSpecialB" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
|
|
/// </summary>
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
|
void OnMainWeaponSpecialB(InputAction.CallbackContext context);
|
|
/// <summary>
|
|
/// Method invoked when associated input action "MainWeaponSpecialC" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
|
|
/// </summary>
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
|
void OnMainWeaponSpecialC(InputAction.CallbackContext context);
|
|
/// <summary>
|
|
/// Method invoked when associated input action "Interact" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
|
|
/// </summary>
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
|
void OnInteract(InputAction.CallbackContext context);
|
|
/// <summary>
|
|
/// Method invoked when associated input action "UseConsumableItem" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
|
|
/// </summary>
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
|
void OnUseConsumableItem(InputAction.CallbackContext context);
|
|
/// <summary>
|
|
/// Method invoked when associated input action "UseSupportEquipment0" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
|
|
/// </summary>
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
|
void OnUseSupportEquipment0(InputAction.CallbackContext context);
|
|
/// <summary>
|
|
/// Method invoked when associated input action "UseSupportEquipment1" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
|
|
/// </summary>
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
|
void OnUseSupportEquipment1(InputAction.CallbackContext context);
|
|
/// <summary>
|
|
/// Method invoked when associated input action "UseSupportEquipment2" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
|
|
/// </summary>
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
|
void OnUseSupportEquipment2(InputAction.CallbackContext context);
|
|
/// <summary>
|
|
/// Method invoked when associated input action "UseSupportEquipment3" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
|
|
/// </summary>
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
|
void OnUseSupportEquipment3(InputAction.CallbackContext context);
|
|
/// <summary>
|
|
/// Method invoked when associated input action "OpenInventory" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
|
|
/// </summary>
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
|
void OnOpenInventory(InputAction.CallbackContext context);
|
|
/// <summary>
|
|
/// Method invoked when associated input action "SwitchPreviousMainWeapon" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
|
|
/// </summary>
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
|
void OnSwitchPreviousMainWeapon(InputAction.CallbackContext context);
|
|
/// <summary>
|
|
/// Method invoked when associated input action "SwitchNextMainWeapon" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
|
|
/// </summary>
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
|
void OnSwitchNextMainWeapon(InputAction.CallbackContext context);
|
|
/// <summary>
|
|
/// Method invoked when associated input action "Walk" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
|
|
/// </summary>
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
|
void OnWalk(InputAction.CallbackContext context);
|
|
/// <summary>
|
|
/// Method invoked when associated input action "FlyUp" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
|
|
/// </summary>
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
|
void OnFlyUp(InputAction.CallbackContext context);
|
|
/// <summary>
|
|
/// Method invoked when associated input action "LockOnTarget" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
|
|
/// </summary>
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
|
void OnLockOnTarget(InputAction.CallbackContext context);
|
|
/// <summary>
|
|
/// Method invoked when associated input action "RouletteSwitchMainWeapon" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
|
|
/// </summary>
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
|
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
|
void OnRouletteSwitchMainWeapon(InputAction.CallbackContext context);
|
|
}
|
|
}
|