945 lines
40 KiB
C#
945 lines
40 KiB
C#
|
//------------------------------------------------------------------------------
|
||
|
// <auto-generated>
|
||
|
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
|
||
|
// version 1.7.0
|
||
|
// from Assets/Settings/MHCInputActions.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 @MHCInputActions: IInputActionCollection2, IDisposable
|
||
|
{
|
||
|
public InputActionAsset asset { get; }
|
||
|
public @MHCInputActions()
|
||
|
{
|
||
|
asset = InputActionAsset.FromJson(@"{
|
||
|
""name"": ""MHCInputActions"",
|
||
|
""maps"": [
|
||
|
{
|
||
|
""name"": ""Game"",
|
||
|
""id"": ""1f640217-65d1-463d-8d64-a3c87255702d"",
|
||
|
""actions"": [
|
||
|
{
|
||
|
""name"": ""SwitchScene"",
|
||
|
""type"": ""Value"",
|
||
|
""id"": ""b1f9395a-9353-4dcf-b53a-35b61b809484"",
|
||
|
""expectedControlType"": ""Axis"",
|
||
|
""processors"": """",
|
||
|
""interactions"": """",
|
||
|
""initialStateCheck"": true
|
||
|
},
|
||
|
{
|
||
|
""name"": ""ScrollingScene"",
|
||
|
""type"": ""Value"",
|
||
|
""id"": ""c24127b9-07e4-4d8f-89b4-671bfb04e4ad"",
|
||
|
""expectedControlType"": ""Axis"",
|
||
|
""processors"": """",
|
||
|
""interactions"": """",
|
||
|
""initialStateCheck"": true
|
||
|
}
|
||
|
],
|
||
|
""bindings"": [
|
||
|
{
|
||
|
""name"": """",
|
||
|
""id"": ""9847f73d-4d90-4348-a506-c27b08ea30fc"",
|
||
|
""path"": ""<Mouse>/scroll/y"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": """",
|
||
|
""action"": ""SwitchScene"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": false
|
||
|
},
|
||
|
{
|
||
|
""name"": """",
|
||
|
""id"": ""b78a42c0-747a-45fa-ac30-e813b7cb5b36"",
|
||
|
""path"": ""<Touchscreen>/delta/y"",
|
||
|
""interactions"": """",
|
||
|
""processors"": ""AxisDeadzone"",
|
||
|
""groups"": """",
|
||
|
""action"": ""SwitchScene"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": false
|
||
|
},
|
||
|
{
|
||
|
""name"": """",
|
||
|
""id"": ""6f6e3223-1d82-4b7f-8ee9-d1f0f6beba63"",
|
||
|
""path"": ""<Gamepad>/dpad/y"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": """",
|
||
|
""action"": ""SwitchScene"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": false
|
||
|
},
|
||
|
{
|
||
|
""name"": ""Keyboard"",
|
||
|
""id"": ""0142d18b-f2d6-44ad-81b1-7a76085ceee7"",
|
||
|
""path"": ""1DAxis"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": """",
|
||
|
""action"": ""ScrollingScene"",
|
||
|
""isComposite"": true,
|
||
|
""isPartOfComposite"": false
|
||
|
},
|
||
|
{
|
||
|
""name"": ""negative"",
|
||
|
""id"": ""62af9623-4898-4a64-9b44-106661af8389"",
|
||
|
""path"": ""<Keyboard>/leftArrow"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": """",
|
||
|
""action"": ""ScrollingScene"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": true
|
||
|
},
|
||
|
{
|
||
|
""name"": ""positive"",
|
||
|
""id"": ""6ac89f9c-ff01-45c5-aa61-9fa5b45dc35a"",
|
||
|
""path"": ""<Keyboard>/rightArrow"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": """",
|
||
|
""action"": ""ScrollingScene"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": true
|
||
|
},
|
||
|
{
|
||
|
""name"": """",
|
||
|
""id"": ""b22fd771-efe5-42f1-ae53-0e50d83ed762"",
|
||
|
""path"": ""<Gamepad>/rightStick/x"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": """",
|
||
|
""action"": ""ScrollingScene"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": false
|
||
|
},
|
||
|
{
|
||
|
""name"": ""Keyboard"",
|
||
|
""id"": ""27add814-dfd7-43d2-bfa0-2d2fb3540706"",
|
||
|
""path"": ""1DAxis"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": """",
|
||
|
""action"": ""SwitchScene"",
|
||
|
""isComposite"": true,
|
||
|
""isPartOfComposite"": false
|
||
|
},
|
||
|
{
|
||
|
""name"": ""negative"",
|
||
|
""id"": ""7582c381-5ba3-4c5c-9a12-9cedca8fd3df"",
|
||
|
""path"": ""<Keyboard>/downArrow"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": """",
|
||
|
""action"": ""SwitchScene"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": true
|
||
|
},
|
||
|
{
|
||
|
""name"": ""positive"",
|
||
|
""id"": ""c437d51e-7c1f-4fb4-b848-d30186c9521b"",
|
||
|
""path"": ""<Keyboard>/upArrow"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": """",
|
||
|
""action"": ""SwitchScene"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": true
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
""name"": ""UI"",
|
||
|
""id"": ""dd20da50-6430-401a-b30b-44fe5133a3c0"",
|
||
|
""actions"": [
|
||
|
{
|
||
|
""name"": ""Navigate"",
|
||
|
""type"": ""PassThrough"",
|
||
|
""id"": ""9806fa9d-3864-4943-a20a-93dbfd32fc84"",
|
||
|
""expectedControlType"": ""Vector2"",
|
||
|
""processors"": """",
|
||
|
""interactions"": """",
|
||
|
""initialStateCheck"": false
|
||
|
},
|
||
|
{
|
||
|
""name"": ""Submit"",
|
||
|
""type"": ""Button"",
|
||
|
""id"": ""bf040438-fa5d-43a5-aa0e-7940ca23bcae"",
|
||
|
""expectedControlType"": ""Button"",
|
||
|
""processors"": """",
|
||
|
""interactions"": """",
|
||
|
""initialStateCheck"": false
|
||
|
},
|
||
|
{
|
||
|
""name"": ""Cancel"",
|
||
|
""type"": ""Button"",
|
||
|
""id"": ""9da601dd-9b53-4b60-ad22-bb9598de9138"",
|
||
|
""expectedControlType"": ""Button"",
|
||
|
""processors"": """",
|
||
|
""interactions"": """",
|
||
|
""initialStateCheck"": false
|
||
|
},
|
||
|
{
|
||
|
""name"": ""Point"",
|
||
|
""type"": ""PassThrough"",
|
||
|
""id"": ""019bff0c-ca75-4b74-8546-b951e9079915"",
|
||
|
""expectedControlType"": ""Vector2"",
|
||
|
""processors"": """",
|
||
|
""interactions"": """",
|
||
|
""initialStateCheck"": true
|
||
|
},
|
||
|
{
|
||
|
""name"": ""Click"",
|
||
|
""type"": ""PassThrough"",
|
||
|
""id"": ""31a842f1-80cf-4095-947d-a31650d5fea9"",
|
||
|
""expectedControlType"": ""Button"",
|
||
|
""processors"": """",
|
||
|
""interactions"": """",
|
||
|
""initialStateCheck"": true
|
||
|
},
|
||
|
{
|
||
|
""name"": ""ScrollWheel"",
|
||
|
""type"": ""PassThrough"",
|
||
|
""id"": ""8c4f1092-db76-4d3f-b98a-4b577f6ee44e"",
|
||
|
""expectedControlType"": ""Vector2"",
|
||
|
""processors"": """",
|
||
|
""interactions"": """",
|
||
|
""initialStateCheck"": false
|
||
|
},
|
||
|
{
|
||
|
""name"": ""MiddleClick"",
|
||
|
""type"": ""PassThrough"",
|
||
|
""id"": ""8747ef65-bbca-4bb9-839a-2e0fd3a13c46"",
|
||
|
""expectedControlType"": ""Button"",
|
||
|
""processors"": """",
|
||
|
""interactions"": """",
|
||
|
""initialStateCheck"": false
|
||
|
},
|
||
|
{
|
||
|
""name"": ""RightClick"",
|
||
|
""type"": ""PassThrough"",
|
||
|
""id"": ""f3f7e832-26de-4ff0-9972-e01a90d2eb46"",
|
||
|
""expectedControlType"": ""Button"",
|
||
|
""processors"": """",
|
||
|
""interactions"": """",
|
||
|
""initialStateCheck"": false
|
||
|
},
|
||
|
{
|
||
|
""name"": ""TrackedDevicePosition"",
|
||
|
""type"": ""PassThrough"",
|
||
|
""id"": ""db4b060f-b5ed-4e3a-8f2f-a49d39033064"",
|
||
|
""expectedControlType"": ""Vector3"",
|
||
|
""processors"": """",
|
||
|
""interactions"": """",
|
||
|
""initialStateCheck"": false
|
||
|
},
|
||
|
{
|
||
|
""name"": ""TrackedDeviceOrientation"",
|
||
|
""type"": ""PassThrough"",
|
||
|
""id"": ""396a7d09-060a-456f-8da0-9df0b13ce641"",
|
||
|
""expectedControlType"": ""Quaternion"",
|
||
|
""processors"": """",
|
||
|
""interactions"": """",
|
||
|
""initialStateCheck"": false
|
||
|
}
|
||
|
],
|
||
|
""bindings"": [
|
||
|
{
|
||
|
""name"": ""Gamepad"",
|
||
|
""id"": ""d062a9b5-00d1-4504-8dbb-6a245196b61f"",
|
||
|
""path"": ""2DVector"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": """",
|
||
|
""action"": ""Navigate"",
|
||
|
""isComposite"": true,
|
||
|
""isPartOfComposite"": false
|
||
|
},
|
||
|
{
|
||
|
""name"": ""up"",
|
||
|
""id"": ""fda4660c-1a08-45a7-8d9d-c602ea826ce7"",
|
||
|
""path"": ""<Gamepad>/leftStick/up"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": "";Gamepad"",
|
||
|
""action"": ""Navigate"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": true
|
||
|
},
|
||
|
{
|
||
|
""name"": ""up"",
|
||
|
""id"": ""cafa9beb-9cef-41bc-8a1a-f2e8047c1cbd"",
|
||
|
""path"": ""<Gamepad>/rightStick/up"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": "";Gamepad"",
|
||
|
""action"": ""Navigate"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": true
|
||
|
},
|
||
|
{
|
||
|
""name"": ""down"",
|
||
|
""id"": ""81eb16fb-36e6-4baf-bf2d-5ac249e46a37"",
|
||
|
""path"": ""<Gamepad>/leftStick/down"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": "";Gamepad"",
|
||
|
""action"": ""Navigate"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": true
|
||
|
},
|
||
|
{
|
||
|
""name"": ""down"",
|
||
|
""id"": ""718d286c-e78a-4594-861b-b64934b0f8d1"",
|
||
|
""path"": ""<Gamepad>/rightStick/down"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": "";Gamepad"",
|
||
|
""action"": ""Navigate"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": true
|
||
|
},
|
||
|
{
|
||
|
""name"": ""left"",
|
||
|
""id"": ""fb333158-6bf0-438b-adf1-c1fd2be24b49"",
|
||
|
""path"": ""<Gamepad>/leftStick/left"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": "";Gamepad"",
|
||
|
""action"": ""Navigate"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": true
|
||
|
},
|
||
|
{
|
||
|
""name"": ""left"",
|
||
|
""id"": ""f5d671d6-3fa6-4e48-8d95-dadcd92aba2d"",
|
||
|
""path"": ""<Gamepad>/rightStick/left"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": "";Gamepad"",
|
||
|
""action"": ""Navigate"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": true
|
||
|
},
|
||
|
{
|
||
|
""name"": ""right"",
|
||
|
""id"": ""91ecd366-ab37-46c8-9e03-62d106b028a6"",
|
||
|
""path"": ""<Gamepad>/leftStick/right"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": "";Gamepad"",
|
||
|
""action"": ""Navigate"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": true
|
||
|
},
|
||
|
{
|
||
|
""name"": ""right"",
|
||
|
""id"": ""774bec42-41cf-4204-97bf-e48d258eb2d5"",
|
||
|
""path"": ""<Gamepad>/rightStick/right"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": "";Gamepad"",
|
||
|
""action"": ""Navigate"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": true
|
||
|
},
|
||
|
{
|
||
|
""name"": """",
|
||
|
""id"": ""5de2a171-7bc1-4383-9c02-93e973776d36"",
|
||
|
""path"": ""<Gamepad>/dpad"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": "";Gamepad"",
|
||
|
""action"": ""Navigate"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": false
|
||
|
},
|
||
|
{
|
||
|
""name"": ""Joystick"",
|
||
|
""id"": ""f8a336eb-501c-4e4f-b604-82656247e564"",
|
||
|
""path"": ""2DVector"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": """",
|
||
|
""action"": ""Navigate"",
|
||
|
""isComposite"": true,
|
||
|
""isPartOfComposite"": false
|
||
|
},
|
||
|
{
|
||
|
""name"": ""up"",
|
||
|
""id"": ""1026a942-c30c-42c9-85a2-0109648879ab"",
|
||
|
""path"": ""<Joystick>/stick/up"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": ""Joystick"",
|
||
|
""action"": ""Navigate"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": true
|
||
|
},
|
||
|
{
|
||
|
""name"": ""down"",
|
||
|
""id"": ""fb36aa13-11dd-4e4b-9473-0fa0d02677ab"",
|
||
|
""path"": ""<Joystick>/stick/down"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": ""Joystick"",
|
||
|
""action"": ""Navigate"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": true
|
||
|
},
|
||
|
{
|
||
|
""name"": ""left"",
|
||
|
""id"": ""8387cc91-1b2c-47c2-8122-f12be534549f"",
|
||
|
""path"": ""<Joystick>/stick/left"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": ""Joystick"",
|
||
|
""action"": ""Navigate"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": true
|
||
|
},
|
||
|
{
|
||
|
""name"": ""right"",
|
||
|
""id"": ""c2d27b58-0699-438d-89e7-2cd823762649"",
|
||
|
""path"": ""<Joystick>/stick/right"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": ""Joystick"",
|
||
|
""action"": ""Navigate"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": true
|
||
|
},
|
||
|
{
|
||
|
""name"": ""Keyboard"",
|
||
|
""id"": ""13e003fc-b4dd-4dc3-94bc-8a7f77736fec"",
|
||
|
""path"": ""2DVector"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": """",
|
||
|
""action"": ""Navigate"",
|
||
|
""isComposite"": true,
|
||
|
""isPartOfComposite"": false
|
||
|
},
|
||
|
{
|
||
|
""name"": ""up"",
|
||
|
""id"": ""2d0a4489-291d-4ee1-8c57-f4332484618b"",
|
||
|
""path"": ""<Keyboard>/w"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": ""Keyboard&Mouse"",
|
||
|
""action"": ""Navigate"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": true
|
||
|
},
|
||
|
{
|
||
|
""name"": ""up"",
|
||
|
""id"": ""d2014545-ce4b-43b2-aad8-641980dbf334"",
|
||
|
""path"": ""<Keyboard>/upArrow"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": ""Keyboard&Mouse"",
|
||
|
""action"": ""Navigate"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": true
|
||
|
},
|
||
|
{
|
||
|
""name"": ""down"",
|
||
|
""id"": ""646df917-0cc3-4618-bd8e-f3bcb4b074f4"",
|
||
|
""path"": ""<Keyboard>/s"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": ""Keyboard&Mouse"",
|
||
|
""action"": ""Navigate"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": true
|
||
|
},
|
||
|
{
|
||
|
""name"": ""down"",
|
||
|
""id"": ""78aa7055-c8d5-4232-a638-ea7dac52c410"",
|
||
|
""path"": ""<Keyboard>/downArrow"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": ""Keyboard&Mouse"",
|
||
|
""action"": ""Navigate"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": true
|
||
|
},
|
||
|
{
|
||
|
""name"": ""left"",
|
||
|
""id"": ""4afc0512-2bfa-494d-8b63-306322a28561"",
|
||
|
""path"": ""<Keyboard>/a"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": ""Keyboard&Mouse"",
|
||
|
""action"": ""Navigate"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": true
|
||
|
},
|
||
|
{
|
||
|
""name"": ""left"",
|
||
|
""id"": ""d5ce8daa-915b-465c-a99e-468e0c275ff8"",
|
||
|
""path"": ""<Keyboard>/leftArrow"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": ""Keyboard&Mouse"",
|
||
|
""action"": ""Navigate"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": true
|
||
|
},
|
||
|
{
|
||
|
""name"": ""right"",
|
||
|
""id"": ""7162f121-a944-4dc3-9b77-608731d6071b"",
|
||
|
""path"": ""<Keyboard>/d"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": ""Keyboard&Mouse"",
|
||
|
""action"": ""Navigate"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": true
|
||
|
},
|
||
|
{
|
||
|
""name"": ""right"",
|
||
|
""id"": ""11851e14-8821-4c10-bec3-212df4d0f1af"",
|
||
|
""path"": ""<Keyboard>/rightArrow"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": ""Keyboard&Mouse"",
|
||
|
""action"": ""Navigate"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": true
|
||
|
},
|
||
|
{
|
||
|
""name"": """",
|
||
|
""id"": ""dbe22119-a92f-4a3e-86e6-9ec4f7fecf4c"",
|
||
|
""path"": ""*/{Submit}"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": ""Keyboard&Mouse;Gamepad;Touch;Joystick;XR"",
|
||
|
""action"": ""Submit"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": false
|
||
|
},
|
||
|
{
|
||
|
""name"": """",
|
||
|
""id"": ""9cb2d986-5a5b-40e5-9d0f-2b8fd577ac69"",
|
||
|
""path"": ""*/{Cancel}"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": ""Keyboard&Mouse;Gamepad;Touch;Joystick;XR"",
|
||
|
""action"": ""Cancel"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": false
|
||
|
},
|
||
|
{
|
||
|
""name"": """",
|
||
|
""id"": ""58eaaeec-ffb9-4d55-8262-ceb58823e145"",
|
||
|
""path"": ""<Mouse>/position"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": ""Keyboard&Mouse"",
|
||
|
""action"": ""Point"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": false
|
||
|
},
|
||
|
{
|
||
|
""name"": """",
|
||
|
""id"": ""c52c1ba8-1b40-462c-89db-244f68416236"",
|
||
|
""path"": ""<Pen>/position"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": ""Keyboard&Mouse"",
|
||
|
""action"": ""Point"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": false
|
||
|
},
|
||
|
{
|
||
|
""name"": """",
|
||
|
""id"": ""6c87da3c-d735-40d3-9940-5f0641db2156"",
|
||
|
""path"": ""<Touchscreen>/touch*/position"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": ""Touch"",
|
||
|
""action"": ""Point"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": false
|
||
|
},
|
||
|
{
|
||
|
""name"": """",
|
||
|
""id"": ""c143cc79-9491-4de8-95fb-7cc05ea8ecdb"",
|
||
|
""path"": ""<Mouse>/leftButton"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": "";Keyboard&Mouse"",
|
||
|
""action"": ""Click"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": false
|
||
|
},
|
||
|
{
|
||
|
""name"": """",
|
||
|
""id"": ""9eed8098-7e71-4421-8a7c-e5d81bf82e66"",
|
||
|
""path"": ""<Pen>/tip"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": "";Keyboard&Mouse"",
|
||
|
""action"": ""Click"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": false
|
||
|
},
|
||
|
{
|
||
|
""name"": """",
|
||
|
""id"": ""6c6a048e-5732-47d0-afe4-a267f11f9b9a"",
|
||
|
""path"": ""<Touchscreen>/touch*/press"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": ""Touch"",
|
||
|
""action"": ""Click"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": false
|
||
|
},
|
||
|
{
|
||
|
""name"": """",
|
||
|
""id"": ""2386235b-4068-42a1-bdd1-4808620c542f"",
|
||
|
""path"": ""<XRController>/trigger"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": ""XR"",
|
||
|
""action"": ""Click"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": false
|
||
|
},
|
||
|
{
|
||
|
""name"": """",
|
||
|
""id"": ""8c54462c-fca3-4e63-b5b3-ece3c71fe808"",
|
||
|
""path"": ""<Mouse>/scroll"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": "";Keyboard&Mouse"",
|
||
|
""action"": ""ScrollWheel"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": false
|
||
|
},
|
||
|
{
|
||
|
""name"": """",
|
||
|
""id"": ""d8359923-db9d-4c7d-94d5-2a3d0d9fd920"",
|
||
|
""path"": ""<Mouse>/middleButton"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": "";Keyboard&Mouse"",
|
||
|
""action"": ""MiddleClick"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": false
|
||
|
},
|
||
|
{
|
||
|
""name"": """",
|
||
|
""id"": ""1f645afd-a6f7-4480-b0a9-f6849a2034cc"",
|
||
|
""path"": ""<Mouse>/rightButton"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": "";Keyboard&Mouse"",
|
||
|
""action"": ""RightClick"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": false
|
||
|
},
|
||
|
{
|
||
|
""name"": """",
|
||
|
""id"": ""146a80b8-1ea9-4962-a219-f8f3b1610626"",
|
||
|
""path"": ""<XRController>/devicePosition"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": ""XR"",
|
||
|
""action"": ""TrackedDevicePosition"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": false
|
||
|
},
|
||
|
{
|
||
|
""name"": """",
|
||
|
""id"": ""dfb655d5-1404-4a85-b400-f215d3a1f9a3"",
|
||
|
""path"": ""<XRController>/deviceRotation"",
|
||
|
""interactions"": """",
|
||
|
""processors"": """",
|
||
|
""groups"": ""XR"",
|
||
|
""action"": ""TrackedDeviceOrientation"",
|
||
|
""isComposite"": false,
|
||
|
""isPartOfComposite"": false
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
""controlSchemes"": []
|
||
|
}");
|
||
|
// Game
|
||
|
m_Game = asset.FindActionMap("Game", throwIfNotFound: true);
|
||
|
m_Game_SwitchScene = m_Game.FindAction("SwitchScene", throwIfNotFound: true);
|
||
|
m_Game_ScrollingScene = m_Game.FindAction("ScrollingScene", 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_ScrollWheel = m_UI.FindAction("ScrollWheel", throwIfNotFound: true);
|
||
|
m_UI_MiddleClick = m_UI.FindAction("MiddleClick", throwIfNotFound: true);
|
||
|
m_UI_RightClick = m_UI.FindAction("RightClick", throwIfNotFound: true);
|
||
|
m_UI_TrackedDevicePosition = m_UI.FindAction("TrackedDevicePosition", throwIfNotFound: true);
|
||
|
m_UI_TrackedDeviceOrientation = m_UI.FindAction("TrackedDeviceOrientation", 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);
|
||
|
}
|
||
|
|
||
|
// Game
|
||
|
private readonly InputActionMap m_Game;
|
||
|
private List<IGameActions> m_GameActionsCallbackInterfaces = new List<IGameActions>();
|
||
|
private readonly InputAction m_Game_SwitchScene;
|
||
|
private readonly InputAction m_Game_ScrollingScene;
|
||
|
public struct GameActions
|
||
|
{
|
||
|
private @MHCInputActions m_Wrapper;
|
||
|
public GameActions(@MHCInputActions wrapper) { m_Wrapper = wrapper; }
|
||
|
public InputAction @SwitchScene => m_Wrapper.m_Game_SwitchScene;
|
||
|
public InputAction @ScrollingScene => m_Wrapper.m_Game_ScrollingScene;
|
||
|
public InputActionMap Get() { return m_Wrapper.m_Game; }
|
||
|
public void Enable() { Get().Enable(); }
|
||
|
public void Disable() { Get().Disable(); }
|
||
|
public bool enabled => Get().enabled;
|
||
|
public static implicit operator InputActionMap(GameActions set) { return set.Get(); }
|
||
|
public void AddCallbacks(IGameActions instance)
|
||
|
{
|
||
|
if (instance == null || m_Wrapper.m_GameActionsCallbackInterfaces.Contains(instance)) return;
|
||
|
m_Wrapper.m_GameActionsCallbackInterfaces.Add(instance);
|
||
|
@SwitchScene.started += instance.OnSwitchScene;
|
||
|
@SwitchScene.performed += instance.OnSwitchScene;
|
||
|
@SwitchScene.canceled += instance.OnSwitchScene;
|
||
|
@ScrollingScene.started += instance.OnScrollingScene;
|
||
|
@ScrollingScene.performed += instance.OnScrollingScene;
|
||
|
@ScrollingScene.canceled += instance.OnScrollingScene;
|
||
|
}
|
||
|
|
||
|
private void UnregisterCallbacks(IGameActions instance)
|
||
|
{
|
||
|
@SwitchScene.started -= instance.OnSwitchScene;
|
||
|
@SwitchScene.performed -= instance.OnSwitchScene;
|
||
|
@SwitchScene.canceled -= instance.OnSwitchScene;
|
||
|
@ScrollingScene.started -= instance.OnScrollingScene;
|
||
|
@ScrollingScene.performed -= instance.OnScrollingScene;
|
||
|
@ScrollingScene.canceled -= instance.OnScrollingScene;
|
||
|
}
|
||
|
|
||
|
public void RemoveCallbacks(IGameActions instance)
|
||
|
{
|
||
|
if (m_Wrapper.m_GameActionsCallbackInterfaces.Remove(instance))
|
||
|
UnregisterCallbacks(instance);
|
||
|
}
|
||
|
|
||
|
public void SetCallbacks(IGameActions instance)
|
||
|
{
|
||
|
foreach (var item in m_Wrapper.m_GameActionsCallbackInterfaces)
|
||
|
UnregisterCallbacks(item);
|
||
|
m_Wrapper.m_GameActionsCallbackInterfaces.Clear();
|
||
|
AddCallbacks(instance);
|
||
|
}
|
||
|
}
|
||
|
public GameActions @Game => new GameActions(this);
|
||
|
|
||
|
// UI
|
||
|
private readonly InputActionMap m_UI;
|
||
|
private List<IUIActions> m_UIActionsCallbackInterfaces = new List<IUIActions>();
|
||
|
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_ScrollWheel;
|
||
|
private readonly InputAction m_UI_MiddleClick;
|
||
|
private readonly InputAction m_UI_RightClick;
|
||
|
private readonly InputAction m_UI_TrackedDevicePosition;
|
||
|
private readonly InputAction m_UI_TrackedDeviceOrientation;
|
||
|
public struct UIActions
|
||
|
{
|
||
|
private @MHCInputActions m_Wrapper;
|
||
|
public UIActions(@MHCInputActions wrapper) { m_Wrapper = wrapper; }
|
||
|
public InputAction @Navigate => m_Wrapper.m_UI_Navigate;
|
||
|
public InputAction @Submit => m_Wrapper.m_UI_Submit;
|
||
|
public InputAction @Cancel => m_Wrapper.m_UI_Cancel;
|
||
|
public InputAction @Point => m_Wrapper.m_UI_Point;
|
||
|
public InputAction @Click => m_Wrapper.m_UI_Click;
|
||
|
public InputAction @ScrollWheel => m_Wrapper.m_UI_ScrollWheel;
|
||
|
public InputAction @MiddleClick => m_Wrapper.m_UI_MiddleClick;
|
||
|
public InputAction @RightClick => m_Wrapper.m_UI_RightClick;
|
||
|
public InputAction @TrackedDevicePosition => m_Wrapper.m_UI_TrackedDevicePosition;
|
||
|
public InputAction @TrackedDeviceOrientation => m_Wrapper.m_UI_TrackedDeviceOrientation;
|
||
|
public InputActionMap Get() { return m_Wrapper.m_UI; }
|
||
|
public void Enable() { Get().Enable(); }
|
||
|
public void Disable() { Get().Disable(); }
|
||
|
public bool enabled => Get().enabled;
|
||
|
public static implicit operator InputActionMap(UIActions set) { return set.Get(); }
|
||
|
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;
|
||
|
@ScrollWheel.started += instance.OnScrollWheel;
|
||
|
@ScrollWheel.performed += instance.OnScrollWheel;
|
||
|
@ScrollWheel.canceled += instance.OnScrollWheel;
|
||
|
@MiddleClick.started += instance.OnMiddleClick;
|
||
|
@MiddleClick.performed += instance.OnMiddleClick;
|
||
|
@MiddleClick.canceled += instance.OnMiddleClick;
|
||
|
@RightClick.started += instance.OnRightClick;
|
||
|
@RightClick.performed += instance.OnRightClick;
|
||
|
@RightClick.canceled += instance.OnRightClick;
|
||
|
@TrackedDevicePosition.started += instance.OnTrackedDevicePosition;
|
||
|
@TrackedDevicePosition.performed += instance.OnTrackedDevicePosition;
|
||
|
@TrackedDevicePosition.canceled += instance.OnTrackedDevicePosition;
|
||
|
@TrackedDeviceOrientation.started += instance.OnTrackedDeviceOrientation;
|
||
|
@TrackedDeviceOrientation.performed += instance.OnTrackedDeviceOrientation;
|
||
|
@TrackedDeviceOrientation.canceled += instance.OnTrackedDeviceOrientation;
|
||
|
}
|
||
|
|
||
|
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;
|
||
|
@ScrollWheel.started -= instance.OnScrollWheel;
|
||
|
@ScrollWheel.performed -= instance.OnScrollWheel;
|
||
|
@ScrollWheel.canceled -= instance.OnScrollWheel;
|
||
|
@MiddleClick.started -= instance.OnMiddleClick;
|
||
|
@MiddleClick.performed -= instance.OnMiddleClick;
|
||
|
@MiddleClick.canceled -= instance.OnMiddleClick;
|
||
|
@RightClick.started -= instance.OnRightClick;
|
||
|
@RightClick.performed -= instance.OnRightClick;
|
||
|
@RightClick.canceled -= instance.OnRightClick;
|
||
|
@TrackedDevicePosition.started -= instance.OnTrackedDevicePosition;
|
||
|
@TrackedDevicePosition.performed -= instance.OnTrackedDevicePosition;
|
||
|
@TrackedDevicePosition.canceled -= instance.OnTrackedDevicePosition;
|
||
|
@TrackedDeviceOrientation.started -= instance.OnTrackedDeviceOrientation;
|
||
|
@TrackedDeviceOrientation.performed -= instance.OnTrackedDeviceOrientation;
|
||
|
@TrackedDeviceOrientation.canceled -= instance.OnTrackedDeviceOrientation;
|
||
|
}
|
||
|
|
||
|
public void RemoveCallbacks(IUIActions instance)
|
||
|
{
|
||
|
if (m_Wrapper.m_UIActionsCallbackInterfaces.Remove(instance))
|
||
|
UnregisterCallbacks(instance);
|
||
|
}
|
||
|
|
||
|
public void SetCallbacks(IUIActions instance)
|
||
|
{
|
||
|
foreach (var item in m_Wrapper.m_UIActionsCallbackInterfaces)
|
||
|
UnregisterCallbacks(item);
|
||
|
m_Wrapper.m_UIActionsCallbackInterfaces.Clear();
|
||
|
AddCallbacks(instance);
|
||
|
}
|
||
|
}
|
||
|
public UIActions @UI => new UIActions(this);
|
||
|
public interface IGameActions
|
||
|
{
|
||
|
void OnSwitchScene(InputAction.CallbackContext context);
|
||
|
void OnScrollingScene(InputAction.CallbackContext context);
|
||
|
}
|
||
|
public interface IUIActions
|
||
|
{
|
||
|
void OnNavigate(InputAction.CallbackContext context);
|
||
|
void OnSubmit(InputAction.CallbackContext context);
|
||
|
void OnCancel(InputAction.CallbackContext context);
|
||
|
void OnPoint(InputAction.CallbackContext context);
|
||
|
void OnClick(InputAction.CallbackContext context);
|
||
|
void OnScrollWheel(InputAction.CallbackContext context);
|
||
|
void OnMiddleClick(InputAction.CallbackContext context);
|
||
|
void OnRightClick(InputAction.CallbackContext context);
|
||
|
void OnTrackedDevicePosition(InputAction.CallbackContext context);
|
||
|
void OnTrackedDeviceOrientation(InputAction.CallbackContext context);
|
||
|
}
|
||
|
}
|