123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435 |
- //------------------------------------------------------------------------------
- // <auto-generated>
- // 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.
- // </auto-generated>
- //------------------------------------------------------------------------------
- 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"": ""<Keyboard>/w"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""Move"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""down"",
- ""id"": ""a108c3a8-d606-48b1-a267-1230d4924a06"",
- ""path"": ""<Keyboard>/s"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""Move"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""left"",
- ""id"": ""ef42e706-084a-441a-971c-b37b9ff51d54"",
- ""path"": ""<Keyboard>/a"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""Move"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""right"",
- ""id"": ""0671f667-a5f4-4be0-b096-f30e049e8b67"",
- ""path"": ""<Keyboard>/d"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""Move"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": """",
- ""id"": ""8f6591a1-b519-45a1-8f85-0900c22e0bfa"",
- ""path"": ""<Gamepad>/leftStick"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""Move"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""6ffa5d62-d6f9-4e28-ac49-1194132095e0"",
- ""path"": ""<Keyboard>/space"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""Jump"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""f4e974b0-ee7b-4e3e-a28e-2bd654b60a8f"",
- ""path"": ""<Gamepad>/buttonSouth"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""Jump"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""d4ccbb01-d9b6-4358-a81e-c96621bfb98a"",
- ""path"": ""<Mouse>/delta"",
- ""interactions"": """",
- ""processors"": ""ScaleVector2"",
- ""groups"": """",
- ""action"": ""UIRot"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""ea41aaa3-71af-4a0f-a472-46b9f582153a"",
- ""path"": ""<Touchscreen>/touch0/delta"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""UIRot"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""4077713c-4a4a-4a7d-b59c-3844eff339b8"",
- ""path"": ""<Mouse>/leftButton"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""PressDown"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""1f3ce28e-26f4-4475-9185-1d065b52e2b8"",
- ""path"": ""<Pointer>/press"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""PressDown"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""ce253bba-0484-4170-ac71-817a0d336bb2"",
- ""path"": ""<Touchscreen>/touch0/delta"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""Touch0"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""2777540a-a6da-42d2-9968-207cb69b0dc6"",
- ""path"": ""<Touchscreen>/touch1/delta"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""Touch1"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""22ca5a7c-ec1e-4637-bf79-ae08d35db535"",
- ""path"": ""<Mouse>/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<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 List<IPlayerActions> m_PlayerActionsCallbackInterfaces = new List<IPlayerActions>();
- 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);
- }
- }
|