mirror of
https://github.com/Kizuren/ShantiManti.git
synced 2025-12-21 13:06:04 +01:00
1683 lines
70 KiB
C#
1683 lines
70 KiB
C#
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
|
|
// version 1.11.2
|
|
// from Assets/Input Actions.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 @InputActions: IInputActionCollection2, IDisposable
|
|
{
|
|
public InputActionAsset asset { get; }
|
|
public @InputActions()
|
|
{
|
|
asset = InputActionAsset.FromJson(@"{
|
|
""name"": ""Input Actions"",
|
|
""maps"": [
|
|
{
|
|
""name"": ""Player"",
|
|
""id"": ""1310e046-296d-4948-8010-8ae418874aae"",
|
|
""actions"": [
|
|
{
|
|
""name"": ""Move"",
|
|
""type"": ""Value"",
|
|
""id"": ""f03b39f5-640d-48bf-8605-dd0354de7a1a"",
|
|
""expectedControlType"": ""Vector2"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": true
|
|
},
|
|
{
|
|
""name"": ""Look"",
|
|
""type"": ""Value"",
|
|
""id"": ""c2720f8a-c432-461a-ab35-ffef33daae20"",
|
|
""expectedControlType"": ""Vector2"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": true
|
|
},
|
|
{
|
|
""name"": ""Attack"",
|
|
""type"": ""Button"",
|
|
""id"": ""000733d7-dfef-4087-9aa4-d4efe5786f41"",
|
|
""expectedControlType"": """",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Interact"",
|
|
""type"": ""Button"",
|
|
""id"": ""6cdaea22-9b74-4e0c-a27a-504fa750aa4e"",
|
|
""expectedControlType"": """",
|
|
""processors"": """",
|
|
""interactions"": ""Hold"",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Crouch"",
|
|
""type"": ""Button"",
|
|
""id"": ""9433ab9f-fe71-4a99-9655-1751fa8ed01c"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Jump"",
|
|
""type"": ""Button"",
|
|
""id"": ""f4732595-87e5-462c-9d44-ad307e30cf4e"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Previous"",
|
|
""type"": ""Button"",
|
|
""id"": ""c7443743-05e1-48cf-aa91-b6f100325027"",
|
|
""expectedControlType"": """",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Next"",
|
|
""type"": ""Button"",
|
|
""id"": ""a0722ece-7b4b-4dda-a1e8-9d536c625363"",
|
|
""expectedControlType"": """",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Sprint"",
|
|
""type"": ""Button"",
|
|
""id"": ""c5231e9b-cf90-4366-920a-3d1034e8def8"",
|
|
""expectedControlType"": """",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Pause"",
|
|
""type"": ""Button"",
|
|
""id"": ""1d1dcaf9-4888-42dc-8f3c-799cf4d7e487"",
|
|
""expectedControlType"": """",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Start"",
|
|
""type"": ""Button"",
|
|
""id"": ""0a735d9d-7833-4b08-8abc-e670b7139b03"",
|
|
""expectedControlType"": """",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""MuteMusic"",
|
|
""type"": ""Button"",
|
|
""id"": ""8435b015-93a4-4659-8984-8587b44f701f"",
|
|
""expectedControlType"": """",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Clouds"",
|
|
""type"": ""Button"",
|
|
""id"": ""a2012fd3-73fe-4223-a478-ea5962c68061"",
|
|
""expectedControlType"": """",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
}
|
|
],
|
|
""bindings"": [
|
|
{
|
|
""name"": """",
|
|
""id"": ""4e996e90-74ca-4af9-94ff-ba8ab1d4f626"",
|
|
""path"": ""<Gamepad>/leftStick"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Gamepad"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": ""WASD"",
|
|
""id"": ""fc9a6f62-441f-491b-a378-7d4afacc3cab"",
|
|
""path"": ""Dpad"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Move"",
|
|
""isComposite"": true,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": ""up"",
|
|
""id"": ""62315ca4-9aad-4811-a816-f1c0623745c5"",
|
|
""path"": ""<Keyboard>/w"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Keyboard&Mouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""up"",
|
|
""id"": ""b84484d8-d697-4243-943d-2e2833fed3e5"",
|
|
""path"": ""<Keyboard>/upArrow"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Keyboard&Mouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""down"",
|
|
""id"": ""4537c2c1-8cdf-45bf-b74e-f63126618bdf"",
|
|
""path"": ""<Keyboard>/s"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Keyboard&Mouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""down"",
|
|
""id"": ""65785b85-dd61-4869-bc5a-f614d993321a"",
|
|
""path"": ""<Keyboard>/downArrow"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Keyboard&Mouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""left"",
|
|
""id"": ""ffc5decc-fd61-4914-9952-85e0decceee9"",
|
|
""path"": ""<Keyboard>/a"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Keyboard&Mouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""left"",
|
|
""id"": ""cce4e939-7371-44e8-889a-85262d2e8611"",
|
|
""path"": ""<Keyboard>/leftArrow"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Keyboard&Mouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""right"",
|
|
""id"": ""9899c29e-5ed7-4b92-bc90-ccc67f7798da"",
|
|
""path"": ""<Keyboard>/d"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Keyboard&Mouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""right"",
|
|
""id"": ""a52b5928-bceb-48fe-a030-00457d465d42"",
|
|
""path"": ""<Keyboard>/rightArrow"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Keyboard&Mouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""d5281470-a636-4194-bd8a-769768efdb56"",
|
|
""path"": ""<XRController>/{Primary2DAxis}"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""XR"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""315e6fd4-4e32-42f7-a2af-cd42605cd380"",
|
|
""path"": ""<Joystick>/stick"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Joystick"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""4b9d9d07-5e33-4833-90b0-59690a907acf"",
|
|
""path"": ""<Gamepad>/rightStick"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Gamepad"",
|
|
""action"": ""Look"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""f953e452-329e-413c-8efb-0f3147f59450"",
|
|
""path"": ""<Pointer>/delta"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Keyboard&Mouse;Touch"",
|
|
""action"": ""Look"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""176bdd95-cff6-499e-aeff-85bcf63b2bb4"",
|
|
""path"": ""<Joystick>/{Hatswitch}"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Joystick"",
|
|
""action"": ""Look"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""efa63b2a-075b-424e-8cf7-c7b59d09ecb6"",
|
|
""path"": ""<Gamepad>/buttonWest"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Gamepad"",
|
|
""action"": ""Attack"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""1c6d085f-4e10-47c2-bb89-dd1242519e52"",
|
|
""path"": ""<Mouse>/leftButton"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Keyboard&Mouse"",
|
|
""action"": ""Attack"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""1182c123-6e44-4fa6-b97a-353cef53bf04"",
|
|
""path"": ""<Touchscreen>/primaryTouch/tap"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Touch"",
|
|
""action"": ""Attack"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""9cb14319-cc0e-4159-9e1c-f69ff6555ea5"",
|
|
""path"": ""<Joystick>/trigger"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Joystick"",
|
|
""action"": ""Attack"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""62e9ba73-c21a-4e0a-b687-17a0fb46293d"",
|
|
""path"": ""<XRController>/{PrimaryAction}"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""XR"",
|
|
""action"": ""Attack"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""f44cc597-c58e-4d03-8e09-fa3fea0bd5a9"",
|
|
""path"": ""<Keyboard>/space"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Keyboard&Mouse"",
|
|
""action"": ""Attack"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""0aeeabb8-77b4-4bf0-a932-81ccb300e0b2"",
|
|
""path"": ""<Keyboard>/2"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Next"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""e9eca5dc-ad88-43bc-8089-8bbe227723d2"",
|
|
""path"": ""<Gamepad>/dpad/right"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Gamepad"",
|
|
""action"": ""Next"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""ce2e14d0-56f0-4ef6-9e46-249c79176d23"",
|
|
""path"": ""<Keyboard>/leftShift"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Sprint"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""9cbce629-3586-4931-8ed1-5fd82e5880fd"",
|
|
""path"": ""<Gamepad>/leftStickPress"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Gamepad"",
|
|
""action"": ""Sprint"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""58df9427-fc97-4c6b-b226-84e3f7bff7d4"",
|
|
""path"": ""<XRController>/trigger"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""XR"",
|
|
""action"": ""Sprint"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""dd09a37a-9abd-471c-9334-231dbc90e76c"",
|
|
""path"": ""<Keyboard>/w"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Jump"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""cd442115-6439-4f24-8007-8bc12c0e6005"",
|
|
""path"": ""<Gamepad>/buttonSouth"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Gamepad"",
|
|
""action"": ""Jump"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""80fe6657-3b19-4810-9bf2-347da9b850dd"",
|
|
""path"": ""<XRController>/secondaryButton"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""XR"",
|
|
""action"": ""Jump"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""c5258a6d-cb3c-42cc-9070-48d6b9591241"",
|
|
""path"": ""<Keyboard>/upArrow"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Jump"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""8b3f2ca2-2174-4043-b144-db9afedc460d"",
|
|
""path"": ""<Keyboard>/1"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Previous"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""52898b15-caee-4c78-b8e9-01a0a3cf6e2a"",
|
|
""path"": ""<Gamepad>/dpad/left"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Gamepad"",
|
|
""action"": ""Previous"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""0de00de1-c422-4717-bd40-b17511a49186"",
|
|
""path"": ""<Keyboard>/e"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Interact"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""5f28bcde-e459-472f-8565-bfc1a224ec03"",
|
|
""path"": ""<Gamepad>/buttonNorth"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Gamepad"",
|
|
""action"": ""Interact"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""306dca76-90af-40d1-8ce4-095fda363ecf"",
|
|
""path"": ""<Gamepad>/buttonEast"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Gamepad"",
|
|
""action"": ""Crouch"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""8137d958-a82d-46a6-aa8e-8c395ef6e630"",
|
|
""path"": ""<Keyboard>/s"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Crouch"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""2df6f99a-95e6-4e39-aea6-658f25c1348a"",
|
|
""path"": ""<Keyboard>/downArrow"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Crouch"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""32ee2789-0887-40c5-b3d4-339696dd61e5"",
|
|
""path"": ""<Keyboard>/p"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Keyboard&Mouse"",
|
|
""action"": ""Pause"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""5bded044-cd30-43fd-a604-9b7d7b910625"",
|
|
""path"": ""<Keyboard>/escape"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Keyboard&Mouse"",
|
|
""action"": ""Pause"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""a9161ca0-207f-4ab7-893c-6e577819b121"",
|
|
""path"": ""<Keyboard>/backspace"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Keyboard&Mouse"",
|
|
""action"": ""Pause"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""6ed38df6-6771-4da2-b83d-5651dee4e323"",
|
|
""path"": ""<Gamepad>/select"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Gamepad"",
|
|
""action"": ""Pause"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""facdf0e6-1c71-4816-b910-f711f14ce9ca"",
|
|
""path"": ""<Keyboard>/enter"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Keyboard&Mouse"",
|
|
""action"": ""Start"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""46ff3af2-e2aa-46ea-b8c0-e7a923dbc96d"",
|
|
""path"": ""<Keyboard>/space"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Keyboard&Mouse"",
|
|
""action"": ""Start"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""da6cd266-69cd-4a0f-8f6b-127b784cb899"",
|
|
""path"": ""<Gamepad>/start"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Gamepad"",
|
|
""action"": ""Start"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""c59b4a6a-ccfb-4a99-bcd4-004d836b7142"",
|
|
""path"": ""<Keyboard>/m"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Keyboard&Mouse"",
|
|
""action"": ""MuteMusic"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""7ca614ba-0160-4eb8-acb1-2a1800e33a04"",
|
|
""path"": ""<Gamepad>/leftShoulder"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Gamepad"",
|
|
""action"": ""MuteMusic"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""fe091e6c-b051-4e34-b07d-c6e19e08f33a"",
|
|
""path"": ""<Keyboard>/c"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Keyboard&Mouse"",
|
|
""action"": ""Clouds"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""6ab39558-5939-4251-9d88-891818c975e6"",
|
|
""path"": ""<Gamepad>/rightShoulder"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Gamepad"",
|
|
""action"": ""Clouds"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
""name"": ""UI"",
|
|
""id"": ""274228c7-8fa9-4b79-88bf-0bb68ee0c944"",
|
|
""actions"": [
|
|
{
|
|
""name"": ""Navigate"",
|
|
""type"": ""PassThrough"",
|
|
""id"": ""9f72e2d7-a6b0-4d1e-9768-12ffbf1476e2"",
|
|
""expectedControlType"": ""Vector2"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Submit"",
|
|
""type"": ""Button"",
|
|
""id"": ""73814ca1-7df8-4775-a070-f34f85ee71c5"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Cancel"",
|
|
""type"": ""Button"",
|
|
""id"": ""84ac69b0-3342-405f-8f74-41091f1c5204"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Point"",
|
|
""type"": ""PassThrough"",
|
|
""id"": ""b2f2382a-9cee-4af8-8200-3bdd22fb027e"",
|
|
""expectedControlType"": ""Vector2"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": true
|
|
},
|
|
{
|
|
""name"": ""Click"",
|
|
""type"": ""PassThrough"",
|
|
""id"": ""1dff9440-15ff-47df-96c2-2aa79aa871d3"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": true
|
|
},
|
|
{
|
|
""name"": ""RightClick"",
|
|
""type"": ""PassThrough"",
|
|
""id"": ""28621d11-0d13-450b-8c14-707fc5604149"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""MiddleClick"",
|
|
""type"": ""PassThrough"",
|
|
""id"": ""34453fbd-1a38-4130-b306-e488f0e30d13"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""ScrollWheel"",
|
|
""type"": ""PassThrough"",
|
|
""id"": ""574532d9-d26f-4020-9be4-1ba499f5d153"",
|
|
""expectedControlType"": ""Vector2"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""TrackedDevicePosition"",
|
|
""type"": ""PassThrough"",
|
|
""id"": ""66574437-48be-47df-8843-a34fdcb36464"",
|
|
""expectedControlType"": ""Vector3"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""TrackedDeviceOrientation"",
|
|
""type"": ""PassThrough"",
|
|
""id"": ""e379b0b8-2c17-4c30-b942-8cfb0e4454e0"",
|
|
""expectedControlType"": ""Quaternion"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
}
|
|
],
|
|
""bindings"": [
|
|
{
|
|
""name"": ""Gamepad"",
|
|
""id"": ""4042faea-d202-4453-880b-f04884c174c9"",
|
|
""path"": ""2DVector"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Navigate"",
|
|
""isComposite"": true,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": ""up"",
|
|
""id"": ""7de1bfd7-1758-4fb4-9eb3-672a43911252"",
|
|
""path"": ""<Gamepad>/leftStick/up"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Gamepad"",
|
|
""action"": ""Navigate"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""up"",
|
|
""id"": ""2b0ca9d2-0c17-4102-a5b2-bee8b28ea2f4"",
|
|
""path"": ""<Gamepad>/rightStick/up"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Gamepad"",
|
|
""action"": ""Navigate"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""down"",
|
|
""id"": ""7f4dd5d3-9733-49e3-9d28-ec8af4d3ce22"",
|
|
""path"": ""<Gamepad>/leftStick/down"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Gamepad"",
|
|
""action"": ""Navigate"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""down"",
|
|
""id"": ""38f17e26-5608-4ad7-8df0-26263dff3817"",
|
|
""path"": ""<Gamepad>/rightStick/down"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Gamepad"",
|
|
""action"": ""Navigate"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""left"",
|
|
""id"": ""c4d443db-e6a4-4a78-aac3-21413e35fb2f"",
|
|
""path"": ""<Gamepad>/leftStick/left"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Gamepad"",
|
|
""action"": ""Navigate"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""left"",
|
|
""id"": ""0052c817-f9d9-4c21-a6ac-6c9577b202f6"",
|
|
""path"": ""<Gamepad>/rightStick/left"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Gamepad"",
|
|
""action"": ""Navigate"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""right"",
|
|
""id"": ""e61c705b-825f-4e90-859e-941252d33a0c"",
|
|
""path"": ""<Gamepad>/leftStick/right"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Gamepad"",
|
|
""action"": ""Navigate"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""right"",
|
|
""id"": ""91c7a695-d4ea-4696-8ea3-114a7930347d"",
|
|
""path"": ""<Gamepad>/rightStick/right"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Gamepad"",
|
|
""action"": ""Navigate"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""22051ef5-4e32-4ec1-9af6-9b1abaf4d43a"",
|
|
""path"": ""<Gamepad>/dpad"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Gamepad"",
|
|
""action"": ""Navigate"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": ""Joystick"",
|
|
""id"": ""3e196e29-f931-430e-aae6-aad768b2020a"",
|
|
""path"": ""2DVector"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Navigate"",
|
|
""isComposite"": true,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": ""up"",
|
|
""id"": ""00838605-b125-4705-a79e-e9a3275bc362"",
|
|
""path"": ""<Joystick>/stick/up"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Joystick"",
|
|
""action"": ""Navigate"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""down"",
|
|
""id"": ""d09be176-6450-435b-92ee-2f973f9b2778"",
|
|
""path"": ""<Joystick>/stick/down"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Joystick"",
|
|
""action"": ""Navigate"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""left"",
|
|
""id"": ""20757bc6-4171-4b4c-819c-3269dba128ae"",
|
|
""path"": ""<Joystick>/stick/left"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Joystick"",
|
|
""action"": ""Navigate"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""right"",
|
|
""id"": ""3f0d1e20-1630-4957-886a-10cb4c171444"",
|
|
""path"": ""<Joystick>/stick/right"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Joystick"",
|
|
""action"": ""Navigate"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""Keyboard"",
|
|
""id"": ""216d65c8-abe4-43e9-99d9-67122aee6792"",
|
|
""path"": ""2DVector"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Navigate"",
|
|
""isComposite"": true,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": ""up"",
|
|
""id"": ""ba9511e8-6f9b-4b25-b60f-325ae6bbdf74"",
|
|
""path"": ""<Keyboard>/w"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Navigate"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""up"",
|
|
""id"": ""c0971050-a12e-41ab-b707-3325810f7f56"",
|
|
""path"": ""<Keyboard>/upArrow"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Navigate"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""down"",
|
|
""id"": ""210f0185-9461-4e6c-828d-fcafe24c7a1c"",
|
|
""path"": ""<Keyboard>/s"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Navigate"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""down"",
|
|
""id"": ""6358318d-00ef-43a7-a6dd-2647753a8e67"",
|
|
""path"": ""<Keyboard>/downArrow"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Navigate"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""left"",
|
|
""id"": ""16aace17-12ed-4444-abba-832de4f9818d"",
|
|
""path"": ""<Keyboard>/a"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Navigate"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""left"",
|
|
""id"": ""303d32e6-e9f2-4f34-8692-2eaad475d7fe"",
|
|
""path"": ""<Keyboard>/leftArrow"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Navigate"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""right"",
|
|
""id"": ""dc1e6d90-10e0-4acd-9a46-64ef97ddf9da"",
|
|
""path"": ""<Keyboard>/d"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Navigate"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""right"",
|
|
""id"": ""ee725b7c-7552-4ca3-ad1d-b95e81ce0878"",
|
|
""path"": ""<Keyboard>/rightArrow"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Navigate"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""81dd96fb-528c-4cfb-b221-8bc6a9f98b7d"",
|
|
""path"": ""*/{Submit}"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse;Gamepad;Touch;Joystick;XR"",
|
|
""action"": ""Submit"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""51683d78-9d14-4918-b54d-9368feb7c23f"",
|
|
""path"": ""*/{Cancel}"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse;Gamepad;Touch;Joystick;XR"",
|
|
""action"": ""Cancel"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""484a2311-6e55-482a-be22-5497f4884b79"",
|
|
""path"": ""<Mouse>/position"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Point"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""c8ce95f2-761f-4087-9062-21c21d4c918b"",
|
|
""path"": ""<Pen>/position"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Point"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""53a13569-fe92-4f9c-a970-8175820c658b"",
|
|
""path"": ""<Touchscreen>/touch*/position"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Touch"",
|
|
""action"": ""Point"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""a69abb77-9102-4964-984a-c82ee60a9714"",
|
|
""path"": ""<Mouse>/leftButton"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Keyboard&Mouse"",
|
|
""action"": ""Click"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""927ef891-f008-4baa-9f84-a86a2813a72f"",
|
|
""path"": ""<Pen>/tip"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Keyboard&Mouse"",
|
|
""action"": ""Click"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""0982ffc6-1255-44c5-8aa3-aa3294854817"",
|
|
""path"": ""<Touchscreen>/touch*/press"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Touch"",
|
|
""action"": ""Click"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""564a2d9f-91f2-4512-a711-d1ea6146876a"",
|
|
""path"": ""<XRController>/trigger"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""XR"",
|
|
""action"": ""Click"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""7d4729c9-e12e-49a2-acb6-891a86516099"",
|
|
""path"": ""<Mouse>/scroll"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": "";Keyboard&Mouse"",
|
|
""action"": ""ScrollWheel"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""da1a635b-76bc-4145-989b-052c25e616d7"",
|
|
""path"": ""<Mouse>/rightButton"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""RightClick"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""92149871-7b0b-434a-9d42-c10f16f9e88a"",
|
|
""path"": ""<Mouse>/middleButton"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""MiddleClick"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""3c2667e6-de4d-4e57-b89f-513b1417eb9e"",
|
|
""path"": ""<XRController>/devicePosition"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""XR"",
|
|
""action"": ""TrackedDevicePosition"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""54f1d5ea-fbb5-422f-ad8c-5cfa875de564"",
|
|
""path"": ""<XRController>/deviceRotation"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""XR"",
|
|
""action"": ""TrackedDeviceOrientation"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
}
|
|
]
|
|
}
|
|
],
|
|
""controlSchemes"": [
|
|
{
|
|
""name"": ""Keyboard&Mouse"",
|
|
""bindingGroup"": ""Keyboard&Mouse"",
|
|
""devices"": [
|
|
{
|
|
""devicePath"": ""<Keyboard>"",
|
|
""isOptional"": false,
|
|
""isOR"": false
|
|
},
|
|
{
|
|
""devicePath"": ""<Mouse>"",
|
|
""isOptional"": false,
|
|
""isOR"": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
""name"": ""Gamepad"",
|
|
""bindingGroup"": ""Gamepad"",
|
|
""devices"": [
|
|
{
|
|
""devicePath"": ""<Gamepad>"",
|
|
""isOptional"": false,
|
|
""isOR"": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
""name"": ""Touch"",
|
|
""bindingGroup"": ""Touch"",
|
|
""devices"": [
|
|
{
|
|
""devicePath"": ""<Touchscreen>"",
|
|
""isOptional"": false,
|
|
""isOR"": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
""name"": ""Joystick"",
|
|
""bindingGroup"": ""Joystick"",
|
|
""devices"": [
|
|
{
|
|
""devicePath"": ""<Joystick>"",
|
|
""isOptional"": false,
|
|
""isOR"": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
""name"": ""XR"",
|
|
""bindingGroup"": ""XR"",
|
|
""devices"": [
|
|
{
|
|
""devicePath"": ""<XRController>"",
|
|
""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);
|
|
m_Player_Pause = m_Player.FindAction("Pause", throwIfNotFound: true);
|
|
m_Player_Start = m_Player.FindAction("Start", throwIfNotFound: true);
|
|
m_Player_MuteMusic = m_Player.FindAction("MuteMusic", throwIfNotFound: true);
|
|
m_Player_Clouds = m_Player.FindAction("Clouds", 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.");
|
|
}
|
|
|
|
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);
|
|
}
|
|
|
|
// Player
|
|
private readonly InputActionMap m_Player;
|
|
private List<IPlayerActions> m_PlayerActionsCallbackInterfaces = new List<IPlayerActions>();
|
|
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;
|
|
private readonly InputAction m_Player_Pause;
|
|
private readonly InputAction m_Player_Start;
|
|
private readonly InputAction m_Player_MuteMusic;
|
|
private readonly InputAction m_Player_Clouds;
|
|
public struct PlayerActions
|
|
{
|
|
private @InputActions m_Wrapper;
|
|
public PlayerActions(@InputActions wrapper) { m_Wrapper = wrapper; }
|
|
public InputAction @Move => m_Wrapper.m_Player_Move;
|
|
public InputAction @Look => m_Wrapper.m_Player_Look;
|
|
public InputAction @Attack => m_Wrapper.m_Player_Attack;
|
|
public InputAction @Interact => m_Wrapper.m_Player_Interact;
|
|
public InputAction @Crouch => m_Wrapper.m_Player_Crouch;
|
|
public InputAction @Jump => m_Wrapper.m_Player_Jump;
|
|
public InputAction @Previous => m_Wrapper.m_Player_Previous;
|
|
public InputAction @Next => m_Wrapper.m_Player_Next;
|
|
public InputAction @Sprint => m_Wrapper.m_Player_Sprint;
|
|
public InputAction @Pause => m_Wrapper.m_Player_Pause;
|
|
public InputAction @Start => m_Wrapper.m_Player_Start;
|
|
public InputAction @MuteMusic => m_Wrapper.m_Player_MuteMusic;
|
|
public InputAction @Clouds => m_Wrapper.m_Player_Clouds;
|
|
public InputActionMap Get() { return m_Wrapper.m_Player; }
|
|
public void Enable() { Get().Enable(); }
|
|
public void Disable() { Get().Disable(); }
|
|
public bool enabled => Get().enabled;
|
|
public static implicit operator InputActionMap(PlayerActions set) { return set.Get(); }
|
|
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;
|
|
@Pause.started += instance.OnPause;
|
|
@Pause.performed += instance.OnPause;
|
|
@Pause.canceled += instance.OnPause;
|
|
@Start.started += instance.OnStart;
|
|
@Start.performed += instance.OnStart;
|
|
@Start.canceled += instance.OnStart;
|
|
@MuteMusic.started += instance.OnMuteMusic;
|
|
@MuteMusic.performed += instance.OnMuteMusic;
|
|
@MuteMusic.canceled += instance.OnMuteMusic;
|
|
@Clouds.started += instance.OnClouds;
|
|
@Clouds.performed += instance.OnClouds;
|
|
@Clouds.canceled += instance.OnClouds;
|
|
}
|
|
|
|
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;
|
|
@Pause.started -= instance.OnPause;
|
|
@Pause.performed -= instance.OnPause;
|
|
@Pause.canceled -= instance.OnPause;
|
|
@Start.started -= instance.OnStart;
|
|
@Start.performed -= instance.OnStart;
|
|
@Start.canceled -= instance.OnStart;
|
|
@MuteMusic.started -= instance.OnMuteMusic;
|
|
@MuteMusic.performed -= instance.OnMuteMusic;
|
|
@MuteMusic.canceled -= instance.OnMuteMusic;
|
|
@Clouds.started -= instance.OnClouds;
|
|
@Clouds.performed -= instance.OnClouds;
|
|
@Clouds.canceled -= instance.OnClouds;
|
|
}
|
|
|
|
public void RemoveCallbacks(IPlayerActions instance)
|
|
{
|
|
if (m_Wrapper.m_PlayerActionsCallbackInterfaces.Remove(instance))
|
|
UnregisterCallbacks(instance);
|
|
}
|
|
|
|
public void SetCallbacks(IPlayerActions instance)
|
|
{
|
|
foreach (var item in m_Wrapper.m_PlayerActionsCallbackInterfaces)
|
|
UnregisterCallbacks(item);
|
|
m_Wrapper.m_PlayerActionsCallbackInterfaces.Clear();
|
|
AddCallbacks(instance);
|
|
}
|
|
}
|
|
public PlayerActions @Player => new PlayerActions(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_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;
|
|
public struct UIActions
|
|
{
|
|
private @InputActions m_Wrapper;
|
|
public UIActions(@InputActions 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 @RightClick => m_Wrapper.m_UI_RightClick;
|
|
public InputAction @MiddleClick => m_Wrapper.m_UI_MiddleClick;
|
|
public InputAction @ScrollWheel => m_Wrapper.m_UI_ScrollWheel;
|
|
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;
|
|
@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;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
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);
|
|
private int m_KeyboardMouseSchemeIndex = -1;
|
|
public InputControlScheme KeyboardMouseScheme
|
|
{
|
|
get
|
|
{
|
|
if (m_KeyboardMouseSchemeIndex == -1) m_KeyboardMouseSchemeIndex = asset.FindControlSchemeIndex("Keyboard&Mouse");
|
|
return asset.controlSchemes[m_KeyboardMouseSchemeIndex];
|
|
}
|
|
}
|
|
private int m_GamepadSchemeIndex = -1;
|
|
public InputControlScheme GamepadScheme
|
|
{
|
|
get
|
|
{
|
|
if (m_GamepadSchemeIndex == -1) m_GamepadSchemeIndex = asset.FindControlSchemeIndex("Gamepad");
|
|
return asset.controlSchemes[m_GamepadSchemeIndex];
|
|
}
|
|
}
|
|
private int m_TouchSchemeIndex = -1;
|
|
public InputControlScheme TouchScheme
|
|
{
|
|
get
|
|
{
|
|
if (m_TouchSchemeIndex == -1) m_TouchSchemeIndex = asset.FindControlSchemeIndex("Touch");
|
|
return asset.controlSchemes[m_TouchSchemeIndex];
|
|
}
|
|
}
|
|
private int m_JoystickSchemeIndex = -1;
|
|
public InputControlScheme JoystickScheme
|
|
{
|
|
get
|
|
{
|
|
if (m_JoystickSchemeIndex == -1) m_JoystickSchemeIndex = asset.FindControlSchemeIndex("Joystick");
|
|
return asset.controlSchemes[m_JoystickSchemeIndex];
|
|
}
|
|
}
|
|
private int m_XRSchemeIndex = -1;
|
|
public InputControlScheme XRScheme
|
|
{
|
|
get
|
|
{
|
|
if (m_XRSchemeIndex == -1) m_XRSchemeIndex = asset.FindControlSchemeIndex("XR");
|
|
return asset.controlSchemes[m_XRSchemeIndex];
|
|
}
|
|
}
|
|
public interface IPlayerActions
|
|
{
|
|
void OnMove(InputAction.CallbackContext context);
|
|
void OnLook(InputAction.CallbackContext context);
|
|
void OnAttack(InputAction.CallbackContext context);
|
|
void OnInteract(InputAction.CallbackContext context);
|
|
void OnCrouch(InputAction.CallbackContext context);
|
|
void OnJump(InputAction.CallbackContext context);
|
|
void OnPrevious(InputAction.CallbackContext context);
|
|
void OnNext(InputAction.CallbackContext context);
|
|
void OnSprint(InputAction.CallbackContext context);
|
|
void OnPause(InputAction.CallbackContext context);
|
|
void OnStart(InputAction.CallbackContext context);
|
|
void OnMuteMusic(InputAction.CallbackContext context);
|
|
void OnClouds(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 OnRightClick(InputAction.CallbackContext context);
|
|
void OnMiddleClick(InputAction.CallbackContext context);
|
|
void OnScrollWheel(InputAction.CallbackContext context);
|
|
void OnTrackedDevicePosition(InputAction.CallbackContext context);
|
|
void OnTrackedDeviceOrientation(InputAction.CallbackContext context);
|
|
}
|
|
}
|