//------------------------------------------------------------------------------ // // This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator // version 1.18.0 // from Assets/Project Files/Data/Input/Input Actions.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; namespace Watermelon { /// /// Provides programmatic access to , , and instances defined in asset "Assets/Project Files/Data/Input/Input Actions.inputactions". /// /// /// This class is source generated and any manual edits will be discarded if the associated asset is reimported or modified. /// /// /// /// using namespace UnityEngine; /// using UnityEngine.InputSystem; /// /// // Example of using an InputActionMap named "Player" from a UnityEngine.MonoBehaviour implementing callback interface. /// public class Example : MonoBehaviour, MyActions.IPlayerActions /// { /// private MyActions_Actions m_Actions; // Source code representation of asset. /// private MyActions_Actions.PlayerActions m_Player; // Source code representation of action map. /// /// void Awake() /// { /// m_Actions = new MyActions_Actions(); // Create asset object. /// m_Player = m_Actions.Player; // Extract action map object. /// m_Player.AddCallbacks(this); // Register callback interface IPlayerActions. /// } /// /// void OnDestroy() /// { /// m_Actions.Dispose(); // Destroy asset object. /// } /// /// void OnEnable() /// { /// m_Player.Enable(); // Enable all actions within map. /// } /// /// void OnDisable() /// { /// m_Player.Disable(); // Disable all actions within map. /// } /// /// #region Interface implementation of MyActions.IPlayerActions /// /// // Invoked when "Move" action is either started, performed or canceled. /// public void OnMove(InputAction.CallbackContext context) /// { /// Debug.Log($"OnMove: {context.ReadValue<Vector2>()}"); /// } /// /// // Invoked when "Attack" action is either started, performed or canceled. /// public void OnAttack(InputAction.CallbackContext context) /// { /// Debug.Log($"OnAttack: {context.ReadValue<float>()}"); /// } /// /// #endregion /// } /// /// public partial class @InputActions: IInputActionCollection2, IDisposable { /// /// Provides access to the underlying asset instance. /// public InputActionAsset asset { get; } /// /// Constructs a new instance. /// public @InputActions() { asset = InputActionAsset.FromJson(@"{ ""version"": 1, ""name"": ""Input Actions"", ""maps"": [ { ""name"": ""Player"", ""id"": ""4a8c10bc-9fc4-4df9-89c9-6a118ae941d3"", ""actions"": [ { ""name"": ""Move"", ""type"": ""Value"", ""id"": ""e6e7da8e-2be9-4a8b-956b-df379af0a01f"", ""expectedControlType"": ""Vector2"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": true }, { ""name"": ""Look"", ""type"": ""Value"", ""id"": ""7c684f61-51d5-42a8-8361-d767b837f571"", ""expectedControlType"": ""Vector2"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": true }, { ""name"": ""Attack"", ""type"": ""Button"", ""id"": ""fae0d0f4-d3c2-4024-bac8-614703135c4d"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Interact"", ""type"": ""Button"", ""id"": ""14dd1086-1366-42c7-b734-85bff3056778"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": ""Hold"", ""initialStateCheck"": false }, { ""name"": ""Crouch"", ""type"": ""Button"", ""id"": ""cd7df657-c033-472b-ac67-7a781e3b3aed"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Jump"", ""type"": ""Button"", ""id"": ""cdcecf60-2f6f-4aaa-b76b-f4b71efe9ca6"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Previous"", ""type"": ""Button"", ""id"": ""9f2e6d3a-2343-40d5-bc6e-6cb18ef262a7"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Next"", ""type"": ""Button"", ""id"": ""bfd56ae3-9fc3-413d-97ff-9cb52f117c0c"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Sprint"", ""type"": ""Button"", ""id"": ""667f85c2-0dd1-4d54-99f0-b88629c8cedb"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false } ], ""bindings"": [ { ""name"": """", ""id"": ""610386a0-ba0d-4429-9cef-c916b0463898"", ""path"": ""/leftStick"", ""interactions"": """", ""processors"": """", ""groups"": "";Gamepad"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": ""WASD"", ""id"": ""e87f6aa2-ee9e-4fc5-bee4-85651384da93"", ""path"": ""Dpad"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""up"", ""id"": ""fad3f5cc-d392-4446-a1a5-eb4af99658ae"", ""path"": ""/w"", ""interactions"": """", ""processors"": """", ""groups"": "";Keyboard&Mouse"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""up"", ""id"": ""68836c13-9861-4e5d-a4a8-7fd2eeb4e9a9"", ""path"": ""/upArrow"", ""interactions"": """", ""processors"": """", ""groups"": "";Keyboard&Mouse"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""6bafb219-e8e9-4663-8891-a1a256a0adec"", ""path"": ""/s"", ""interactions"": """", ""processors"": """", ""groups"": "";Keyboard&Mouse"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""987d9d96-ce67-4067-b48b-51b039def060"", ""path"": ""/downArrow"", ""interactions"": """", ""processors"": """", ""groups"": "";Keyboard&Mouse"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""83ac631e-1109-48fa-9350-3f74026b54ee"", ""path"": ""/a"", ""interactions"": """", ""processors"": """", ""groups"": "";Keyboard&Mouse"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""8ebbb79c-b9e1-4df1-96cf-fba6ab620d45"", ""path"": ""/leftArrow"", ""interactions"": """", ""processors"": """", ""groups"": "";Keyboard&Mouse"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""b019efe2-5295-4b63-b26b-a5dcd6c898d4"", ""path"": ""/d"", ""interactions"": """", ""processors"": """", ""groups"": "";Keyboard&Mouse"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""1d24f626-cb7b-42c1-a4b1-bc39d830f64f"", ""path"": ""/rightArrow"", ""interactions"": """", ""processors"": """", ""groups"": "";Keyboard&Mouse"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": """", ""id"": ""bdafeb18-5ced-4bb4-8109-57ac399e1661"", ""path"": ""/{Primary2DAxis}"", ""interactions"": """", ""processors"": """", ""groups"": ""XR"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""196016fb-0218-414d-bfc6-8782a4de0d8a"", ""path"": ""/stick"", ""interactions"": """", ""processors"": """", ""groups"": ""Joystick"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""22041398-e7a8-483f-9837-46a94e26fb4b"", ""path"": ""/rightStick"", ""interactions"": """", ""processors"": """", ""groups"": "";Gamepad"", ""action"": ""Look"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""b25a3200-07d9-4ed3-9c76-c758f1976b2e"", ""path"": ""/delta"", ""interactions"": """", ""processors"": """", ""groups"": "";Keyboard&Mouse;Touch"", ""action"": ""Look"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""f8070522-a5f3-4850-b40b-0fdab9ab2245"", ""path"": ""/{Hatswitch}"", ""interactions"": """", ""processors"": """", ""groups"": ""Joystick"", ""action"": ""Look"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""9660afa1-455f-4ea6-b8c5-836cc85c5674"", ""path"": ""/buttonWest"", ""interactions"": """", ""processors"": """", ""groups"": "";Gamepad"", ""action"": ""Attack"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""dfc7bf35-efda-4330-9b4f-fb02a05c893c"", ""path"": ""/leftButton"", ""interactions"": """", ""processors"": """", ""groups"": "";Keyboard&Mouse"", ""action"": ""Attack"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""87cebe07-0c0f-4754-8e9c-e1ea265a7840"", ""path"": ""/primaryTouch/tap"", ""interactions"": """", ""processors"": """", ""groups"": "";Touch"", ""action"": ""Attack"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""47484bf8-f4ac-49ff-880f-fd172017a1ab"", ""path"": ""/trigger"", ""interactions"": """", ""processors"": """", ""groups"": ""Joystick"", ""action"": ""Attack"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""fa9fee6e-d94b-48b2-b2da-cb581c21a863"", ""path"": ""/{PrimaryAction}"", ""interactions"": """", ""processors"": """", ""groups"": ""XR"", ""action"": ""Attack"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""e584187f-991c-4cca-afb4-15b42a4d4213"", ""path"": ""/enter"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard&Mouse"", ""action"": ""Attack"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""76c6e4b7-6c1a-4829-bc7c-084fe675a094"", ""path"": ""/2"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard&Mouse"", ""action"": ""Next"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""89e9b1eb-6753-4026-b027-d76c3fe44129"", ""path"": ""/dpad/right"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Next"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""f8848fd9-88bd-4706-b4b2-07b61310ded7"", ""path"": ""/leftShift"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard&Mouse"", ""action"": ""Sprint"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""fa70b0b2-2bc5-4e8c-8b8b-2761ab74a773"", ""path"": ""/leftStickPress"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Sprint"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""634bca48-bdfa-401b-adad-59118f51080a"", ""path"": ""/trigger"", ""interactions"": """", ""processors"": """", ""groups"": ""XR"", ""action"": ""Sprint"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""8ded0732-ba50-46dd-acc7-792ec34d2a5b"", ""path"": ""/space"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard&Mouse"", ""action"": ""Jump"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""9fe33381-fd65-4bd8-a1e4-8f2e2f7abd83"", ""path"": ""/buttonSouth"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Jump"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""9e19fb6c-17a4-4a24-8a96-2f5c53f4b04f"", ""path"": ""/secondaryButton"", ""interactions"": """", ""processors"": """", ""groups"": ""XR"", ""action"": ""Jump"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""a3131dbe-bf4c-4db8-9ed5-5c742fd6c414"", ""path"": ""/1"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard&Mouse"", ""action"": ""Previous"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""02b69420-47c9-4ad0-924c-42449cb9697a"", ""path"": ""/dpad/left"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Previous"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""7af4582d-06aa-47af-bec1-9b98f0a8cb9b"", ""path"": ""/e"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard&Mouse"", ""action"": ""Interact"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""b371d432-440d-4f13-b693-758491e87f7b"", ""path"": ""/buttonNorth"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Interact"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""21dac740-b9af-428c-9718-179407c149c6"", ""path"": ""/buttonEast"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Crouch"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""40247e97-72b5-4d6f-9144-29f866a82530"", ""path"": ""/c"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard&Mouse"", ""action"": ""Crouch"", ""isComposite"": false, ""isPartOfComposite"": false } ] }, { ""name"": ""UI"", ""id"": ""c0113f5d-cb4a-4688-ba42-1cfdbc738f89"", ""actions"": [ { ""name"": ""Navigate"", ""type"": ""PassThrough"", ""id"": ""fb79a61f-f8a3-4a66-aafc-05b3ce20896a"", ""expectedControlType"": ""Vector2"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Submit"", ""type"": ""Button"", ""id"": ""4a8b5b97-2923-453f-b2bf-325a8580fa48"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Cancel"", ""type"": ""Button"", ""id"": ""9f1ec6fa-19c6-49ee-916e-5b78d4903e60"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Point"", ""type"": ""PassThrough"", ""id"": ""b3aeaea2-fcf8-43f5-80c8-15f8ac3f3f86"", ""expectedControlType"": ""Vector2"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": true }, { ""name"": ""Click"", ""type"": ""PassThrough"", ""id"": ""6069a258-2cf4-4fe0-b877-6fdd903a2c51"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": true }, { ""name"": ""RightClick"", ""type"": ""PassThrough"", ""id"": ""f2be943f-e217-4cce-87a3-1fd579b82256"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""MiddleClick"", ""type"": ""PassThrough"", ""id"": ""58e96dc6-5945-467b-b622-088b162b4938"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""ScrollWheel"", ""type"": ""PassThrough"", ""id"": ""9be4eb5c-5756-41f2-ac98-3fcf72509b12"", ""expectedControlType"": ""Vector2"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""TrackedDevicePosition"", ""type"": ""PassThrough"", ""id"": ""ac568ae0-212a-41fd-a1b1-413a0108f8e3"", ""expectedControlType"": ""Vector3"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""TrackedDeviceOrientation"", ""type"": ""PassThrough"", ""id"": ""2491411f-f5ee-4d6c-84da-6b7fc80334dd"", ""expectedControlType"": ""Quaternion"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false } ], ""bindings"": [ { ""name"": ""Gamepad"", ""id"": ""de8f1a60-c1db-467d-ae2a-6ded83b0ef4b"", ""path"": ""2DVector"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Navigate"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""up"", ""id"": ""d5f702ea-f1b8-47ab-ac6b-d7ad5d90b53c"", ""path"": ""/leftStick/up"", ""interactions"": """", ""processors"": """", ""groups"": "";Gamepad"", ""action"": ""Navigate"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""up"", ""id"": ""9afa789c-70a7-4390-b5f8-63f80d0b509e"", ""path"": ""/rightStick/up"", ""interactions"": """", ""processors"": """", ""groups"": "";Gamepad"", ""action"": ""Navigate"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""9f0a9bb5-6b38-489d-9657-d2deecec18e3"", ""path"": ""/leftStick/down"", ""interactions"": """", ""processors"": """", ""groups"": "";Gamepad"", ""action"": ""Navigate"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""a0535425-22fb-4e78-ac05-030da2319781"", ""path"": ""/rightStick/down"", ""interactions"": """", ""processors"": """", ""groups"": "";Gamepad"", ""action"": ""Navigate"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""b9b8c830-0959-40af-8048-38a2f63c1e0d"", ""path"": ""/leftStick/left"", ""interactions"": """", ""processors"": """", ""groups"": "";Gamepad"", ""action"": ""Navigate"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""333e444d-65ec-41ca-8d84-88249a5a6ac4"", ""path"": ""/rightStick/left"", ""interactions"": """", ""processors"": """", ""groups"": "";Gamepad"", ""action"": ""Navigate"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""102ab365-885d-4529-a552-13e28b47118d"", ""path"": ""/leftStick/right"", ""interactions"": """", ""processors"": """", ""groups"": "";Gamepad"", ""action"": ""Navigate"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""9c691ec0-05b5-47ea-b055-40b6998f3d2e"", ""path"": ""/rightStick/right"", ""interactions"": """", ""processors"": """", ""groups"": "";Gamepad"", ""action"": ""Navigate"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": """", ""id"": ""a19ec1f0-eb20-4cd1-9c7d-62e1c4fcc6aa"", ""path"": ""/dpad"", ""interactions"": """", ""processors"": """", ""groups"": "";Gamepad"", ""action"": ""Navigate"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": ""Joystick"", ""id"": ""e358b885-d417-4c15-8078-f4c883b85137"", ""path"": ""2DVector"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Navigate"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""up"", ""id"": ""9662b1e9-e4ee-4288-87da-f4ad68b95667"", ""path"": ""/stick/up"", ""interactions"": """", ""processors"": """", ""groups"": ""Joystick"", ""action"": ""Navigate"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""b07b71e2-312c-43f5-9eeb-336b7800644c"", ""path"": ""/stick/down"", ""interactions"": """", ""processors"": """", ""groups"": ""Joystick"", ""action"": ""Navigate"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""292fc311-dcb6-4590-865a-df2b657667a6"", ""path"": ""/stick/left"", ""interactions"": """", ""processors"": """", ""groups"": ""Joystick"", ""action"": ""Navigate"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""139c7776-e0f1-40c3-93d8-50b02be496b8"", ""path"": ""/stick/right"", ""interactions"": """", ""processors"": """", ""groups"": ""Joystick"", ""action"": ""Navigate"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""Keyboard"", ""id"": ""fd7cca57-e749-4c6f-b637-60f1768a2560"", ""path"": ""2DVector"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Navigate"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""up"", ""id"": ""03527583-c921-4136-aeea-316e112946e1"", ""path"": ""/w"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard&Mouse"", ""action"": ""Navigate"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""up"", ""id"": ""3986e0ee-059a-4d30-af1b-45e5b2ed8b48"", ""path"": ""/upArrow"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard&Mouse"", ""action"": ""Navigate"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""bec2b054-909d-45d3-9e33-e8d81bfeb4dd"", ""path"": ""/s"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard&Mouse"", ""action"": ""Navigate"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""79b1235b-bd1d-4d70-85b1-1e20a102dd1d"", ""path"": ""/downArrow"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard&Mouse"", ""action"": ""Navigate"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""de4caf7d-d840-4557-bb1f-171c47b543f1"", ""path"": ""/a"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard&Mouse"", ""action"": ""Navigate"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""96828057-cf33-49d1-9f6e-b609ce59b6da"", ""path"": ""/leftArrow"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard&Mouse"", ""action"": ""Navigate"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""658aaa73-a6e6-46ab-a7b1-6323346c829f"", ""path"": ""/d"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard&Mouse"", ""action"": ""Navigate"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""6ec71254-f210-4e20-9a25-3ba268dec258"", ""path"": ""/rightArrow"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard&Mouse"", ""action"": ""Navigate"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": """", ""id"": ""02aa6f9f-996a-4105-a30e-6f2f2f51a16f"", ""path"": ""*/{Submit}"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard&Mouse;Gamepad;Touch;Joystick;XR"", ""action"": ""Submit"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""75884179-26ab-4c61-89a9-df5ebb68284a"", ""path"": ""*/{Cancel}"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard&Mouse;Gamepad;Touch;Joystick;XR"", ""action"": ""Cancel"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""c03aa34b-189b-4870-bf48-588db784298d"", ""path"": ""/position"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard&Mouse"", ""action"": ""Point"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""dc33bf9b-6378-4084-8180-5894e2e838a6"", ""path"": ""/position"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard&Mouse"", ""action"": ""Point"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""ef7e28ac-c3ae-442e-9ed1-2b977be7b645"", ""path"": ""/touch*/position"", ""interactions"": """", ""processors"": """", ""groups"": ""Touch"", ""action"": ""Point"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""2cbc1f60-b004-4686-9dc7-dcfd070c7682"", ""path"": ""/leftButton"", ""interactions"": """", ""processors"": """", ""groups"": "";Keyboard&Mouse"", ""action"": ""Click"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""49e3bd62-1954-4434-aefb-7e8fd512b01c"", ""path"": ""/tip"", ""interactions"": """", ""processors"": """", ""groups"": "";Keyboard&Mouse"", ""action"": ""Click"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""b3293491-5e3b-4845-8540-9dd4cc12a2e5"", ""path"": ""/touch*/press"", ""interactions"": """", ""processors"": """", ""groups"": ""Touch"", ""action"": ""Click"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""576b52ab-0c79-40cb-8468-4fcb521e8e0d"", ""path"": ""/trigger"", ""interactions"": """", ""processors"": """", ""groups"": ""XR"", ""action"": ""Click"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""fbf742f3-25c5-45bb-97e8-c0a94b0176e0"", ""path"": ""/scroll"", ""interactions"": """", ""processors"": """", ""groups"": "";Keyboard&Mouse"", ""action"": ""ScrollWheel"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""1b44c482-d187-45d7-a28e-7004e20dc672"", ""path"": ""/rightButton"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard&Mouse"", ""action"": ""RightClick"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""5231b478-13fa-4eff-9f6f-0525fcd99684"", ""path"": ""/middleButton"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard&Mouse"", ""action"": ""MiddleClick"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""8b116c2f-9736-4442-b8d3-f73a9ed714d8"", ""path"": ""/devicePosition"", ""interactions"": """", ""processors"": """", ""groups"": ""XR"", ""action"": ""TrackedDevicePosition"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""fbe71b25-dcbc-4b5b-9b83-f2bd650d17b2"", ""path"": ""/deviceRotation"", ""interactions"": """", ""processors"": """", ""groups"": ""XR"", ""action"": ""TrackedDeviceOrientation"", ""isComposite"": false, ""isPartOfComposite"": false } ] } ], ""controlSchemes"": [ { ""name"": ""Keyboard&Mouse"", ""bindingGroup"": ""Keyboard&Mouse"", ""devices"": [ { ""devicePath"": """", ""isOptional"": false, ""isOR"": false }, { ""devicePath"": """", ""isOptional"": false, ""isOR"": false } ] }, { ""name"": ""Gamepad"", ""bindingGroup"": ""Gamepad"", ""devices"": [ { ""devicePath"": """", ""isOptional"": false, ""isOR"": false } ] }, { ""name"": ""Touch"", ""bindingGroup"": ""Touch"", ""devices"": [ { ""devicePath"": """", ""isOptional"": false, ""isOR"": false } ] }, { ""name"": ""Joystick"", ""bindingGroup"": ""Joystick"", ""devices"": [ { ""devicePath"": """", ""isOptional"": false, ""isOR"": false } ] }, { ""name"": ""XR"", ""bindingGroup"": ""XR"", ""devices"": [ { ""devicePath"": """", ""isOptional"": false, ""isOR"": false } ] } ] }"); // Player m_Player = asset.FindActionMap("Player", throwIfNotFound: true); m_Player_Move = m_Player.FindAction("Move", throwIfNotFound: true); m_Player_Look = m_Player.FindAction("Look", throwIfNotFound: true); m_Player_Attack = m_Player.FindAction("Attack", throwIfNotFound: true); m_Player_Interact = m_Player.FindAction("Interact", throwIfNotFound: true); m_Player_Crouch = m_Player.FindAction("Crouch", throwIfNotFound: true); m_Player_Jump = m_Player.FindAction("Jump", throwIfNotFound: true); m_Player_Previous = m_Player.FindAction("Previous", throwIfNotFound: true); m_Player_Next = m_Player.FindAction("Next", throwIfNotFound: true); m_Player_Sprint = m_Player.FindAction("Sprint", throwIfNotFound: true); // UI m_UI = asset.FindActionMap("UI", throwIfNotFound: true); m_UI_Navigate = m_UI.FindAction("Navigate", throwIfNotFound: true); m_UI_Submit = m_UI.FindAction("Submit", throwIfNotFound: true); m_UI_Cancel = m_UI.FindAction("Cancel", throwIfNotFound: true); m_UI_Point = m_UI.FindAction("Point", throwIfNotFound: true); m_UI_Click = m_UI.FindAction("Click", throwIfNotFound: true); m_UI_RightClick = m_UI.FindAction("RightClick", throwIfNotFound: true); m_UI_MiddleClick = m_UI.FindAction("MiddleClick", throwIfNotFound: true); m_UI_ScrollWheel = m_UI.FindAction("ScrollWheel", throwIfNotFound: true); m_UI_TrackedDevicePosition = m_UI.FindAction("TrackedDevicePosition", throwIfNotFound: true); m_UI_TrackedDeviceOrientation = m_UI.FindAction("TrackedDeviceOrientation", throwIfNotFound: true); } ~@InputActions() { UnityEngine.Debug.Assert(!m_Player.enabled, "This will cause a leak and performance issues, InputActions.Player.Disable() has not been called."); UnityEngine.Debug.Assert(!m_UI.enabled, "This will cause a leak and performance issues, InputActions.UI.Disable() has not been called."); } /// /// Destroys this asset and all associated instances. /// 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 List m_PlayerActionsCallbackInterfaces = new List(); private readonly InputAction m_Player_Move; private readonly InputAction m_Player_Look; private readonly InputAction m_Player_Attack; private readonly InputAction m_Player_Interact; private readonly InputAction m_Player_Crouch; private readonly InputAction m_Player_Jump; private readonly InputAction m_Player_Previous; private readonly InputAction m_Player_Next; private readonly InputAction m_Player_Sprint; /// /// Provides access to input actions defined in input action map "Player". /// public struct PlayerActions { private @InputActions m_Wrapper; /// /// Construct a new instance of the input action map wrapper class. /// public PlayerActions(@InputActions wrapper) { m_Wrapper = wrapper; } /// /// Provides access to the underlying input action "Player/Move". /// public InputAction @Move => m_Wrapper.m_Player_Move; /// /// Provides access to the underlying input action "Player/Look". /// public InputAction @Look => m_Wrapper.m_Player_Look; /// /// Provides access to the underlying input action "Player/Attack". /// public InputAction @Attack => m_Wrapper.m_Player_Attack; /// /// Provides access to the underlying input action "Player/Interact". /// public InputAction @Interact => m_Wrapper.m_Player_Interact; /// /// Provides access to the underlying input action "Player/Crouch". /// public InputAction @Crouch => m_Wrapper.m_Player_Crouch; /// /// Provides access to the underlying input action "Player/Jump". /// public InputAction @Jump => m_Wrapper.m_Player_Jump; /// /// Provides access to the underlying input action "Player/Previous". /// public InputAction @Previous => m_Wrapper.m_Player_Previous; /// /// Provides access to the underlying input action "Player/Next". /// public InputAction @Next => m_Wrapper.m_Player_Next; /// /// Provides access to the underlying input action "Player/Sprint". /// public InputAction @Sprint => m_Wrapper.m_Player_Sprint; /// /// Provides access to the underlying input action map instance. /// public InputActionMap Get() { return m_Wrapper.m_Player; } /// public void Enable() { Get().Enable(); } /// public void Disable() { Get().Disable(); } /// public bool enabled => Get().enabled; /// /// Implicitly converts an to an instance. /// public static implicit operator InputActionMap(PlayerActions set) { return set.Get(); } /// /// Adds , and callbacks provided via on all input actions contained in this map. /// /// Callback instance. /// /// If is null or have already been added this method does nothing. /// /// public void AddCallbacks(IPlayerActions instance) { if (instance == null || m_Wrapper.m_PlayerActionsCallbackInterfaces.Contains(instance)) return; m_Wrapper.m_PlayerActionsCallbackInterfaces.Add(instance); @Move.started += instance.OnMove; @Move.performed += instance.OnMove; @Move.canceled += instance.OnMove; @Look.started += instance.OnLook; @Look.performed += instance.OnLook; @Look.canceled += instance.OnLook; @Attack.started += instance.OnAttack; @Attack.performed += instance.OnAttack; @Attack.canceled += instance.OnAttack; @Interact.started += instance.OnInteract; @Interact.performed += instance.OnInteract; @Interact.canceled += instance.OnInteract; @Crouch.started += instance.OnCrouch; @Crouch.performed += instance.OnCrouch; @Crouch.canceled += instance.OnCrouch; @Jump.started += instance.OnJump; @Jump.performed += instance.OnJump; @Jump.canceled += instance.OnJump; @Previous.started += instance.OnPrevious; @Previous.performed += instance.OnPrevious; @Previous.canceled += instance.OnPrevious; @Next.started += instance.OnNext; @Next.performed += instance.OnNext; @Next.canceled += instance.OnNext; @Sprint.started += instance.OnSprint; @Sprint.performed += instance.OnSprint; @Sprint.canceled += instance.OnSprint; } /// /// Removes , and callbacks provided via on all input actions contained in this map. /// /// /// Calling this method when have not previously been registered has no side-effects. /// /// private void UnregisterCallbacks(IPlayerActions instance) { @Move.started -= instance.OnMove; @Move.performed -= instance.OnMove; @Move.canceled -= instance.OnMove; @Look.started -= instance.OnLook; @Look.performed -= instance.OnLook; @Look.canceled -= instance.OnLook; @Attack.started -= instance.OnAttack; @Attack.performed -= instance.OnAttack; @Attack.canceled -= instance.OnAttack; @Interact.started -= instance.OnInteract; @Interact.performed -= instance.OnInteract; @Interact.canceled -= instance.OnInteract; @Crouch.started -= instance.OnCrouch; @Crouch.performed -= instance.OnCrouch; @Crouch.canceled -= instance.OnCrouch; @Jump.started -= instance.OnJump; @Jump.performed -= instance.OnJump; @Jump.canceled -= instance.OnJump; @Previous.started -= instance.OnPrevious; @Previous.performed -= instance.OnPrevious; @Previous.canceled -= instance.OnPrevious; @Next.started -= instance.OnNext; @Next.performed -= instance.OnNext; @Next.canceled -= instance.OnNext; @Sprint.started -= instance.OnSprint; @Sprint.performed -= instance.OnSprint; @Sprint.canceled -= instance.OnSprint; } /// /// Unregisters and unregisters all input action callbacks via . /// /// public void RemoveCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterfaces.Remove(instance)) UnregisterCallbacks(instance); } /// /// Replaces all existing callback instances and previously registered input action callbacks associated with them with callbacks provided via . /// /// /// If is null, calling this method will only unregister all existing callbacks but not register any new callbacks. /// /// /// /// public void SetCallbacks(IPlayerActions instance) { foreach (var item in m_Wrapper.m_PlayerActionsCallbackInterfaces) UnregisterCallbacks(item); m_Wrapper.m_PlayerActionsCallbackInterfaces.Clear(); AddCallbacks(instance); } } /// /// Provides a new instance referencing this action map. /// public PlayerActions @Player => new PlayerActions(this); // UI private readonly InputActionMap m_UI; private List m_UIActionsCallbackInterfaces = new List(); private readonly InputAction m_UI_Navigate; private readonly InputAction m_UI_Submit; private readonly InputAction m_UI_Cancel; private readonly InputAction m_UI_Point; private readonly InputAction m_UI_Click; private readonly InputAction m_UI_RightClick; private readonly InputAction m_UI_MiddleClick; private readonly InputAction m_UI_ScrollWheel; private readonly InputAction m_UI_TrackedDevicePosition; private readonly InputAction m_UI_TrackedDeviceOrientation; /// /// Provides access to input actions defined in input action map "UI". /// public struct UIActions { private @InputActions m_Wrapper; /// /// Construct a new instance of the input action map wrapper class. /// public UIActions(@InputActions wrapper) { m_Wrapper = wrapper; } /// /// Provides access to the underlying input action "UI/Navigate". /// public InputAction @Navigate => m_Wrapper.m_UI_Navigate; /// /// Provides access to the underlying input action "UI/Submit". /// public InputAction @Submit => m_Wrapper.m_UI_Submit; /// /// Provides access to the underlying input action "UI/Cancel". /// public InputAction @Cancel => m_Wrapper.m_UI_Cancel; /// /// Provides access to the underlying input action "UI/Point". /// public InputAction @Point => m_Wrapper.m_UI_Point; /// /// Provides access to the underlying input action "UI/Click". /// public InputAction @Click => m_Wrapper.m_UI_Click; /// /// Provides access to the underlying input action "UI/RightClick". /// public InputAction @RightClick => m_Wrapper.m_UI_RightClick; /// /// Provides access to the underlying input action "UI/MiddleClick". /// public InputAction @MiddleClick => m_Wrapper.m_UI_MiddleClick; /// /// Provides access to the underlying input action "UI/ScrollWheel". /// public InputAction @ScrollWheel => m_Wrapper.m_UI_ScrollWheel; /// /// Provides access to the underlying input action "UI/TrackedDevicePosition". /// public InputAction @TrackedDevicePosition => m_Wrapper.m_UI_TrackedDevicePosition; /// /// Provides access to the underlying input action "UI/TrackedDeviceOrientation". /// public InputAction @TrackedDeviceOrientation => m_Wrapper.m_UI_TrackedDeviceOrientation; /// /// Provides access to the underlying input action map instance. /// public InputActionMap Get() { return m_Wrapper.m_UI; } /// public void Enable() { Get().Enable(); } /// public void Disable() { Get().Disable(); } /// public bool enabled => Get().enabled; /// /// Implicitly converts an to an instance. /// public static implicit operator InputActionMap(UIActions set) { return set.Get(); } /// /// Adds , and callbacks provided via on all input actions contained in this map. /// /// Callback instance. /// /// If is null or have already been added this method does nothing. /// /// public void AddCallbacks(IUIActions instance) { if (instance == null || m_Wrapper.m_UIActionsCallbackInterfaces.Contains(instance)) return; m_Wrapper.m_UIActionsCallbackInterfaces.Add(instance); @Navigate.started += instance.OnNavigate; @Navigate.performed += instance.OnNavigate; @Navigate.canceled += instance.OnNavigate; @Submit.started += instance.OnSubmit; @Submit.performed += instance.OnSubmit; @Submit.canceled += instance.OnSubmit; @Cancel.started += instance.OnCancel; @Cancel.performed += instance.OnCancel; @Cancel.canceled += instance.OnCancel; @Point.started += instance.OnPoint; @Point.performed += instance.OnPoint; @Point.canceled += instance.OnPoint; @Click.started += instance.OnClick; @Click.performed += instance.OnClick; @Click.canceled += instance.OnClick; @RightClick.started += instance.OnRightClick; @RightClick.performed += instance.OnRightClick; @RightClick.canceled += instance.OnRightClick; @MiddleClick.started += instance.OnMiddleClick; @MiddleClick.performed += instance.OnMiddleClick; @MiddleClick.canceled += instance.OnMiddleClick; @ScrollWheel.started += instance.OnScrollWheel; @ScrollWheel.performed += instance.OnScrollWheel; @ScrollWheel.canceled += instance.OnScrollWheel; @TrackedDevicePosition.started += instance.OnTrackedDevicePosition; @TrackedDevicePosition.performed += instance.OnTrackedDevicePosition; @TrackedDevicePosition.canceled += instance.OnTrackedDevicePosition; @TrackedDeviceOrientation.started += instance.OnTrackedDeviceOrientation; @TrackedDeviceOrientation.performed += instance.OnTrackedDeviceOrientation; @TrackedDeviceOrientation.canceled += instance.OnTrackedDeviceOrientation; } /// /// Removes , and callbacks provided via on all input actions contained in this map. /// /// /// Calling this method when have not previously been registered has no side-effects. /// /// private void UnregisterCallbacks(IUIActions instance) { @Navigate.started -= instance.OnNavigate; @Navigate.performed -= instance.OnNavigate; @Navigate.canceled -= instance.OnNavigate; @Submit.started -= instance.OnSubmit; @Submit.performed -= instance.OnSubmit; @Submit.canceled -= instance.OnSubmit; @Cancel.started -= instance.OnCancel; @Cancel.performed -= instance.OnCancel; @Cancel.canceled -= instance.OnCancel; @Point.started -= instance.OnPoint; @Point.performed -= instance.OnPoint; @Point.canceled -= instance.OnPoint; @Click.started -= instance.OnClick; @Click.performed -= instance.OnClick; @Click.canceled -= instance.OnClick; @RightClick.started -= instance.OnRightClick; @RightClick.performed -= instance.OnRightClick; @RightClick.canceled -= instance.OnRightClick; @MiddleClick.started -= instance.OnMiddleClick; @MiddleClick.performed -= instance.OnMiddleClick; @MiddleClick.canceled -= instance.OnMiddleClick; @ScrollWheel.started -= instance.OnScrollWheel; @ScrollWheel.performed -= instance.OnScrollWheel; @ScrollWheel.canceled -= instance.OnScrollWheel; @TrackedDevicePosition.started -= instance.OnTrackedDevicePosition; @TrackedDevicePosition.performed -= instance.OnTrackedDevicePosition; @TrackedDevicePosition.canceled -= instance.OnTrackedDevicePosition; @TrackedDeviceOrientation.started -= instance.OnTrackedDeviceOrientation; @TrackedDeviceOrientation.performed -= instance.OnTrackedDeviceOrientation; @TrackedDeviceOrientation.canceled -= instance.OnTrackedDeviceOrientation; } /// /// Unregisters and unregisters all input action callbacks via . /// /// public void RemoveCallbacks(IUIActions instance) { if (m_Wrapper.m_UIActionsCallbackInterfaces.Remove(instance)) UnregisterCallbacks(instance); } /// /// Replaces all existing callback instances and previously registered input action callbacks associated with them with callbacks provided via . /// /// /// If is null, calling this method will only unregister all existing callbacks but not register any new callbacks. /// /// /// /// public void SetCallbacks(IUIActions instance) { foreach (var item in m_Wrapper.m_UIActionsCallbackInterfaces) UnregisterCallbacks(item); m_Wrapper.m_UIActionsCallbackInterfaces.Clear(); AddCallbacks(instance); } } /// /// Provides a new instance referencing this action map. /// public UIActions @UI => new UIActions(this); private int m_KeyboardMouseSchemeIndex = -1; /// /// Provides access to the input control scheme. /// /// public InputControlScheme KeyboardMouseScheme { get { if (m_KeyboardMouseSchemeIndex == -1) m_KeyboardMouseSchemeIndex = asset.FindControlSchemeIndex("Keyboard&Mouse"); return asset.controlSchemes[m_KeyboardMouseSchemeIndex]; } } private int m_GamepadSchemeIndex = -1; /// /// Provides access to the input control scheme. /// /// public InputControlScheme GamepadScheme { get { if (m_GamepadSchemeIndex == -1) m_GamepadSchemeIndex = asset.FindControlSchemeIndex("Gamepad"); return asset.controlSchemes[m_GamepadSchemeIndex]; } } private int m_TouchSchemeIndex = -1; /// /// Provides access to the input control scheme. /// /// public InputControlScheme TouchScheme { get { if (m_TouchSchemeIndex == -1) m_TouchSchemeIndex = asset.FindControlSchemeIndex("Touch"); return asset.controlSchemes[m_TouchSchemeIndex]; } } private int m_JoystickSchemeIndex = -1; /// /// Provides access to the input control scheme. /// /// public InputControlScheme JoystickScheme { get { if (m_JoystickSchemeIndex == -1) m_JoystickSchemeIndex = asset.FindControlSchemeIndex("Joystick"); return asset.controlSchemes[m_JoystickSchemeIndex]; } } private int m_XRSchemeIndex = -1; /// /// Provides access to the input control scheme. /// /// public InputControlScheme XRScheme { get { if (m_XRSchemeIndex == -1) m_XRSchemeIndex = asset.FindControlSchemeIndex("XR"); return asset.controlSchemes[m_XRSchemeIndex]; } } /// /// Interface to implement callback methods for all input action callbacks associated with input actions defined by "Player" which allows adding and removing callbacks. /// /// /// public interface IPlayerActions { /// /// Method invoked when associated input action "Move" is either , or . /// /// /// /// void OnMove(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Look" is either , or . /// /// /// /// void OnLook(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Attack" is either , or . /// /// /// /// void OnAttack(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Interact" is either , or . /// /// /// /// void OnInteract(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Crouch" is either , or . /// /// /// /// void OnCrouch(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Jump" is either , or . /// /// /// /// void OnJump(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Previous" is either , or . /// /// /// /// void OnPrevious(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Next" is either , or . /// /// /// /// void OnNext(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Sprint" is either , or . /// /// /// /// void OnSprint(InputAction.CallbackContext context); } /// /// Interface to implement callback methods for all input action callbacks associated with input actions defined by "UI" which allows adding and removing callbacks. /// /// /// public interface IUIActions { /// /// Method invoked when associated input action "Navigate" is either , or . /// /// /// /// void OnNavigate(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Submit" is either , or . /// /// /// /// void OnSubmit(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Cancel" is either , or . /// /// /// /// void OnCancel(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Point" is either , or . /// /// /// /// void OnPoint(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Click" is either , or . /// /// /// /// void OnClick(InputAction.CallbackContext context); /// /// Method invoked when associated input action "RightClick" is either , or . /// /// /// /// void OnRightClick(InputAction.CallbackContext context); /// /// Method invoked when associated input action "MiddleClick" is either , or . /// /// /// /// void OnMiddleClick(InputAction.CallbackContext context); /// /// Method invoked when associated input action "ScrollWheel" is either , or . /// /// /// /// void OnScrollWheel(InputAction.CallbackContext context); /// /// Method invoked when associated input action "TrackedDevicePosition" is either , or . /// /// /// /// void OnTrackedDevicePosition(InputAction.CallbackContext context); /// /// Method invoked when associated input action "TrackedDeviceOrientation" is either , or . /// /// /// /// void OnTrackedDeviceOrientation(InputAction.CallbackContext context); } } }