//------------------------------------------------------------------------------
//
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
// version 1.6.1
// from Assets/Resources/SpaceRaceInput.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 @SpaceRaceInput: IInputActionCollection2, IDisposable
{
public InputActionAsset asset { get; }
public @SpaceRaceInput()
{
asset = InputActionAsset.FromJson(@"{
""name"": ""SpaceRaceInput"",
""maps"": [
{
""name"": ""ship"",
""id"": ""f52df5ad-4b20-4a0e-a4c8-bbf76c26b2c5"",
""actions"": [
{
""name"": ""accelerate"",
""type"": ""Value"",
""id"": ""3d5d2223-bd99-4486-a95d-cefe220e0257"",
""expectedControlType"": ""Axis"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": true
},
{
""name"": ""decelerate"",
""type"": ""Value"",
""id"": ""a27ee77d-59bd-4935-9a7b-961c2da0faf7"",
""expectedControlType"": ""Axis"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": true
},
{
""name"": ""strafe"",
""type"": ""Value"",
""id"": ""d8d4baa2-2812-45af-99f6-eab49bef6b61"",
""expectedControlType"": ""Vector2"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": true
},
{
""name"": ""look"",
""type"": ""Value"",
""id"": ""f705d9c6-7be0-40e0-95ba-990e6892d4dc"",
""expectedControlType"": ""Vector2"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": true
},
{
""name"": ""respawn"",
""type"": ""Button"",
""id"": ""2ced6ae8-aba2-4cd7-882e-6e6473308812"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""quit"",
""type"": ""Button"",
""id"": ""cea65125-c42e-40e9-bc97-966522e16691"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""powerUnit1"",
""type"": ""Button"",
""id"": ""7871c83b-4bda-4ee4-8128-ed5cd975ff95"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""powerUnit2"",
""type"": ""Button"",
""id"": ""e82aecf6-6941-44ee-b67e-fc4e55837abe"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""powerUnit3"",
""type"": ""Button"",
""id"": ""09c2221d-dc0e-46d0-9bdf-8e66b25b0e83"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""powerUnit4"",
""type"": ""Button"",
""id"": ""49bf2fe6-f03b-4dec-9dd9-e571a9ae3e90"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
}
],
""bindings"": [
{
""name"": """",
""id"": ""5e57f603-6e0e-4288-a67e-57c8a8068092"",
""path"": ""/leftButton"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""accelerate"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""f1ab715c-3909-449b-a5b9-0abc49bf8008"",
""path"": ""/rightTrigger"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""accelerate"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""43eea80c-a658-4eee-b6be-2f0124f2785d"",
""path"": ""/rightButton"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""decelerate"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""72aff4e4-d43a-4865-8ce5-42a26fb8270d"",
""path"": ""/leftTrigger"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""decelerate"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""d8bfc5bc-3673-4825-874c-c42f24765ce6"",
""path"": ""/space"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""respawn"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""d60de7d6-2aee-4d11-8378-8f175ea100a0"",
""path"": ""/leftShoulder"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""respawn"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""f04d169d-e864-4573-8b6f-051a0b3aedf5"",
""path"": ""/rightShoulder"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""respawn"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""ff02b06d-2805-46a1-9834-1d3be43bcea3"",
""path"": ""/f10"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""quit"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""6eca2679-7a64-4e8e-ade3-9ad4d7eafa82"",
""path"": ""/leftStick"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""strafe"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": ""WSAD"",
""id"": ""8a7788e1-720b-46ee-8253-ffba334daff6"",
""path"": ""2DVector"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""strafe"",
""isComposite"": true,
""isPartOfComposite"": false
},
{
""name"": ""up"",
""id"": ""6c646c3c-8579-43a9-95c2-06a56a54d226"",
""path"": ""/w"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""strafe"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""down"",
""id"": ""9e73f516-8345-4aea-9c07-04081574d1b9"",
""path"": ""/s"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""strafe"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""left"",
""id"": ""923dbff2-8bd5-42e9-814d-63726354fca6"",
""path"": ""/a"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""strafe"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""right"",
""id"": ""ae3937ef-d1dc-4556-a171-042fe9bd989f"",
""path"": ""/d"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""strafe"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""Arrows"",
""id"": ""71f8d215-e03a-44a6-ac20-ee132c3f202f"",
""path"": ""2DVector"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""strafe"",
""isComposite"": true,
""isPartOfComposite"": false
},
{
""name"": ""up"",
""id"": ""4f9ff5b2-2e55-4180-9546-6f3c3a334e13"",
""path"": ""/upArrow"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""strafe"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""down"",
""id"": ""1f317310-50fe-4c74-8380-0f94b4699fce"",
""path"": ""/downArrow"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""strafe"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""left"",
""id"": ""bb65e099-37da-4d59-b52d-39a117595f71"",
""path"": ""/leftArrow"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""strafe"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""right"",
""id"": ""fedaa785-c164-459b-8743-09171e6c531d"",
""path"": ""/rightArrow"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""strafe"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": """",
""id"": ""fcff1aee-823d-4930-b94b-265846f4dc30"",
""path"": ""/delta"",
""interactions"": """",
""processors"": ""ScaleVector2(x=0.05,y=0.05)"",
""groups"": """",
""action"": ""look"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""55976656-0c45-48bc-8c60-bdd71583f463"",
""path"": ""/rightStick"",
""interactions"": """",
""processors"": ""ScaleVector2"",
""groups"": """",
""action"": ""look"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""448824b6-c8b3-47ec-b7f7-0123f90cf5f6"",
""path"": ""/1"",
""interactions"": ""Press"",
""processors"": """",
""groups"": """",
""action"": ""powerUnit1"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""6cb625e2-60f3-49d5-9d12-8265a4aab0a4"",
""path"": ""/buttonSouth"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""powerUnit1"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""7bde4731-2ad0-45f2-9fcf-b8a20a6ee7ac"",
""path"": ""/buttonEast"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""powerUnit2"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""18e2e44e-8735-45ce-aad2-b75c212fc4dc"",
""path"": ""/2"",
""interactions"": ""Press"",
""processors"": """",
""groups"": """",
""action"": ""powerUnit2"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""46351ee7-55d7-428d-9778-6ffd51bc663c"",
""path"": ""/3"",
""interactions"": ""Press"",
""processors"": """",
""groups"": """",
""action"": ""powerUnit3"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""e36dc262-5e19-467b-9153-98f8795b3752"",
""path"": ""/4"",
""interactions"": ""Press"",
""processors"": """",
""groups"": """",
""action"": ""powerUnit4"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""b3126289-9c10-4247-9cee-bf97a20f429b"",
""path"": ""/buttonWest"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""powerUnit3"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""c87398b5-3170-4be8-80b3-b6304e61bba4"",
""path"": ""/buttonNorth"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""powerUnit4"",
""isComposite"": false,
""isPartOfComposite"": false
}
]
},
{
""name"": ""menu"",
""id"": ""88ca6226-1e9b-4abe-b02e-7b1304ef28ae"",
""actions"": [
{
""name"": ""ToggleMenu"",
""type"": ""Button"",
""id"": ""cee6d41d-d488-4548-b2d6-11e16bb6b116"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
}
],
""bindings"": [
{
""name"": """",
""id"": ""264c9b3e-9257-4ea7-ad15-c2469ae762f2"",
""path"": ""/start"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""ToggleMenu"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""1a12ee48-3233-43b7-88a3-175016b24098"",
""path"": ""/escape"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""ToggleMenu"",
""isComposite"": false,
""isPartOfComposite"": false
}
]
}
],
""controlSchemes"": []
}");
// ship
m_ship = asset.FindActionMap("ship", throwIfNotFound: true);
m_ship_accelerate = m_ship.FindAction("accelerate", throwIfNotFound: true);
m_ship_decelerate = m_ship.FindAction("decelerate", throwIfNotFound: true);
m_ship_strafe = m_ship.FindAction("strafe", throwIfNotFound: true);
m_ship_look = m_ship.FindAction("look", throwIfNotFound: true);
m_ship_respawn = m_ship.FindAction("respawn", throwIfNotFound: true);
m_ship_quit = m_ship.FindAction("quit", throwIfNotFound: true);
m_ship_powerUnit1 = m_ship.FindAction("powerUnit1", throwIfNotFound: true);
m_ship_powerUnit2 = m_ship.FindAction("powerUnit2", throwIfNotFound: true);
m_ship_powerUnit3 = m_ship.FindAction("powerUnit3", throwIfNotFound: true);
m_ship_powerUnit4 = m_ship.FindAction("powerUnit4", throwIfNotFound: true);
// menu
m_menu = asset.FindActionMap("menu", throwIfNotFound: true);
m_menu_ToggleMenu = m_menu.FindAction("ToggleMenu", 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);
}
// ship
private readonly InputActionMap m_ship;
private List m_ShipActionsCallbackInterfaces = new List();
private readonly InputAction m_ship_accelerate;
private readonly InputAction m_ship_decelerate;
private readonly InputAction m_ship_strafe;
private readonly InputAction m_ship_look;
private readonly InputAction m_ship_respawn;
private readonly InputAction m_ship_quit;
private readonly InputAction m_ship_powerUnit1;
private readonly InputAction m_ship_powerUnit2;
private readonly InputAction m_ship_powerUnit3;
private readonly InputAction m_ship_powerUnit4;
public struct ShipActions
{
private @SpaceRaceInput m_Wrapper;
public ShipActions(@SpaceRaceInput wrapper) { m_Wrapper = wrapper; }
public InputAction @accelerate => m_Wrapper.m_ship_accelerate;
public InputAction @decelerate => m_Wrapper.m_ship_decelerate;
public InputAction @strafe => m_Wrapper.m_ship_strafe;
public InputAction @look => m_Wrapper.m_ship_look;
public InputAction @respawn => m_Wrapper.m_ship_respawn;
public InputAction @quit => m_Wrapper.m_ship_quit;
public InputAction @powerUnit1 => m_Wrapper.m_ship_powerUnit1;
public InputAction @powerUnit2 => m_Wrapper.m_ship_powerUnit2;
public InputAction @powerUnit3 => m_Wrapper.m_ship_powerUnit3;
public InputAction @powerUnit4 => m_Wrapper.m_ship_powerUnit4;
public InputActionMap Get() { return m_Wrapper.m_ship; }
public void Enable() { Get().Enable(); }
public void Disable() { Get().Disable(); }
public bool enabled => Get().enabled;
public static implicit operator InputActionMap(ShipActions set) { return set.Get(); }
public void AddCallbacks(IShipActions instance)
{
if (instance == null || m_Wrapper.m_ShipActionsCallbackInterfaces.Contains(instance)) return;
m_Wrapper.m_ShipActionsCallbackInterfaces.Add(instance);
@accelerate.started += instance.OnAccelerate;
@accelerate.performed += instance.OnAccelerate;
@accelerate.canceled += instance.OnAccelerate;
@decelerate.started += instance.OnDecelerate;
@decelerate.performed += instance.OnDecelerate;
@decelerate.canceled += instance.OnDecelerate;
@strafe.started += instance.OnStrafe;
@strafe.performed += instance.OnStrafe;
@strafe.canceled += instance.OnStrafe;
@look.started += instance.OnLook;
@look.performed += instance.OnLook;
@look.canceled += instance.OnLook;
@respawn.started += instance.OnRespawn;
@respawn.performed += instance.OnRespawn;
@respawn.canceled += instance.OnRespawn;
@quit.started += instance.OnQuit;
@quit.performed += instance.OnQuit;
@quit.canceled += instance.OnQuit;
@powerUnit1.started += instance.OnPowerUnit1;
@powerUnit1.performed += instance.OnPowerUnit1;
@powerUnit1.canceled += instance.OnPowerUnit1;
@powerUnit2.started += instance.OnPowerUnit2;
@powerUnit2.performed += instance.OnPowerUnit2;
@powerUnit2.canceled += instance.OnPowerUnit2;
@powerUnit3.started += instance.OnPowerUnit3;
@powerUnit3.performed += instance.OnPowerUnit3;
@powerUnit3.canceled += instance.OnPowerUnit3;
@powerUnit4.started += instance.OnPowerUnit4;
@powerUnit4.performed += instance.OnPowerUnit4;
@powerUnit4.canceled += instance.OnPowerUnit4;
}
private void UnregisterCallbacks(IShipActions instance)
{
@accelerate.started -= instance.OnAccelerate;
@accelerate.performed -= instance.OnAccelerate;
@accelerate.canceled -= instance.OnAccelerate;
@decelerate.started -= instance.OnDecelerate;
@decelerate.performed -= instance.OnDecelerate;
@decelerate.canceled -= instance.OnDecelerate;
@strafe.started -= instance.OnStrafe;
@strafe.performed -= instance.OnStrafe;
@strafe.canceled -= instance.OnStrafe;
@look.started -= instance.OnLook;
@look.performed -= instance.OnLook;
@look.canceled -= instance.OnLook;
@respawn.started -= instance.OnRespawn;
@respawn.performed -= instance.OnRespawn;
@respawn.canceled -= instance.OnRespawn;
@quit.started -= instance.OnQuit;
@quit.performed -= instance.OnQuit;
@quit.canceled -= instance.OnQuit;
@powerUnit1.started -= instance.OnPowerUnit1;
@powerUnit1.performed -= instance.OnPowerUnit1;
@powerUnit1.canceled -= instance.OnPowerUnit1;
@powerUnit2.started -= instance.OnPowerUnit2;
@powerUnit2.performed -= instance.OnPowerUnit2;
@powerUnit2.canceled -= instance.OnPowerUnit2;
@powerUnit3.started -= instance.OnPowerUnit3;
@powerUnit3.performed -= instance.OnPowerUnit3;
@powerUnit3.canceled -= instance.OnPowerUnit3;
@powerUnit4.started -= instance.OnPowerUnit4;
@powerUnit4.performed -= instance.OnPowerUnit4;
@powerUnit4.canceled -= instance.OnPowerUnit4;
}
public void RemoveCallbacks(IShipActions instance)
{
if (m_Wrapper.m_ShipActionsCallbackInterfaces.Remove(instance))
UnregisterCallbacks(instance);
}
public void SetCallbacks(IShipActions instance)
{
foreach (var item in m_Wrapper.m_ShipActionsCallbackInterfaces)
UnregisterCallbacks(item);
m_Wrapper.m_ShipActionsCallbackInterfaces.Clear();
AddCallbacks(instance);
}
}
public ShipActions @ship => new ShipActions(this);
// menu
private readonly InputActionMap m_menu;
private List m_MenuActionsCallbackInterfaces = new List();
private readonly InputAction m_menu_ToggleMenu;
public struct MenuActions
{
private @SpaceRaceInput m_Wrapper;
public MenuActions(@SpaceRaceInput wrapper) { m_Wrapper = wrapper; }
public InputAction @ToggleMenu => m_Wrapper.m_menu_ToggleMenu;
public InputActionMap Get() { return m_Wrapper.m_menu; }
public void Enable() { Get().Enable(); }
public void Disable() { Get().Disable(); }
public bool enabled => Get().enabled;
public static implicit operator InputActionMap(MenuActions set) { return set.Get(); }
public void AddCallbacks(IMenuActions instance)
{
if (instance == null || m_Wrapper.m_MenuActionsCallbackInterfaces.Contains(instance)) return;
m_Wrapper.m_MenuActionsCallbackInterfaces.Add(instance);
@ToggleMenu.started += instance.OnToggleMenu;
@ToggleMenu.performed += instance.OnToggleMenu;
@ToggleMenu.canceled += instance.OnToggleMenu;
}
private void UnregisterCallbacks(IMenuActions instance)
{
@ToggleMenu.started -= instance.OnToggleMenu;
@ToggleMenu.performed -= instance.OnToggleMenu;
@ToggleMenu.canceled -= instance.OnToggleMenu;
}
public void RemoveCallbacks(IMenuActions instance)
{
if (m_Wrapper.m_MenuActionsCallbackInterfaces.Remove(instance))
UnregisterCallbacks(instance);
}
public void SetCallbacks(IMenuActions instance)
{
foreach (var item in m_Wrapper.m_MenuActionsCallbackInterfaces)
UnregisterCallbacks(item);
m_Wrapper.m_MenuActionsCallbackInterfaces.Clear();
AddCallbacks(instance);
}
}
public MenuActions @menu => new MenuActions(this);
public interface IShipActions
{
void OnAccelerate(InputAction.CallbackContext context);
void OnDecelerate(InputAction.CallbackContext context);
void OnStrafe(InputAction.CallbackContext context);
void OnLook(InputAction.CallbackContext context);
void OnRespawn(InputAction.CallbackContext context);
void OnQuit(InputAction.CallbackContext context);
void OnPowerUnit1(InputAction.CallbackContext context);
void OnPowerUnit2(InputAction.CallbackContext context);
void OnPowerUnit3(InputAction.CallbackContext context);
void OnPowerUnit4(InputAction.CallbackContext context);
}
public interface IMenuActions
{
void OnToggleMenu(InputAction.CallbackContext context);
}
}