//------------------------------------------------------------------------------ // // This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator // version 1.3.0 // from Assets/InputMaster.inputactions // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ using System; using System.Collections; using System.Collections.Generic; using UnityEngine.InputSystem; using UnityEngine.InputSystem.Utilities; public partial class @InputMaster : IInputActionCollection2, IDisposable { public InputActionAsset asset { get; } public @InputMaster() { asset = InputActionAsset.FromJson(@"{ ""name"": ""InputMaster"", ""maps"": [ { ""name"": ""Player"", ""id"": ""a783c184-a89e-4313-a815-e3563035be8d"", ""actions"": [ { ""name"": ""Shoot"", ""type"": ""Button"", ""id"": ""4b107e51-72b2-4ca5-bd46-3fe6f925bc11"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Movement"", ""type"": ""Value"", ""id"": ""5ade318c-673b-4103-bd70-6978a23f1339"", ""expectedControlType"": ""Vector2"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": true } ], ""bindings"": [ { ""name"": """", ""id"": ""15d91e5f-9aa5-4bfe-8b66-3305728aeaee"", ""path"": ""/q"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Shoot"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""67318264-3ee9-466e-ac47-fa38a37e72a8"", ""path"": ""/t"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Shoot"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""b1f39785-4294-4fe1-9daf-5e699315bdf8"", ""path"": ""/space"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Shoot"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""af21d08e-c697-4e7b-88b6-ab285d039655"", ""path"": ""/numpad7"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Shoot"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""fd8b1b85-2e49-42b4-9650-36d1b6168914"", ""path"": ""/rightTrigger"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Shoot"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""ce969bad-123a-4417-bc76-d8075f6c6596"", ""path"": ""/leftTrigger"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Shoot"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""43b05b5c-d0ac-474d-a48b-8af495fd9c6e"", ""path"": ""/rightShoulder"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Shoot"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""ff951c55-8df6-40d8-96f2-5f319b4e09b6"", ""path"": ""/leftShoulder"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Shoot"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": ""2D Vector"", ""id"": ""83cc5158-fac4-4231-89e5-21ab538cdf79"", ""path"": ""2DVector"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Movement"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""up"", ""id"": ""123ce98f-68d3-4920-991b-8bb785b963c5"", ""path"": ""/e"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""98e0b041-ad63-4049-b1b7-a8376bcfcab9"", ""path"": ""/d"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""bc05db1d-90f5-45f9-a33c-9bd6459c8d56"", ""path"": ""/s"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""5a645799-e30a-420a-b9e9-e7cb67b8479b"", ""path"": ""/f"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""2D Vector"", ""id"": ""8e427b2b-74cf-4c9d-bd72-0108217fa7c0"", ""path"": ""2DVector"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Movement"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""up"", ""id"": ""602f7cc5-6d9f-468e-928e-aa6c4335b032"", ""path"": ""/i"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""67536a26-9548-415e-beb2-b05b671bfc79"", ""path"": ""/k"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""dcc7720f-17f0-4e10-b2c0-2c3f43649b82"", ""path"": ""/j"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""77b2eb4e-09f0-43bc-b327-8c22d39e1f6e"", ""path"": ""/l"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""2D Vector"", ""id"": ""5f8e392f-e102-412e-808c-1c0d0f6d0d1c"", ""path"": ""2DVector"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Movement"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""up"", ""id"": ""a4f414d5-0b4e-4646-ae13-f101b322787c"", ""path"": ""/upArrow"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""1c38d675-68ca-4a69-9e83-7d476b11ecb8"", ""path"": ""/downArrow"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""de1783b5-c4c3-4df1-b1f6-f31a92289b7f"", ""path"": ""/leftArrow"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""802cc7db-4145-4f4b-8f12-5b4d04c4cd34"", ""path"": ""/rightArrow"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""2D Vector"", ""id"": ""929bb35d-4c13-4269-a96b-19575a7e0875"", ""path"": ""2DVector"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Movement"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""up"", ""id"": ""27438f1d-427b-43bb-828c-59a0651ba4ed"", ""path"": ""/numpad5"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""273771cf-7209-4c4e-91bd-7bcdd59b8058"", ""path"": ""/numpad2"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""4488adf1-f2eb-4315-9a28-d6f1e082c00d"", ""path"": ""/numpad1"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""601eed6e-0487-4b76-ac44-937e59ec1baa"", ""path"": ""/numpad3"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""2D Vector"", ""id"": ""83205de0-d84a-4e93-8bb6-dac3695d3e96"", ""path"": ""2DVector"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Movement"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""up"", ""id"": ""fb09f037-9b5e-4e15-9636-f442e9582b71"", ""path"": ""/leftStick/up"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""e9570dae-9d6d-41e5-916f-c517f3d92cf2"", ""path"": ""/leftStick/down"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""1a21c3b1-25ac-408a-8353-25b58c02a0cd"", ""path"": ""/leftStick/left"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""692a063e-e9f1-4618-9b4f-3dfa3320f452"", ""path"": ""/leftStick/right"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""2D Vector"", ""id"": ""1083e319-9bf1-4078-91c8-1d23314b494f"", ""path"": ""2DVector"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Movement"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""up"", ""id"": ""8fd1db79-a735-40ba-9840-0e4cbab3c95d"", ""path"": ""/rightStick/up"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""1c055962-72a4-4bb2-b64a-27bb2819dc21"", ""path"": ""/leftStick/down"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""6019368c-51d1-44d1-b1fc-e0927fbf3527"", ""path"": ""/leftStick/left"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""d343037d-b26c-4cef-8054-abc121596fda"", ""path"": ""/leftStick/right"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""2D Vector"", ""id"": ""879a1669-eb82-48f8-8733-9a80dee5b735"", ""path"": ""2DVector"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Movement"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""up"", ""id"": ""dfcdd6bf-7f24-47eb-978b-18792e3fd1d4"", ""path"": ""/dpad/up"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""db9e43ff-febf-450b-96ac-9307671005ef"", ""path"": ""/dpad/down"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""54af0f26-5e48-46fd-9a7e-895851dd925a"", ""path"": ""/dpad/left"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""4d436bbf-8ead-42ba-af37-d28eefb7b0d3"", ""path"": ""/dpad/right"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""2D Vector"", ""id"": ""a4adeb95-c64e-42ad-b220-b9c7c793f1e3"", ""path"": ""2DVector"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Movement"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""up"", ""id"": ""c8306adc-8c58-4687-bdfb-5e4e4792679a"", ""path"": ""/buttonNorth"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""22898ff8-c2df-499e-bb65-03b4ab7d5ac7"", ""path"": ""/buttonSouth"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""4c780a32-9f41-4ad9-95eb-42d41b627ff4"", ""path"": ""/buttonWest"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""da86ca75-7900-41a3-b367-68e70b787448"", ""path"": ""/buttonEast"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true } ] } ], ""controlSchemes"": [ { ""name"": ""Keyboard"", ""bindingGroup"": ""Keyboard"", ""devices"": [ { ""devicePath"": """", ""isOptional"": false, ""isOR"": false } ] }, { ""name"": ""Gamepad"", ""bindingGroup"": ""Gamepad"", ""devices"": [ { ""devicePath"": """", ""isOptional"": false, ""isOR"": false }, { ""devicePath"": """", ""isOptional"": false, ""isOR"": false } ] } ] }"); // Player m_Player = asset.FindActionMap("Player", throwIfNotFound: true); m_Player_Shoot = m_Player.FindAction("Shoot", throwIfNotFound: true); m_Player_Movement = m_Player.FindAction("Movement", throwIfNotFound: true); } public void Dispose() { UnityEngine.Object.Destroy(asset); } public InputBinding? bindingMask { get => asset.bindingMask; set => asset.bindingMask = value; } public ReadOnlyArray? devices { get => asset.devices; set => asset.devices = value; } public ReadOnlyArray controlSchemes => asset.controlSchemes; public bool Contains(InputAction action) { return asset.Contains(action); } public IEnumerator GetEnumerator() { return asset.GetEnumerator(); } IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator(); } public void Enable() { asset.Enable(); } public void Disable() { asset.Disable(); } public IEnumerable bindings => asset.bindings; public InputAction FindAction(string actionNameOrId, bool throwIfNotFound = false) { return asset.FindAction(actionNameOrId, throwIfNotFound); } public int FindBinding(InputBinding bindingMask, out InputAction action) { return asset.FindBinding(bindingMask, out action); } // Player private readonly InputActionMap m_Player; private IPlayerActions m_PlayerActionsCallbackInterface; private readonly InputAction m_Player_Shoot; private readonly InputAction m_Player_Movement; public struct PlayerActions { private @InputMaster m_Wrapper; public PlayerActions(@InputMaster wrapper) { m_Wrapper = wrapper; } public InputAction @Shoot => m_Wrapper.m_Player_Shoot; public InputAction @Movement => m_Wrapper.m_Player_Movement; public InputActionMap Get() { return m_Wrapper.m_Player; } public void Enable() { Get().Enable(); } public void Disable() { Get().Disable(); } public bool enabled => Get().enabled; public static implicit operator InputActionMap(PlayerActions set) { return set.Get(); } public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { @Shoot.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnShoot; @Shoot.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnShoot; @Shoot.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnShoot; @Movement.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMovement; @Movement.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMovement; @Movement.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMovement; } m_Wrapper.m_PlayerActionsCallbackInterface = instance; if (instance != null) { @Shoot.started += instance.OnShoot; @Shoot.performed += instance.OnShoot; @Shoot.canceled += instance.OnShoot; @Movement.started += instance.OnMovement; @Movement.performed += instance.OnMovement; @Movement.canceled += instance.OnMovement; } } } public PlayerActions @Player => new PlayerActions(this); private int m_KeyboardSchemeIndex = -1; public InputControlScheme KeyboardScheme { get { if (m_KeyboardSchemeIndex == -1) m_KeyboardSchemeIndex = asset.FindControlSchemeIndex("Keyboard"); return asset.controlSchemes[m_KeyboardSchemeIndex]; } } private int m_GamepadSchemeIndex = -1; public InputControlScheme GamepadScheme { get { if (m_GamepadSchemeIndex == -1) m_GamepadSchemeIndex = asset.FindControlSchemeIndex("Gamepad"); return asset.controlSchemes[m_GamepadSchemeIndex]; } } public interface IPlayerActions { void OnShoot(InputAction.CallbackContext context); void OnMovement(InputAction.CallbackContext context); } }