// GENERATED AUTOMATICALLY FROM 'Assets/Settings/Input Action/Input Actions.inputactions' using System; using System.Collections; using System.Collections.Generic; using UnityEngine.InputSystem; using UnityEngine.InputSystem.Utilities; public class @InputActions : IInputActionCollection, IDisposable { public InputActionAsset asset { get; } public @InputActions() { asset = InputActionAsset.FromJson(@"{ ""name"": ""Input Actions"", ""maps"": [ { ""name"": ""FiremanInput"", ""id"": ""5bbef760-d7e0-4105-bd1b-cb5b2b194dc7"", ""actions"": [ { ""name"": ""Look"", ""type"": ""Value"", ""id"": ""dbd29b1b-a2a9-41ac-8615-40a32d0d5b0e"", ""expectedControlType"": ""Vector2"", ""processors"": """", ""interactions"": """" }, { ""name"": ""Shoot"", ""type"": ""Value"", ""id"": ""6c454ef3-6316-457d-b755-fef235ee2cdd"", ""expectedControlType"": ""Axis"", ""processors"": ""AxisDeadzone"", ""interactions"": """" }, { ""name"": ""Lock"", ""type"": ""Button"", ""id"": ""723d7c44-d5e1-45ee-98eb-869ae3e492fd"", ""expectedControlType"": ""Button"", ""processors"": ""AxisDeadzone"", ""interactions"": """" } ], ""bindings"": [ { ""name"": """", ""id"": ""a9024f67-164c-47ba-995f-2de3c4dedafb"", ""path"": ""<Gamepad>/rightStick"", ""interactions"": """", ""processors"": ""StickDeadzone,ScaleVector2(x=1.3,y=1.3)"", ""groups"": """", ""action"": ""Look"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""276a6b07-a5fa-4046-9d99-0f6b82163a57"", ""path"": ""<Mouse>/delta"", ""interactions"": """", ""processors"": ""ScaleVector2(x=0.2,y=0.2)"", ""groups"": """", ""action"": ""Look"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""a09f80c1-5857-4b6a-9cd5-d86e4c7537d6"", ""path"": ""<Mouse>/rightButton"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Shoot"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""c01c09da-4f00-4a71-bfc3-9b689c070497"", ""path"": ""<Gamepad>/rightTrigger"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Shoot"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""cfd3f6a1-9a12-496d-bf5a-fe7a227cb928"", ""path"": ""<Keyboard>/space"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Lock"", ""isComposite"": false, ""isPartOfComposite"": false } ] }, { ""name"": ""BuilderInput"", ""id"": ""df162448-120c-44a8-b65b-fc2156fbc64d"", ""actions"": [ { ""name"": ""Look"", ""type"": ""Value"", ""id"": ""052a4103-134a-4326-adaa-b7a9acd3f17a"", ""expectedControlType"": ""Vector2"", ""processors"": """", ""interactions"": """" }, { ""name"": ""Confirm"", ""type"": ""Button"", ""id"": ""bdd02179-2db9-446b-8804-7be8d90ab71b"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """" }, { ""name"": ""Lock"", ""type"": ""Button"", ""id"": ""5c9b1eb7-82ce-4b78-a657-ff031f6af1ce"", ""expectedControlType"": ""Button"", ""processors"": ""AxisDeadzone"", ""interactions"": """" }, { ""name"": ""MoveBuilding"", ""type"": ""PassThrough"", ""id"": ""01ce0843-b6d6-4ed2-bdd8-bd192a554b84"", ""expectedControlType"": ""Vector2"", ""processors"": ""StickDeadzone"", ""interactions"": """" }, { ""name"": ""RotateBuilding"", ""type"": ""Button"", ""id"": ""07cc0c64-e6a5-4979-a8f4-606fd7684889"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """" } ], ""bindings"": [ { ""name"": """", ""id"": ""fd61a5a3-9882-4e1e-9ff6-385506df01a4"", ""path"": ""<Gamepad>/rightStick"", ""interactions"": """", ""processors"": ""StickDeadzone,ScaleVector2(x=1.3,y=1.3)"", ""groups"": """", ""action"": ""Look"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""83c403f9-2987-41bf-a77e-5e11ecfe6b75"", ""path"": ""<Mouse>/delta"", ""interactions"": """", ""processors"": ""ScaleVector2(x=0.2,y=0.2)"", ""groups"": """", ""action"": ""Look"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""4713a9e9-3aa9-4566-8137-8c27ccecbee6"", ""path"": ""<Keyboard>/space"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Lock"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""d2dff4ba-44b3-47d2-b2a1-637c21c9593f"", ""path"": ""<Gamepad>/leftStick"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""MoveBuilding"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": ""Keyboard"", ""id"": ""5d16c8f6-628c-460f-999a-dd870318afde"", ""path"": ""2DVector"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""MoveBuilding"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""left"", ""id"": ""3ea2a359-77eb-4cc4-876a-e17eaef6e566"", ""path"": ""<Keyboard>/a"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""MoveBuilding"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""cc0c2d1e-208b-44f6-b000-1c0d251aa3ec"", ""path"": ""<Keyboard>/d"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""MoveBuilding"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""up"", ""id"": ""0f03ba17-9b9a-4473-9c4f-488174a0ff41"", ""path"": ""<Keyboard>/w"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""MoveBuilding"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""c2b02520-cd4e-46c2-a3a4-2a4429a604a0"", ""path"": ""<Keyboard>/s"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""MoveBuilding"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": """", ""id"": ""a5bf9c72-6ad1-4113-9d8d-91c48743cd7d"", ""path"": ""<XRController>{RightHand}/joystick"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""MoveBuilding"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""99b19db8-721a-48f1-8fc6-b8fa7a96ac1c"", ""path"": ""<Keyboard>/e"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Confirm"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""b41a0145-68f2-4f54-b3e2-874be02d60ff"", ""path"": ""<XInputController>/buttonSouth"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Confirm"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""791f8fd6-aa8d-47a2-8008-b64349bfcbe3"", ""path"": ""<XRController>{RightHand}/triggerButton"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Confirm"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""cd0bbc01-8a18-4710-9cf1-ec786c81f49d"", ""path"": ""<XInputController>/buttonWest"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""RotateBuilding"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""4ea75d5a-5275-40af-8a58-d663f8427ec2"", ""path"": ""<Keyboard>/q"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""RotateBuilding"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""f0c6fd00-7cef-4a23-a5be-2fc3edbf9d2f"", ""path"": ""<XRController>{RightHand}/primaryButton"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""RotateBuilding"", ""isComposite"": false, ""isPartOfComposite"": false } ] }, { ""name"": ""General"", ""id"": ""98d9024b-c76e-4c8e-ba33-e907eb3cba58"", ""actions"": [ { ""name"": ""Switch VR Control Mode"", ""type"": ""Button"", ""id"": ""7d40f553-ffa8-43ef-901a-a0aae687e7cc"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """" }, { ""name"": ""VR Menu"", ""type"": ""Button"", ""id"": ""a1939950-0e6e-4aa8-9d65-4a02bbedba98"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """" } ], ""bindings"": [ { ""name"": """", ""id"": ""8644246a-2ba9-4e9d-886d-85078815c72a"", ""path"": ""<Keyboard>/i"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Switch VR Control Mode"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""75f64e61-68da-4ecb-9d22-892c4c1d377d"", ""path"": ""<XRController>{LeftHand}/menu"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""VR Menu"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""9d0a43b0-119c-49bd-8370-1204619dbf2d"", ""path"": ""<Keyboard>/escape"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""VR Menu"", ""isComposite"": false, ""isPartOfComposite"": false } ] } ], ""controlSchemes"": [] }"); // FiremanInput m_FiremanInput = asset.FindActionMap("FiremanInput", throwIfNotFound: true); m_FiremanInput_Look = m_FiremanInput.FindAction("Look", throwIfNotFound: true); m_FiremanInput_Shoot = m_FiremanInput.FindAction("Shoot", throwIfNotFound: true); m_FiremanInput_Lock = m_FiremanInput.FindAction("Lock", throwIfNotFound: true); // BuilderInput m_BuilderInput = asset.FindActionMap("BuilderInput", throwIfNotFound: true); m_BuilderInput_Look = m_BuilderInput.FindAction("Look", throwIfNotFound: true); m_BuilderInput_Confirm = m_BuilderInput.FindAction("Confirm", throwIfNotFound: true); m_BuilderInput_Lock = m_BuilderInput.FindAction("Lock", throwIfNotFound: true); m_BuilderInput_MoveBuilding = m_BuilderInput.FindAction("MoveBuilding", throwIfNotFound: true); m_BuilderInput_RotateBuilding = m_BuilderInput.FindAction("RotateBuilding", throwIfNotFound: true); // General m_General = asset.FindActionMap("General", throwIfNotFound: true); m_General_SwitchVRControlMode = m_General.FindAction("Switch VR Control Mode", throwIfNotFound: true); m_General_VRMenu = m_General.FindAction("VR Menu", 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(); } // FiremanInput private readonly InputActionMap m_FiremanInput; private IFiremanInputActions m_FiremanInputActionsCallbackInterface; private readonly InputAction m_FiremanInput_Look; private readonly InputAction m_FiremanInput_Shoot; private readonly InputAction m_FiremanInput_Lock; public struct FiremanInputActions { private @InputActions m_Wrapper; public FiremanInputActions(@InputActions wrapper) { m_Wrapper = wrapper; } public InputAction @Look => m_Wrapper.m_FiremanInput_Look; public InputAction @Shoot => m_Wrapper.m_FiremanInput_Shoot; public InputAction @Lock => m_Wrapper.m_FiremanInput_Lock; public InputActionMap Get() { return m_Wrapper.m_FiremanInput; } public void Enable() { Get().Enable(); } public void Disable() { Get().Disable(); } public bool enabled => Get().enabled; public static implicit operator InputActionMap(FiremanInputActions set) { return set.Get(); } public void SetCallbacks(IFiremanInputActions instance) { if (m_Wrapper.m_FiremanInputActionsCallbackInterface != null) { @Look.started -= m_Wrapper.m_FiremanInputActionsCallbackInterface.OnLook; @Look.performed -= m_Wrapper.m_FiremanInputActionsCallbackInterface.OnLook; @Look.canceled -= m_Wrapper.m_FiremanInputActionsCallbackInterface.OnLook; @Shoot.started -= m_Wrapper.m_FiremanInputActionsCallbackInterface.OnShoot; @Shoot.performed -= m_Wrapper.m_FiremanInputActionsCallbackInterface.OnShoot; @Shoot.canceled -= m_Wrapper.m_FiremanInputActionsCallbackInterface.OnShoot; @Lock.started -= m_Wrapper.m_FiremanInputActionsCallbackInterface.OnLock; @Lock.performed -= m_Wrapper.m_FiremanInputActionsCallbackInterface.OnLock; @Lock.canceled -= m_Wrapper.m_FiremanInputActionsCallbackInterface.OnLock; } m_Wrapper.m_FiremanInputActionsCallbackInterface = instance; if (instance != null) { @Look.started += instance.OnLook; @Look.performed += instance.OnLook; @Look.canceled += instance.OnLook; @Shoot.started += instance.OnShoot; @Shoot.performed += instance.OnShoot; @Shoot.canceled += instance.OnShoot; @Lock.started += instance.OnLock; @Lock.performed += instance.OnLock; @Lock.canceled += instance.OnLock; } } } public FiremanInputActions @FiremanInput => new FiremanInputActions(this); // BuilderInput private readonly InputActionMap m_BuilderInput; private IBuilderInputActions m_BuilderInputActionsCallbackInterface; private readonly InputAction m_BuilderInput_Look; private readonly InputAction m_BuilderInput_Confirm; private readonly InputAction m_BuilderInput_Lock; private readonly InputAction m_BuilderInput_MoveBuilding; private readonly InputAction m_BuilderInput_RotateBuilding; public struct BuilderInputActions { private @InputActions m_Wrapper; public BuilderInputActions(@InputActions wrapper) { m_Wrapper = wrapper; } public InputAction @Look => m_Wrapper.m_BuilderInput_Look; public InputAction @Confirm => m_Wrapper.m_BuilderInput_Confirm; public InputAction @Lock => m_Wrapper.m_BuilderInput_Lock; public InputAction @MoveBuilding => m_Wrapper.m_BuilderInput_MoveBuilding; public InputAction @RotateBuilding => m_Wrapper.m_BuilderInput_RotateBuilding; public InputActionMap Get() { return m_Wrapper.m_BuilderInput; } public void Enable() { Get().Enable(); } public void Disable() { Get().Disable(); } public bool enabled => Get().enabled; public static implicit operator InputActionMap(BuilderInputActions set) { return set.Get(); } public void SetCallbacks(IBuilderInputActions instance) { if (m_Wrapper.m_BuilderInputActionsCallbackInterface != null) { @Look.started -= m_Wrapper.m_BuilderInputActionsCallbackInterface.OnLook; @Look.performed -= m_Wrapper.m_BuilderInputActionsCallbackInterface.OnLook; @Look.canceled -= m_Wrapper.m_BuilderInputActionsCallbackInterface.OnLook; @Confirm.started -= m_Wrapper.m_BuilderInputActionsCallbackInterface.OnConfirm; @Confirm.performed -= m_Wrapper.m_BuilderInputActionsCallbackInterface.OnConfirm; @Confirm.canceled -= m_Wrapper.m_BuilderInputActionsCallbackInterface.OnConfirm; @Lock.started -= m_Wrapper.m_BuilderInputActionsCallbackInterface.OnLock; @Lock.performed -= m_Wrapper.m_BuilderInputActionsCallbackInterface.OnLock; @Lock.canceled -= m_Wrapper.m_BuilderInputActionsCallbackInterface.OnLock; @MoveBuilding.started -= m_Wrapper.m_BuilderInputActionsCallbackInterface.OnMoveBuilding; @MoveBuilding.performed -= m_Wrapper.m_BuilderInputActionsCallbackInterface.OnMoveBuilding; @MoveBuilding.canceled -= m_Wrapper.m_BuilderInputActionsCallbackInterface.OnMoveBuilding; @RotateBuilding.started -= m_Wrapper.m_BuilderInputActionsCallbackInterface.OnRotateBuilding; @RotateBuilding.performed -= m_Wrapper.m_BuilderInputActionsCallbackInterface.OnRotateBuilding; @RotateBuilding.canceled -= m_Wrapper.m_BuilderInputActionsCallbackInterface.OnRotateBuilding; } m_Wrapper.m_BuilderInputActionsCallbackInterface = instance; if (instance != null) { @Look.started += instance.OnLook; @Look.performed += instance.OnLook; @Look.canceled += instance.OnLook; @Confirm.started += instance.OnConfirm; @Confirm.performed += instance.OnConfirm; @Confirm.canceled += instance.OnConfirm; @Lock.started += instance.OnLock; @Lock.performed += instance.OnLock; @Lock.canceled += instance.OnLock; @MoveBuilding.started += instance.OnMoveBuilding; @MoveBuilding.performed += instance.OnMoveBuilding; @MoveBuilding.canceled += instance.OnMoveBuilding; @RotateBuilding.started += instance.OnRotateBuilding; @RotateBuilding.performed += instance.OnRotateBuilding; @RotateBuilding.canceled += instance.OnRotateBuilding; } } } public BuilderInputActions @BuilderInput => new BuilderInputActions(this); // General private readonly InputActionMap m_General; private IGeneralActions m_GeneralActionsCallbackInterface; private readonly InputAction m_General_SwitchVRControlMode; private readonly InputAction m_General_VRMenu; public struct GeneralActions { private @InputActions m_Wrapper; public GeneralActions(@InputActions wrapper) { m_Wrapper = wrapper; } public InputAction @SwitchVRControlMode => m_Wrapper.m_General_SwitchVRControlMode; public InputAction @VRMenu => m_Wrapper.m_General_VRMenu; public InputActionMap Get() { return m_Wrapper.m_General; } public void Enable() { Get().Enable(); } public void Disable() { Get().Disable(); } public bool enabled => Get().enabled; public static implicit operator InputActionMap(GeneralActions set) { return set.Get(); } public void SetCallbacks(IGeneralActions instance) { if (m_Wrapper.m_GeneralActionsCallbackInterface != null) { @SwitchVRControlMode.started -= m_Wrapper.m_GeneralActionsCallbackInterface.OnSwitchVRControlMode; @SwitchVRControlMode.performed -= m_Wrapper.m_GeneralActionsCallbackInterface.OnSwitchVRControlMode; @SwitchVRControlMode.canceled -= m_Wrapper.m_GeneralActionsCallbackInterface.OnSwitchVRControlMode; @VRMenu.started -= m_Wrapper.m_GeneralActionsCallbackInterface.OnVRMenu; @VRMenu.performed -= m_Wrapper.m_GeneralActionsCallbackInterface.OnVRMenu; @VRMenu.canceled -= m_Wrapper.m_GeneralActionsCallbackInterface.OnVRMenu; } m_Wrapper.m_GeneralActionsCallbackInterface = instance; if (instance != null) { @SwitchVRControlMode.started += instance.OnSwitchVRControlMode; @SwitchVRControlMode.performed += instance.OnSwitchVRControlMode; @SwitchVRControlMode.canceled += instance.OnSwitchVRControlMode; @VRMenu.started += instance.OnVRMenu; @VRMenu.performed += instance.OnVRMenu; @VRMenu.canceled += instance.OnVRMenu; } } } public GeneralActions @General => new GeneralActions(this); public interface IFiremanInputActions { void OnLook(InputAction.CallbackContext context); void OnShoot(InputAction.CallbackContext context); void OnLock(InputAction.CallbackContext context); } public interface IBuilderInputActions { void OnLook(InputAction.CallbackContext context); void OnConfirm(InputAction.CallbackContext context); void OnLock(InputAction.CallbackContext context); void OnMoveBuilding(InputAction.CallbackContext context); void OnRotateBuilding(InputAction.CallbackContext context); } public interface IGeneralActions { void OnSwitchVRControlMode(InputAction.CallbackContext context); void OnVRMenu(InputAction.CallbackContext context); } }