123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321 |
- // GENERATED AUTOMATICALLY FROM 'Assets/Scripts/Player/XBox Controller.inputactions'
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine.InputSystem;
- using UnityEngine.InputSystem.Utilities;
- public class @XBoxController : IInputActionCollection, IDisposable
- {
- public InputActionAsset asset { get; }
- public @XBoxController()
- {
- asset = InputActionAsset.FromJson(@"{
- ""name"": ""XBox Controller"",
- ""maps"": [
- {
- ""name"": ""Movement"",
- ""id"": ""a2da98d8-97f6-4893-8dba-ccfdac38b280"",
- ""actions"": [
- {
- ""name"": ""Move"",
- ""type"": ""Value"",
- ""id"": ""ed4a400d-0cf5-44e8-a0ad-39e03dfb5de1"",
- ""expectedControlType"": ""Stick"",
- ""processors"": """",
- ""interactions"": """"
- },
- {
- ""name"": ""RotationL"",
- ""type"": ""Button"",
- ""id"": ""61a7e5e3-4579-4204-814d-74c1fc0aa871"",
- ""expectedControlType"": ""Button"",
- ""processors"": """",
- ""interactions"": """"
- },
- {
- ""name"": ""RotationR"",
- ""type"": ""Button"",
- ""id"": ""71f2855b-faad-479d-a0e5-0f7c5db06141"",
- ""expectedControlType"": ""Button"",
- ""processors"": """",
- ""interactions"": """"
- },
- {
- ""name"": ""Jump"",
- ""type"": ""Value"",
- ""id"": ""26a20c59-e1d7-4c69-a5df-a6e773c02e12"",
- ""expectedControlType"": ""Button"",
- ""processors"": """",
- ""interactions"": """"
- },
- {
- ""name"": ""Move forward"",
- ""type"": ""Button"",
- ""id"": ""c2a6af26-fcf7-4007-8d2a-71d979ca4921"",
- ""expectedControlType"": ""Button"",
- ""processors"": """",
- ""interactions"": """"
- },
- {
- ""name"": ""Move backward"",
- ""type"": ""Button"",
- ""id"": ""d12f4f56-6755-4b94-9c09-7f54a698ab65"",
- ""expectedControlType"": ""Button"",
- ""processors"": """",
- ""interactions"": """"
- }
- ],
- ""bindings"": [
- {
- ""name"": """",
- ""id"": ""a2aa966d-d88c-45af-bc17-7fa5def12118"",
- ""path"": ""<Gamepad>/leftStick"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""Move"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""a065f1af-abdc-4d72-b733-a83381035547"",
- ""path"": ""<Gamepad>/leftStick/left"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""RotationL"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""d86ff137-5263-423e-8510-73f368cb1564"",
- ""path"": ""<Keyboard>/a"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""RotationL"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""66fb08fa-4865-4a2e-8253-064225f112a3"",
- ""path"": ""<Gamepad>/leftStick/right"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""RotationR"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""a03dfacf-77f8-4563-ab4f-0a697f5077e6"",
- ""path"": ""<Keyboard>/d"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""RotationR"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""63c2077e-bf44-43c8-aecf-993fa504b994"",
- ""path"": ""<Gamepad>/buttonSouth"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""Jump"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""a70a6290-ce04-46f4-b526-008611cccb20"",
- ""path"": ""<Gamepad>/leftStick/up"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""Move forward"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""459e7b01-8a37-4a61-b9ed-0e509beb0d4e"",
- ""path"": ""<Keyboard>/w"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""Move forward"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""5dca0ff1-a0ba-4afa-8905-35f4189d152a"",
- ""path"": ""<Gamepad>/leftStick/down"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""Move backward"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""f906de1b-81d4-49c4-a776-a5c22d268ede"",
- ""path"": ""<Keyboard>/s"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""Move backward"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- }
- ]
- }
- ],
- ""controlSchemes"": []
- }");
- // Movement
- m_Movement = asset.FindActionMap("Movement", throwIfNotFound: true);
- m_Movement_Move = m_Movement.FindAction("Move", throwIfNotFound: true);
- m_Movement_RotationL = m_Movement.FindAction("RotationL", throwIfNotFound: true);
- m_Movement_RotationR = m_Movement.FindAction("RotationR", throwIfNotFound: true);
- m_Movement_Jump = m_Movement.FindAction("Jump", throwIfNotFound: true);
- m_Movement_Moveforward = m_Movement.FindAction("Move forward", throwIfNotFound: true);
- m_Movement_Movebackward = m_Movement.FindAction("Move backward", 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();
- }
- // Movement
- private readonly InputActionMap m_Movement;
- private IMovementActions m_MovementActionsCallbackInterface;
- private readonly InputAction m_Movement_Move;
- private readonly InputAction m_Movement_RotationL;
- private readonly InputAction m_Movement_RotationR;
- private readonly InputAction m_Movement_Jump;
- private readonly InputAction m_Movement_Moveforward;
- private readonly InputAction m_Movement_Movebackward;
- public struct MovementActions
- {
- private @XBoxController m_Wrapper;
- public MovementActions(@XBoxController wrapper) { m_Wrapper = wrapper; }
- public InputAction @Move => m_Wrapper.m_Movement_Move;
- public InputAction @RotationL => m_Wrapper.m_Movement_RotationL;
- public InputAction @RotationR => m_Wrapper.m_Movement_RotationR;
- public InputAction @Jump => m_Wrapper.m_Movement_Jump;
- public InputAction @Moveforward => m_Wrapper.m_Movement_Moveforward;
- public InputAction @Movebackward => m_Wrapper.m_Movement_Movebackward;
- public InputActionMap Get() { return m_Wrapper.m_Movement; }
- public void Enable() { Get().Enable(); }
- public void Disable() { Get().Disable(); }
- public bool enabled => Get().enabled;
- public static implicit operator InputActionMap(MovementActions set) { return set.Get(); }
- public void SetCallbacks(IMovementActions instance)
- {
- if (m_Wrapper.m_MovementActionsCallbackInterface != null)
- {
- @Move.started -= m_Wrapper.m_MovementActionsCallbackInterface.OnMove;
- @Move.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnMove;
- @Move.canceled -= m_Wrapper.m_MovementActionsCallbackInterface.OnMove;
- @RotationL.started -= m_Wrapper.m_MovementActionsCallbackInterface.OnRotationL;
- @RotationL.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnRotationL;
- @RotationL.canceled -= m_Wrapper.m_MovementActionsCallbackInterface.OnRotationL;
- @RotationR.started -= m_Wrapper.m_MovementActionsCallbackInterface.OnRotationR;
- @RotationR.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnRotationR;
- @RotationR.canceled -= m_Wrapper.m_MovementActionsCallbackInterface.OnRotationR;
- @Jump.started -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump;
- @Jump.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump;
- @Jump.canceled -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump;
- @Moveforward.started -= m_Wrapper.m_MovementActionsCallbackInterface.OnMoveforward;
- @Moveforward.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnMoveforward;
- @Moveforward.canceled -= m_Wrapper.m_MovementActionsCallbackInterface.OnMoveforward;
- @Movebackward.started -= m_Wrapper.m_MovementActionsCallbackInterface.OnMovebackward;
- @Movebackward.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnMovebackward;
- @Movebackward.canceled -= m_Wrapper.m_MovementActionsCallbackInterface.OnMovebackward;
- }
- m_Wrapper.m_MovementActionsCallbackInterface = instance;
- if (instance != null)
- {
- @Move.started += instance.OnMove;
- @Move.performed += instance.OnMove;
- @Move.canceled += instance.OnMove;
- @RotationL.started += instance.OnRotationL;
- @RotationL.performed += instance.OnRotationL;
- @RotationL.canceled += instance.OnRotationL;
- @RotationR.started += instance.OnRotationR;
- @RotationR.performed += instance.OnRotationR;
- @RotationR.canceled += instance.OnRotationR;
- @Jump.started += instance.OnJump;
- @Jump.performed += instance.OnJump;
- @Jump.canceled += instance.OnJump;
- @Moveforward.started += instance.OnMoveforward;
- @Moveforward.performed += instance.OnMoveforward;
- @Moveforward.canceled += instance.OnMoveforward;
- @Movebackward.started += instance.OnMovebackward;
- @Movebackward.performed += instance.OnMovebackward;
- @Movebackward.canceled += instance.OnMovebackward;
- }
- }
- }
- public MovementActions @Movement => new MovementActions(this);
- public interface IMovementActions
- {
- void OnMove(InputAction.CallbackContext context);
- void OnRotationL(InputAction.CallbackContext context);
- void OnRotationR(InputAction.CallbackContext context);
- void OnJump(InputAction.CallbackContext context);
- void OnMoveforward(InputAction.CallbackContext context);
- void OnMovebackward(InputAction.CallbackContext context);
- }
- }
|