388 lines
		
	
	
		
			15 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			388 lines
		
	
	
		
			15 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| //------------------------------------------------------------------------------
 | |
| // <auto-generated>
 | |
| //     This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
 | |
| //     version 1.1.0
 | |
| //     from Assets/VR_free/VRFreeControls.inputactions
 | |
| //
 | |
| //     Changes to this file may cause incorrect behavior and will be lost if
 | |
| //     the code is regenerated.
 | |
| // </auto-generated>
 | |
| //------------------------------------------------------------------------------
 | |
| 
 | |
| using System;
 | |
| using System.Collections;
 | |
| using System.Collections.Generic;
 | |
| using UnityEngine.InputSystem;
 | |
| using UnityEngine.InputSystem.Utilities;
 | |
| 
 | |
| public partial class @VRFreeControls : IInputActionCollection2, IDisposable
 | |
| {
 | |
|     public InputActionAsset asset { get; }
 | |
|     public @VRFreeControls()
 | |
|     {
 | |
|         asset = InputActionAsset.FromJson(@"{
 | |
|     ""name"": ""VRFreeControls"",
 | |
|     ""maps"": [
 | |
|         {
 | |
|             ""name"": ""Movement"",
 | |
|             ""id"": ""5aa1bea5-8e51-429b-a37a-80352b276bf7"",
 | |
|             ""actions"": [
 | |
|                 {
 | |
|                     ""name"": ""HorizontalMovement"",
 | |
|                     ""type"": ""PassThrough"",
 | |
|                     ""id"": ""f97735dd-1abd-480e-9f67-266934f7afa1"",
 | |
|                     ""expectedControlType"": ""Vector2"",
 | |
|                     ""processors"": """",
 | |
|                     ""interactions"": """"
 | |
|                 },
 | |
|                 {
 | |
|                     ""name"": ""MouseX"",
 | |
|                     ""type"": ""PassThrough"",
 | |
|                     ""id"": ""d647215f-5dc5-4a03-b94a-b70655336a37"",
 | |
|                     ""expectedControlType"": ""Axis"",
 | |
|                     ""processors"": """",
 | |
|                     ""interactions"": """"
 | |
|                 },
 | |
|                 {
 | |
|                     ""name"": ""MouseY"",
 | |
|                     ""type"": ""PassThrough"",
 | |
|                     ""id"": ""632dcd46-7136-4125-995e-a6b211aa4f75"",
 | |
|                     ""expectedControlType"": ""Axis"",
 | |
|                     ""processors"": """",
 | |
|                     ""interactions"": """"
 | |
|                 }
 | |
|             ],
 | |
|             ""bindings"": [
 | |
|                 {
 | |
|                     ""name"": ""WASD"",
 | |
|                     ""id"": ""92e323d8-060f-4656-95df-ddbbf9879129"",
 | |
|                     ""path"": ""2DVector"",
 | |
|                     ""interactions"": """",
 | |
|                     ""processors"": """",
 | |
|                     ""groups"": """",
 | |
|                     ""action"": ""HorizontalMovement"",
 | |
|                     ""isComposite"": true,
 | |
|                     ""isPartOfComposite"": false
 | |
|                 },
 | |
|                 {
 | |
|                     ""name"": ""up"",
 | |
|                     ""id"": ""c6320587-dcd6-4262-ac0a-e3d126a31cc0"",
 | |
|                     ""path"": ""<Keyboard>/w"",
 | |
|                     ""interactions"": """",
 | |
|                     ""processors"": """",
 | |
|                     ""groups"": """",
 | |
|                     ""action"": ""HorizontalMovement"",
 | |
|                     ""isComposite"": false,
 | |
|                     ""isPartOfComposite"": true
 | |
|                 },
 | |
|                 {
 | |
|                     ""name"": ""down"",
 | |
|                     ""id"": ""a48c1817-3be8-490a-97d2-28ed1fc2757a"",
 | |
|                     ""path"": ""<Keyboard>/s"",
 | |
|                     ""interactions"": """",
 | |
|                     ""processors"": """",
 | |
|                     ""groups"": """",
 | |
|                     ""action"": ""HorizontalMovement"",
 | |
|                     ""isComposite"": false,
 | |
|                     ""isPartOfComposite"": true
 | |
|                 },
 | |
|                 {
 | |
|                     ""name"": ""left"",
 | |
|                     ""id"": ""610938fb-fe5b-4aa0-a868-509db8bbc6fc"",
 | |
|                     ""path"": ""<Keyboard>/a"",
 | |
|                     ""interactions"": """",
 | |
|                     ""processors"": """",
 | |
|                     ""groups"": """",
 | |
|                     ""action"": ""HorizontalMovement"",
 | |
|                     ""isComposite"": false,
 | |
|                     ""isPartOfComposite"": true
 | |
|                 },
 | |
|                 {
 | |
|                     ""name"": ""right"",
 | |
|                     ""id"": ""c72c3a7e-e238-48d7-a57f-076f73edd9f8"",
 | |
|                     ""path"": ""<Keyboard>/d"",
 | |
|                     ""interactions"": """",
 | |
|                     ""processors"": """",
 | |
|                     ""groups"": """",
 | |
|                     ""action"": ""HorizontalMovement"",
 | |
|                     ""isComposite"": false,
 | |
|                     ""isPartOfComposite"": true
 | |
|                 },
 | |
|                 {
 | |
|                     ""name"": """",
 | |
|                     ""id"": ""713d7d47-83a3-477e-8a77-fb21750b137d"",
 | |
|                     ""path"": ""<Mouse>/delta/x"",
 | |
|                     ""interactions"": """",
 | |
|                     ""processors"": """",
 | |
|                     ""groups"": """",
 | |
|                     ""action"": ""MouseX"",
 | |
|                     ""isComposite"": false,
 | |
|                     ""isPartOfComposite"": false
 | |
|                 },
 | |
|                 {
 | |
|                     ""name"": """",
 | |
|                     ""id"": ""bb76240c-8915-44dd-b74a-9b1b9b455c0b"",
 | |
|                     ""path"": ""<Mouse>/delta/y"",
 | |
|                     ""interactions"": """",
 | |
|                     ""processors"": """",
 | |
|                     ""groups"": """",
 | |
|                     ""action"": ""MouseY"",
 | |
|                     ""isComposite"": false,
 | |
|                     ""isPartOfComposite"": false
 | |
|                 }
 | |
|             ]
 | |
|         },
 | |
|         {
 | |
|             ""name"": ""Interactions"",
 | |
|             ""id"": ""41bdddec-7008-41f1-96e1-e5c57346ccca"",
 | |
|             ""actions"": [
 | |
|                 {
 | |
|                     ""name"": ""Action"",
 | |
|                     ""type"": ""Button"",
 | |
|                     ""id"": ""8eec87ad-14a3-4734-9064-6ed2922c0680"",
 | |
|                     ""expectedControlType"": ""Button"",
 | |
|                     ""processors"": """",
 | |
|                     ""interactions"": """"
 | |
|                 }
 | |
|             ],
 | |
|             ""bindings"": [
 | |
|                 {
 | |
|                     ""name"": """",
 | |
|                     ""id"": ""443d23b1-0e5d-4e40-9b21-9e536cf36b33"",
 | |
|                     ""path"": ""<Mouse>/leftButton"",
 | |
|                     ""interactions"": """",
 | |
|                     ""processors"": """",
 | |
|                     ""groups"": """",
 | |
|                     ""action"": ""Action"",
 | |
|                     ""isComposite"": false,
 | |
|                     ""isPartOfComposite"": false
 | |
|                 }
 | |
|             ]
 | |
|         },
 | |
|         {
 | |
|             ""name"": ""Menu"",
 | |
|             ""id"": ""59016d8e-ce15-4697-8419-195041bc8960"",
 | |
|             ""actions"": [
 | |
|                 {
 | |
|                     ""name"": ""Menu"",
 | |
|                     ""type"": ""Button"",
 | |
|                     ""id"": ""59dc31df-24e0-4f50-a92c-7801f502472b"",
 | |
|                     ""expectedControlType"": ""Button"",
 | |
|                     ""processors"": """",
 | |
|                     ""interactions"": """"
 | |
|                 }
 | |
|             ],
 | |
|             ""bindings"": [
 | |
|                 {
 | |
|                     ""name"": """",
 | |
|                     ""id"": ""27735871-8fc4-41e1-ac79-ba61b52fc201"",
 | |
|                     ""path"": ""<Keyboard>/escape"",
 | |
|                     ""interactions"": """",
 | |
|                     ""processors"": """",
 | |
|                     ""groups"": """",
 | |
|                     ""action"": ""Menu"",
 | |
|                     ""isComposite"": false,
 | |
|                     ""isPartOfComposite"": false
 | |
|                 }
 | |
|             ]
 | |
|         }
 | |
|     ],
 | |
|     ""controlSchemes"": []
 | |
| }");
 | |
|         // Movement
 | |
|         m_Movement = asset.FindActionMap("Movement", throwIfNotFound: true);
 | |
|         m_Movement_HorizontalMovement = m_Movement.FindAction("HorizontalMovement", throwIfNotFound: true);
 | |
|         m_Movement_MouseX = m_Movement.FindAction("MouseX", throwIfNotFound: true);
 | |
|         m_Movement_MouseY = m_Movement.FindAction("MouseY", throwIfNotFound: true);
 | |
|         // Interactions
 | |
|         m_Interactions = asset.FindActionMap("Interactions", throwIfNotFound: true);
 | |
|         m_Interactions_Action = m_Interactions.FindAction("Action", throwIfNotFound: true);
 | |
|         // Menu
 | |
|         m_Menu = asset.FindActionMap("Menu", throwIfNotFound: true);
 | |
|         m_Menu_Menu = m_Menu.FindAction("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();
 | |
|     }
 | |
|     public IEnumerable<InputBinding> 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);
 | |
|     }
 | |
| 
 | |
|     // Movement
 | |
|     private readonly InputActionMap m_Movement;
 | |
|     private IMovementActions m_MovementActionsCallbackInterface;
 | |
|     private readonly InputAction m_Movement_HorizontalMovement;
 | |
|     private readonly InputAction m_Movement_MouseX;
 | |
|     private readonly InputAction m_Movement_MouseY;
 | |
|     public struct MovementActions
 | |
|     {
 | |
|         private @VRFreeControls m_Wrapper;
 | |
|         public MovementActions(@VRFreeControls wrapper) { m_Wrapper = wrapper; }
 | |
|         public InputAction @HorizontalMovement => m_Wrapper.m_Movement_HorizontalMovement;
 | |
|         public InputAction @MouseX => m_Wrapper.m_Movement_MouseX;
 | |
|         public InputAction @MouseY => m_Wrapper.m_Movement_MouseY;
 | |
|         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)
 | |
|             {
 | |
|                 @HorizontalMovement.started -= m_Wrapper.m_MovementActionsCallbackInterface.OnHorizontalMovement;
 | |
|                 @HorizontalMovement.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnHorizontalMovement;
 | |
|                 @HorizontalMovement.canceled -= m_Wrapper.m_MovementActionsCallbackInterface.OnHorizontalMovement;
 | |
|                 @MouseX.started -= m_Wrapper.m_MovementActionsCallbackInterface.OnMouseX;
 | |
|                 @MouseX.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnMouseX;
 | |
|                 @MouseX.canceled -= m_Wrapper.m_MovementActionsCallbackInterface.OnMouseX;
 | |
|                 @MouseY.started -= m_Wrapper.m_MovementActionsCallbackInterface.OnMouseY;
 | |
|                 @MouseY.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnMouseY;
 | |
|                 @MouseY.canceled -= m_Wrapper.m_MovementActionsCallbackInterface.OnMouseY;
 | |
|             }
 | |
|             m_Wrapper.m_MovementActionsCallbackInterface = instance;
 | |
|             if (instance != null)
 | |
|             {
 | |
|                 @HorizontalMovement.started += instance.OnHorizontalMovement;
 | |
|                 @HorizontalMovement.performed += instance.OnHorizontalMovement;
 | |
|                 @HorizontalMovement.canceled += instance.OnHorizontalMovement;
 | |
|                 @MouseX.started += instance.OnMouseX;
 | |
|                 @MouseX.performed += instance.OnMouseX;
 | |
|                 @MouseX.canceled += instance.OnMouseX;
 | |
|                 @MouseY.started += instance.OnMouseY;
 | |
|                 @MouseY.performed += instance.OnMouseY;
 | |
|                 @MouseY.canceled += instance.OnMouseY;
 | |
|             }
 | |
|         }
 | |
|     }
 | |
|     public MovementActions @Movement => new MovementActions(this);
 | |
| 
 | |
|     // Interactions
 | |
|     private readonly InputActionMap m_Interactions;
 | |
|     private IInteractionsActions m_InteractionsActionsCallbackInterface;
 | |
|     private readonly InputAction m_Interactions_Action;
 | |
|     public struct InteractionsActions
 | |
|     {
 | |
|         private @VRFreeControls m_Wrapper;
 | |
|         public InteractionsActions(@VRFreeControls wrapper) { m_Wrapper = wrapper; }
 | |
|         public InputAction @Action => m_Wrapper.m_Interactions_Action;
 | |
|         public InputActionMap Get() { return m_Wrapper.m_Interactions; }
 | |
|         public void Enable() { Get().Enable(); }
 | |
|         public void Disable() { Get().Disable(); }
 | |
|         public bool enabled => Get().enabled;
 | |
|         public static implicit operator InputActionMap(InteractionsActions set) { return set.Get(); }
 | |
|         public void SetCallbacks(IInteractionsActions instance)
 | |
|         {
 | |
|             if (m_Wrapper.m_InteractionsActionsCallbackInterface != null)
 | |
|             {
 | |
|                 @Action.started -= m_Wrapper.m_InteractionsActionsCallbackInterface.OnAction;
 | |
|                 @Action.performed -= m_Wrapper.m_InteractionsActionsCallbackInterface.OnAction;
 | |
|                 @Action.canceled -= m_Wrapper.m_InteractionsActionsCallbackInterface.OnAction;
 | |
|             }
 | |
|             m_Wrapper.m_InteractionsActionsCallbackInterface = instance;
 | |
|             if (instance != null)
 | |
|             {
 | |
|                 @Action.started += instance.OnAction;
 | |
|                 @Action.performed += instance.OnAction;
 | |
|                 @Action.canceled += instance.OnAction;
 | |
|             }
 | |
|         }
 | |
|     }
 | |
|     public InteractionsActions @Interactions => new InteractionsActions(this);
 | |
| 
 | |
|     // Menu
 | |
|     private readonly InputActionMap m_Menu;
 | |
|     private IMenuActions m_MenuActionsCallbackInterface;
 | |
|     private readonly InputAction m_Menu_Menu;
 | |
|     public struct MenuActions
 | |
|     {
 | |
|         private @VRFreeControls m_Wrapper;
 | |
|         public MenuActions(@VRFreeControls wrapper) { m_Wrapper = wrapper; }
 | |
|         public InputAction @Menu => m_Wrapper.m_Menu_Menu;
 | |
|         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 SetCallbacks(IMenuActions instance)
 | |
|         {
 | |
|             if (m_Wrapper.m_MenuActionsCallbackInterface != null)
 | |
|             {
 | |
|                 @Menu.started -= m_Wrapper.m_MenuActionsCallbackInterface.OnMenu;
 | |
|                 @Menu.performed -= m_Wrapper.m_MenuActionsCallbackInterface.OnMenu;
 | |
|                 @Menu.canceled -= m_Wrapper.m_MenuActionsCallbackInterface.OnMenu;
 | |
|             }
 | |
|             m_Wrapper.m_MenuActionsCallbackInterface = instance;
 | |
|             if (instance != null)
 | |
|             {
 | |
|                 @Menu.started += instance.OnMenu;
 | |
|                 @Menu.performed += instance.OnMenu;
 | |
|                 @Menu.canceled += instance.OnMenu;
 | |
|             }
 | |
|         }
 | |
|     }
 | |
|     public MenuActions @Menu => new MenuActions(this);
 | |
|     public interface IMovementActions
 | |
|     {
 | |
|         void OnHorizontalMovement(InputAction.CallbackContext context);
 | |
|         void OnMouseX(InputAction.CallbackContext context);
 | |
|         void OnMouseY(InputAction.CallbackContext context);
 | |
|     }
 | |
|     public interface IInteractionsActions
 | |
|     {
 | |
|         void OnAction(InputAction.CallbackContext context);
 | |
|     }
 | |
|     public interface IMenuActions
 | |
|     {
 | |
|         void OnMenu(InputAction.CallbackContext context);
 | |
|     }
 | |
| }
 |