// GENERATED AUTOMATICALLY FROM 'Assets/Data/InputControls.inputactions' using System.Collections; using System.Collections.Generic; using UnityEngine.InputSystem; using UnityEngine.InputSystem.Utilities; public class InputControls : IInputActionCollection { private InputActionAsset asset; public InputControls() { asset = InputActionAsset.FromJson(@"{ ""name"": ""InputControls"", ""maps"": [ { ""name"": ""BoatControls"", ""id"": ""ef127e39-c6d2-4d6f-8edc-46296d5de0cb"", ""actions"": [ { ""name"": ""Trottle"", ""type"": ""Value"", ""id"": ""591093b7-743c-42e6-b71e-bab02d178bd1"", ""expectedControlType"": ""Axis"", ""processors"": ""AxisDeadzone(min=0.1,max=1)"", ""interactions"": """" }, { ""name"": ""Steering"", ""type"": ""Value"", ""id"": ""67e3403a-b3e8-43af-ab52-4575ba23afef"", ""expectedControlType"": ""Axis"", ""processors"": ""AxisDeadzone(min=0.1,max=1)"", ""interactions"": """" } ], ""bindings"": [ { ""name"": ""Triggers"", ""id"": ""3466fe24-0064-418d-9331-557be3fdcac4"", ""path"": ""1DAxis"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Trottle"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""negative"", ""id"": ""eff0cde8-c5f9-43b6-86e8-8385017c8985"", ""path"": ""/leftTrigger"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Trottle"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""positive"", ""id"": ""e7382d1c-3b18-4582-9511-5569c858581e"", ""path"": ""/rightTrigger"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Trottle"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""Buttons"", ""id"": ""e1093b33-e798-4080-866e-f94010a4d7e0"", ""path"": ""1DAxis"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Trottle"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""negative"", ""id"": ""b9957a1f-893b-4ee8-9579-667c3bb073d3"", ""path"": ""/buttonEast"", ""interactions"": """", ""processors"": """", ""groups"": "";Gamepad"", ""action"": ""Trottle"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""positive"", ""id"": ""de45f7f3-08ae-4508-a9d8-aca8191f35a1"", ""path"": ""/buttonSouth"", ""interactions"": """", ""processors"": """", ""groups"": "";Gamepad"", ""action"": ""Trottle"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""Arrows"", ""id"": ""4caeca52-a08d-469a-a986-778564c27c84"", ""path"": ""1DAxis"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Trottle"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""negative"", ""id"": ""6b1d89c6-a8e7-4b32-9c05-f848bb1064a8"", ""path"": ""/downArrow"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Trottle"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""positive"", ""id"": ""b25a71de-239c-4d0a-8050-0169566cea38"", ""path"": ""/upArrow"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Trottle"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""WSAD"", ""id"": ""1d540095-a749-43de-89cd-2806255106e3"", ""path"": ""1DAxis"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Trottle"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""negative"", ""id"": ""c59fc22d-e257-4273-9159-4416a56a15d0"", ""path"": ""/s"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Trottle"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""positive"", ""id"": ""a91b562c-2ac5-4d79-9a5b-1f2e59241e92"", ""path"": ""/w"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Trottle"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""Alt"", ""id"": ""edd450a3-5814-4902-80ec-bcc25edd0366"", ""path"": ""1DAxis"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Trottle"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""negative"", ""id"": ""71ae2e67-e9b6-4a48-9669-38e7fe243cbc"", ""path"": ""/z"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Trottle"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""positive"", ""id"": ""a1291229-823b-4ede-82e6-090bc1bdfa21"", ""path"": ""/space"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Trottle"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": """", ""id"": ""30ce0b9b-3da0-420a-abc3-8f2040388953"", ""path"": ""/touch/position/y"", ""interactions"": """", ""processors"": ""Clamp(min=-1,max=1)"", ""groups"": ""TouchScreen"", ""action"": ""Trottle"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": ""LeftThumbstick"", ""id"": ""01df8425-ce9a-4024-bad4-0f5e8002094f"", ""path"": ""1DAxis"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Steering"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""negative"", ""id"": ""3866264b-46e4-428b-9624-ada67f2de7bd"", ""path"": ""/leftStick/left"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Steering"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""positive"", ""id"": ""9a637b8c-8d48-42f2-9cef-114e3b8bb2ba"", ""path"": ""/leftStick/right"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Steering"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""DPad"", ""id"": ""8aeee6b0-abef-4b03-a8b3-e592682ef6ac"", ""path"": ""1DAxis"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Steering"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""negative"", ""id"": ""52a3b81b-20a0-4d9a-a700-4b0941383170"", ""path"": ""/dpad/left"", ""interactions"": """", ""processors"": """", ""groups"": "";Gamepad"", ""action"": ""Steering"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""positive"", ""id"": ""3406ab27-525e-47ca-84d5-25e0a5a83c29"", ""path"": ""/dpad/right"", ""interactions"": """", ""processors"": """", ""groups"": "";Gamepad"", ""action"": ""Steering"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""Arrows"", ""id"": ""b5b408fa-df11-4ebc-b589-5ff03be94ba1"", ""path"": ""1DAxis"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Steering"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""negative"", ""id"": ""010e7196-f4dd-4d5c-8f42-f47f3984bc01"", ""path"": ""/leftArrow"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Steering"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""positive"", ""id"": ""36de1a52-c485-4d40-8d4d-323d8fe73445"", ""path"": ""/rightArrow"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Steering"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""WSAD"", ""id"": ""24d9ae40-f8f8-4a39-abbe-68ce064083f8"", ""path"": ""1DAxis"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Steering"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""negative"", ""id"": ""c07695cd-a24b-4ba5-8162-fd6c1d55667a"", ""path"": ""/a"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Steering"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""positive"", ""id"": ""72970fc1-f5b9-4e7b-bfb0-8356935a6274"", ""path"": ""/d"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Steering"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": """", ""id"": ""3d3dbb25-9147-4e77-ae9d-04d1c01d2666"", ""path"": ""/tilt/x"", ""interactions"": """", ""processors"": ""Clamp(min=-1,max=1)"", ""groups"": ""TouchScreen"", ""action"": ""Steering"", ""isComposite"": false, ""isPartOfComposite"": false } ] } ], ""controlSchemes"": [ { ""name"": ""Gamepad"", ""bindingGroup"": ""Gamepad"", ""devices"": [ { ""devicePath"": """", ""isOptional"": false, ""isOR"": false } ] }, { ""name"": ""Keyboard"", ""bindingGroup"": ""Keyboard"", ""devices"": [ { ""devicePath"": """", ""isOptional"": false, ""isOR"": false } ] }, { ""name"": ""TouchScreen"", ""bindingGroup"": ""TouchScreen"", ""devices"": [ { ""devicePath"": """", ""isOptional"": false, ""isOR"": false } ] } ] }"); // BoatControls m_BoatControls = asset.GetActionMap("BoatControls"); m_BoatControls_Trottle = m_BoatControls.GetAction("Trottle"); m_BoatControls_Steering = m_BoatControls.GetAction("Steering"); } ~InputControls() { 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(); } // BoatControls private readonly InputActionMap m_BoatControls; private IBoatControlsActions m_BoatControlsActionsCallbackInterface; private readonly InputAction m_BoatControls_Trottle; private readonly InputAction m_BoatControls_Steering; public struct BoatControlsActions { private InputControls m_Wrapper; public BoatControlsActions(InputControls wrapper) { m_Wrapper = wrapper; } public InputAction @Trottle => m_Wrapper.m_BoatControls_Trottle; public InputAction @Steering => m_Wrapper.m_BoatControls_Steering; public InputActionMap Get() { return m_Wrapper.m_BoatControls; } public void Enable() { Get().Enable(); } public void Disable() { Get().Disable(); } public bool enabled => Get().enabled; public static implicit operator InputActionMap(BoatControlsActions set) { return set.Get(); } public void SetCallbacks(IBoatControlsActions instance) { if (m_Wrapper.m_BoatControlsActionsCallbackInterface != null) { Trottle.started -= m_Wrapper.m_BoatControlsActionsCallbackInterface.OnTrottle; Trottle.performed -= m_Wrapper.m_BoatControlsActionsCallbackInterface.OnTrottle; Trottle.canceled -= m_Wrapper.m_BoatControlsActionsCallbackInterface.OnTrottle; Steering.started -= m_Wrapper.m_BoatControlsActionsCallbackInterface.OnSteering; Steering.performed -= m_Wrapper.m_BoatControlsActionsCallbackInterface.OnSteering; Steering.canceled -= m_Wrapper.m_BoatControlsActionsCallbackInterface.OnSteering; } m_Wrapper.m_BoatControlsActionsCallbackInterface = instance; if (instance != null) { Trottle.started += instance.OnTrottle; Trottle.performed += instance.OnTrottle; Trottle.canceled += instance.OnTrottle; Steering.started += instance.OnSteering; Steering.performed += instance.OnSteering; Steering.canceled += instance.OnSteering; } } } public BoatControlsActions @BoatControls => new BoatControlsActions(this); private int m_GamepadSchemeIndex = -1; public InputControlScheme GamepadScheme { get { if (m_GamepadSchemeIndex == -1) m_GamepadSchemeIndex = asset.GetControlSchemeIndex("Gamepad"); return asset.controlSchemes[m_GamepadSchemeIndex]; } } private int m_KeyboardSchemeIndex = -1; public InputControlScheme KeyboardScheme { get { if (m_KeyboardSchemeIndex == -1) m_KeyboardSchemeIndex = asset.GetControlSchemeIndex("Keyboard"); return asset.controlSchemes[m_KeyboardSchemeIndex]; } } private int m_TouchScreenSchemeIndex = -1; public InputControlScheme TouchScreenScheme { get { if (m_TouchScreenSchemeIndex == -1) m_TouchScreenSchemeIndex = asset.GetControlSchemeIndex("TouchScreen"); return asset.controlSchemes[m_TouchScreenSchemeIndex]; } } public interface IBoatControlsActions { void OnTrottle(InputAction.CallbackContext context); void OnSteering(InputAction.CallbackContext context); } }