| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318 |
- //------------------------------------------------------------------------------
- // <auto-generated>
- // This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
- // version 1.4.3
- // from Assets/Input/RoomBuilder.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 @RoomBuilder : IInputActionCollection2, IDisposable
- {
- public InputActionAsset asset { get; }
- public @RoomBuilder()
- {
- asset = InputActionAsset.FromJson(@"{
- ""name"": ""RoomBuilder"",
- ""maps"": [
- {
- ""name"": ""Player"",
- ""id"": ""9ce7a72b-8fbc-4e02-9989-16d8697082a8"",
- ""actions"": [
- {
- ""name"": ""Move"",
- ""type"": ""Value"",
- ""id"": ""2e891230-ce1d-4455-86c2-5bf397db1d53"",
- ""expectedControlType"": ""Vector2"",
- ""processors"": """",
- ""interactions"": """",
- ""initialStateCheck"": true
- },
- {
- ""name"": ""Look"",
- ""type"": ""Value"",
- ""id"": ""a11e5d61-d806-4288-ad8f-8719ac70fcd6"",
- ""expectedControlType"": ""Vector2"",
- ""processors"": """",
- ""interactions"": """",
- ""initialStateCheck"": true
- },
- {
- ""name"": ""Fire"",
- ""type"": ""Button"",
- ""id"": ""42dcdb62-23c9-465c-8372-98e5a4079de1"",
- ""expectedControlType"": ""Button"",
- ""processors"": """",
- ""interactions"": """",
- ""initialStateCheck"": false
- }
- ],
- ""bindings"": [
- {
- ""name"": """",
- ""id"": ""978bfe49-cc26-4a3d-ab7b-7d7a29327403"",
- ""path"": ""<Gamepad>/leftStick"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": "";Gamepad"",
- ""action"": ""Move"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": ""WASD"",
- ""id"": ""00ca640b-d935-4593-8157-c05846ea39b3"",
- ""path"": ""Dpad"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""Move"",
- ""isComposite"": true,
- ""isPartOfComposite"": false
- },
- {
- ""name"": ""up"",
- ""id"": ""e2062cb9-1b15-46a2-838c-2f8d72a0bdd9"",
- ""path"": ""<Keyboard>/w"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": "";Keyboard&Mouse"",
- ""action"": ""Move"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""up"",
- ""id"": ""8180e8bd-4097-4f4e-ab88-4523101a6ce9"",
- ""path"": ""<Keyboard>/upArrow"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": "";Keyboard&Mouse"",
- ""action"": ""Move"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""down"",
- ""id"": ""320bffee-a40b-4347-ac70-c210eb8bc73a"",
- ""path"": ""<Keyboard>/s"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": "";Keyboard&Mouse"",
- ""action"": ""Move"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""down"",
- ""id"": ""1c5327b5-f71c-4f60-99c7-4e737386f1d1"",
- ""path"": ""<Keyboard>/downArrow"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": "";Keyboard&Mouse"",
- ""action"": ""Move"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""left"",
- ""id"": ""d2581a9b-1d11-4566-b27d-b92aff5fabbc"",
- ""path"": ""<Keyboard>/a"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": "";Keyboard&Mouse"",
- ""action"": ""Move"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""left"",
- ""id"": ""2e46982e-44cc-431b-9f0b-c11910bf467a"",
- ""path"": ""<Keyboard>/leftArrow"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": "";Keyboard&Mouse"",
- ""action"": ""Move"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""right"",
- ""id"": ""fcfe95b8-67b9-4526-84b5-5d0bc98d6400"",
- ""path"": ""<Keyboard>/d"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": "";Keyboard&Mouse"",
- ""action"": ""Move"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""right"",
- ""id"": ""77bff152-3580-4b21-b6de-dcd0c7e41164"",
- ""path"": ""<Keyboard>/rightArrow"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": "";Keyboard&Mouse"",
- ""action"": ""Move"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": """",
- ""id"": ""1635d3fe-58b6-4ba9-a4e2-f4b964f6b5c8"",
- ""path"": ""<XRController>/{Primary2DAxis}"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""XR"",
- ""action"": ""Move"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""3ea4d645-4504-4529-b061-ab81934c3752"",
- ""path"": ""<Joystick>/stick"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Joystick"",
- ""action"": ""Move"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""c1f7a91b-d0fd-4a62-997e-7fb9b69bf235"",
- ""path"": ""<Gamepad>/rightStick"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": "";Gamepad"",
- ""action"": ""Look"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""8c8e490b-c610-4785-884f-f04217b23ca4"",
- ""path"": ""<Pointer>/delta"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": "";Keyboard&Mouse;Touch"",
- ""action"": ""Look"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""3e5f5442-8668-4b27-a940-df99bad7e831"",
- ""path"": ""<Joystick>/{Hatswitch}"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Joystick"",
- ""action"": ""Look"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""143bb1cd-cc10-4eca-a2f0-a3664166fe91"",
- ""path"": ""<Gamepad>/rightTrigger"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": "";Gamepad"",
- ""action"": ""Fire"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""05f6913d-c316-48b2-a6bb-e225f14c7960"",
- ""path"": ""<Mouse>/leftButton"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": "";Keyboard&Mouse"",
- ""action"": ""Fire"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""886e731e-7071-4ae4-95c0-e61739dad6fd"",
- ""path"": ""<Touchscreen>/primaryTouch/tap"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": "";Touch"",
- ""action"": ""Fire"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""ee3d0cd2-254e-47a7-a8cb-bc94d9658c54"",
- ""path"": ""<Joystick>/trigger"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Joystick"",
- ""action"": ""Fire"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""8255d333-5683-4943-a58a-ccb207ff1dce"",
- ""path"": ""<XRController>/{PrimaryAction}"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""XR"",
- ""action"": ""Fire"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- }
- ]
- },
- {
- ""name"": ""UI"",
- ""id"": ""46da50db-8aaa-4b77-94b4-d12d4aa9dac7"",
- ""actions"": [
- {
- ""name"": ""Navigate"",
- ""type"": ""PassThrough"",
- ""id"": ""b7e80eb0-96c1-41a5-a1da-aa15aa17f5e5"",
- ""expectedControlType"": ""Vector2"",
- ""processors"": """",
- ""interactions"": """",
- ""initialStateCheck"": false
- },
- {
- ""name"": ""Submit"",
- ""type"": ""Button"",
- ""id"": ""dfa2d8bf-ad2a-4e31-b131-22c26561e4d4"",
- ""expectedControlType"": ""Button"",
- ""processors"": """",
- ""interactions"": """",
- ""initialStateCheck"": false
- },
- {
- ""name"": ""Cancel"",
- ""type"": ""Button"",
- ""id"": ""e394e929-a784-4b90-a1b1-c6674ee3e9b1"",
- ""expectedControlType"": ""Button"",
- ""processors"": """",
- ""interactions"": """",
- ""initialStateCheck"": false
- },
- {
- ""name"": ""Point"",
- ""type"": ""PassThrough"",
- ""id"": ""e87908bf-3a84-489a-9db3-1a4dbbbd85f0"",
- ""expectedControlType"": ""Vector2"",
- ""processors"": """",
- ""interactions"": """",
- ""initialStateCheck"": true
- },
- {
- ""name"": ""Click"",
- ""type"": ""PassThrough"",
- ""id"": ""830b02bb-4112-4739-af82-113a49fe2238"",
- ""expectedControlType"": ""Button"",
- ""processors"": """",
- ""interactions"": """",
- ""initialStateCheck"": true
- },
- {
- ""name"": ""ScrollWheel"",
- ""type"": ""PassThrough"",
- ""id"": ""7568c44a-06a2-48ca-ae8f-ccdd2240df49"",
- ""expectedControlType"": ""Vector2"",
- ""processors"": """",
- ""interactions"": """",
- ""initialStateCheck"": false
- },
- {
- ""name"": ""MiddleClick"",
- ""type"": ""PassThrough"",
- ""id"": ""4fb5ed1e-e60a-4e72-8996-90dd3e3ad88f"",
- ""expectedControlType"": ""Button"",
- ""processors"": """",
- ""interactions"": """",
- ""initialStateCheck"": false
- },
- {
- ""name"": ""RightClick"",
- ""type"": ""PassThrough"",
- ""id"": ""44c1b591-0ccb-4e18-9648-1b2dedc59618"",
- ""expectedControlType"": ""Button"",
- ""processors"": """",
- ""interactions"": """",
- ""initialStateCheck"": false
- },
- {
- ""name"": ""TrackedDevicePosition"",
- ""type"": ""PassThrough"",
- ""id"": ""50bc7630-f893-4231-827f-9098e7971d9c"",
- ""expectedControlType"": ""Vector3"",
- ""processors"": """",
- ""interactions"": """",
- ""initialStateCheck"": false
- },
- {
- ""name"": ""TrackedDeviceOrientation"",
- ""type"": ""PassThrough"",
- ""id"": ""2034f2fe-9ca2-492b-a5e6-86e78fdafa86"",
- ""expectedControlType"": ""Quaternion"",
- ""processors"": """",
- ""interactions"": """",
- ""initialStateCheck"": false
- }
- ],
- ""bindings"": [
- {
- ""name"": ""Gamepad"",
- ""id"": ""809f371f-c5e2-4e7a-83a1-d867598f40dd"",
- ""path"": ""2DVector"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""Navigate"",
- ""isComposite"": true,
- ""isPartOfComposite"": false
- },
- {
- ""name"": ""up"",
- ""id"": ""14a5d6e8-4aaf-4119-a9ef-34b8c2c548bf"",
- ""path"": ""<Gamepad>/leftStick/up"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": "";Gamepad"",
- ""action"": ""Navigate"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""up"",
- ""id"": ""9144cbe6-05e1-4687-a6d7-24f99d23dd81"",
- ""path"": ""<Gamepad>/rightStick/up"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": "";Gamepad"",
- ""action"": ""Navigate"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""down"",
- ""id"": ""2db08d65-c5fb-421b-983f-c71163608d67"",
- ""path"": ""<Gamepad>/leftStick/down"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": "";Gamepad"",
- ""action"": ""Navigate"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""down"",
- ""id"": ""58748904-2ea9-4a80-8579-b500e6a76df8"",
- ""path"": ""<Gamepad>/rightStick/down"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": "";Gamepad"",
- ""action"": ""Navigate"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""left"",
- ""id"": ""8ba04515-75aa-45de-966d-393d9bbd1c14"",
- ""path"": ""<Gamepad>/leftStick/left"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": "";Gamepad"",
- ""action"": ""Navigate"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""left"",
- ""id"": ""712e721c-bdfb-4b23-a86c-a0d9fcfea921"",
- ""path"": ""<Gamepad>/rightStick/left"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": "";Gamepad"",
- ""action"": ""Navigate"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""right"",
- ""id"": ""fcd248ae-a788-4676-a12e-f4d81205600b"",
- ""path"": ""<Gamepad>/leftStick/right"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": "";Gamepad"",
- ""action"": ""Navigate"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""right"",
- ""id"": ""1f04d9bc-c50b-41a1-bfcc-afb75475ec20"",
- ""path"": ""<Gamepad>/rightStick/right"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": "";Gamepad"",
- ""action"": ""Navigate"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": """",
- ""id"": ""fb8277d4-c5cd-4663-9dc7-ee3f0b506d90"",
- ""path"": ""<Gamepad>/dpad"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": "";Gamepad"",
- ""action"": ""Navigate"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": ""Joystick"",
- ""id"": ""e25d9774-381c-4a61-b47c-7b6b299ad9f9"",
- ""path"": ""2DVector"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""Navigate"",
- ""isComposite"": true,
- ""isPartOfComposite"": false
- },
- {
- ""name"": ""up"",
- ""id"": ""3db53b26-6601-41be-9887-63ac74e79d19"",
- ""path"": ""<Joystick>/stick/up"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Joystick"",
- ""action"": ""Navigate"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""down"",
- ""id"": ""0cb3e13e-3d90-4178-8ae6-d9c5501d653f"",
- ""path"": ""<Joystick>/stick/down"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Joystick"",
- ""action"": ""Navigate"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""left"",
- ""id"": ""0392d399-f6dd-4c82-8062-c1e9c0d34835"",
- ""path"": ""<Joystick>/stick/left"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Joystick"",
- ""action"": ""Navigate"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""right"",
- ""id"": ""942a66d9-d42f-43d6-8d70-ecb4ba5363bc"",
- ""path"": ""<Joystick>/stick/right"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Joystick"",
- ""action"": ""Navigate"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""Keyboard"",
- ""id"": ""ff527021-f211-4c02-933e-5976594c46ed"",
- ""path"": ""2DVector"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""Navigate"",
- ""isComposite"": true,
- ""isPartOfComposite"": false
- },
- {
- ""name"": ""up"",
- ""id"": ""563fbfdd-0f09-408d-aa75-8642c4f08ef0"",
- ""path"": ""<Keyboard>/w"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Keyboard&Mouse"",
- ""action"": ""Navigate"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""up"",
- ""id"": ""eb480147-c587-4a33-85ed-eb0ab9942c43"",
- ""path"": ""<Keyboard>/upArrow"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Keyboard&Mouse"",
- ""action"": ""Navigate"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""down"",
- ""id"": ""2bf42165-60bc-42ca-8072-8c13ab40239b"",
- ""path"": ""<Keyboard>/s"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Keyboard&Mouse"",
- ""action"": ""Navigate"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""down"",
- ""id"": ""85d264ad-e0a0-4565-b7ff-1a37edde51ac"",
- ""path"": ""<Keyboard>/downArrow"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Keyboard&Mouse"",
- ""action"": ""Navigate"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""left"",
- ""id"": ""74214943-c580-44e4-98eb-ad7eebe17902"",
- ""path"": ""<Keyboard>/a"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Keyboard&Mouse"",
- ""action"": ""Navigate"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""left"",
- ""id"": ""cea9b045-a000-445b-95b8-0c171af70a3b"",
- ""path"": ""<Keyboard>/leftArrow"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Keyboard&Mouse"",
- ""action"": ""Navigate"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""right"",
- ""id"": ""8607c725-d935-4808-84b1-8354e29bab63"",
- ""path"": ""<Keyboard>/d"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Keyboard&Mouse"",
- ""action"": ""Navigate"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""right"",
- ""id"": ""4cda81dc-9edd-4e03-9d7c-a71a14345d0b"",
- ""path"": ""<Keyboard>/rightArrow"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Keyboard&Mouse"",
- ""action"": ""Navigate"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": """",
- ""id"": ""9e92bb26-7e3b-4ec4-b06b-3c8f8e498ddc"",
- ""path"": ""*/{Submit}"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Keyboard&Mouse;Gamepad;Touch;Joystick;XR"",
- ""action"": ""Submit"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""82627dcc-3b13-4ba9-841d-e4b746d6553e"",
- ""path"": ""*/{Cancel}"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Keyboard&Mouse;Gamepad;Touch;Joystick;XR"",
- ""action"": ""Cancel"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""c52c8e0b-8179-41d3-b8a1-d149033bbe86"",
- ""path"": ""<Mouse>/position"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Keyboard&Mouse"",
- ""action"": ""Point"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""e1394cbc-336e-44ce-9ea8-6007ed6193f7"",
- ""path"": ""<Pen>/position"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Keyboard&Mouse"",
- ""action"": ""Point"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""5693e57a-238a-46ed-b5ae-e64e6e574302"",
- ""path"": ""<Touchscreen>/touch*/position"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Touch"",
- ""action"": ""Point"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""4faf7dc9-b979-4210-aa8c-e808e1ef89f5"",
- ""path"": ""<Mouse>/leftButton"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": "";Keyboard&Mouse"",
- ""action"": ""Click"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""8d66d5ba-88d7-48e6-b1cd-198bbfef7ace"",
- ""path"": ""<Pen>/tip"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": "";Keyboard&Mouse"",
- ""action"": ""Click"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""47c2a644-3ebc-4dae-a106-589b7ca75b59"",
- ""path"": ""<Touchscreen>/touch*/press"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Touch"",
- ""action"": ""Click"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""bb9e6b34-44bf-4381-ac63-5aa15d19f677"",
- ""path"": ""<XRController>/trigger"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""XR"",
- ""action"": ""Click"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""38c99815-14ea-4617-8627-164d27641299"",
- ""path"": ""<Mouse>/scroll"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": "";Keyboard&Mouse"",
- ""action"": ""ScrollWheel"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""24066f69-da47-44f3-a07e-0015fb02eb2e"",
- ""path"": ""<Mouse>/middleButton"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": "";Keyboard&Mouse"",
- ""action"": ""MiddleClick"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""4c191405-5738-4d4b-a523-c6a301dbf754"",
- ""path"": ""<Mouse>/rightButton"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": "";Keyboard&Mouse"",
- ""action"": ""RightClick"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""7236c0d9-6ca3-47cf-a6ee-a97f5b59ea77"",
- ""path"": ""<XRController>/devicePosition"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""XR"",
- ""action"": ""TrackedDevicePosition"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""23e01e3a-f935-4948-8d8b-9bcac77714fb"",
- ""path"": ""<XRController>/deviceRotation"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""XR"",
- ""action"": ""TrackedDeviceOrientation"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- }
- ]
- },
- {
- ""name"": ""Camera"",
- ""id"": ""38ccfd94-8b6b-4ba9-a6dc-cc48274c6e58"",
- ""actions"": [
- {
- ""name"": ""Movement"",
- ""type"": ""Value"",
- ""id"": ""724e4040-c659-4971-9a42-9596363e1198"",
- ""expectedControlType"": ""Vector2"",
- ""processors"": """",
- ""interactions"": """",
- ""initialStateCheck"": true
- }
- ],
- ""bindings"": [
- {
- ""name"": ""WASD"",
- ""id"": ""80bcd0bb-ab0a-4c55-8af0-5705edd59f67"",
- ""path"": ""2DVector"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""Movement"",
- ""isComposite"": true,
- ""isPartOfComposite"": false
- },
- {
- ""name"": ""up"",
- ""id"": ""3fd2de36-61a6-4503-aa19-59e5281d4885"",
- ""path"": ""<Keyboard>/w"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Keyboard&Mouse;Gamepad"",
- ""action"": ""Movement"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""down"",
- ""id"": ""07e8841d-735b-43db-9942-bd3012124f05"",
- ""path"": ""<Keyboard>/s"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Keyboard&Mouse"",
- ""action"": ""Movement"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""left"",
- ""id"": ""3a5661b6-28c5-4efb-96d4-527d47712051"",
- ""path"": ""<Keyboard>/a"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Keyboard&Mouse"",
- ""action"": ""Movement"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""right"",
- ""id"": ""3f941a45-a17e-469e-b2f8-d9d0bbb441e3"",
- ""path"": ""<Keyboard>/d"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Keyboard&Mouse"",
- ""action"": ""Movement"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""Arrows"",
- ""id"": ""354b043a-9b50-4d20-9f63-2a70f14b79d9"",
- ""path"": ""2DVector"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""Movement"",
- ""isComposite"": true,
- ""isPartOfComposite"": false
- },
- {
- ""name"": ""up"",
- ""id"": ""f5098d75-56a2-42f9-a100-cc2f189f6ca1"",
- ""path"": ""<Keyboard>/upArrow"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Keyboard&Mouse"",
- ""action"": ""Movement"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""down"",
- ""id"": ""b4796e3b-7894-4e6e-beac-4ad008a71bbb"",
- ""path"": ""<Keyboard>/downArrow"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Keyboard&Mouse"",
- ""action"": ""Movement"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""left"",
- ""id"": ""42e71db9-29d8-418c-81bc-ffe8c512cba5"",
- ""path"": ""<Keyboard>/leftArrow"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Keyboard&Mouse"",
- ""action"": ""Movement"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""right"",
- ""id"": ""8be68c9e-6513-4d44-b3ee-a67cc904af31"",
- ""path"": ""<Keyboard>/rightArrow"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Keyboard&Mouse"",
- ""action"": ""Movement"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- }
- ]
- }
- ],
- ""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_Fire = m_Player.FindAction("Fire", 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);
- // Camera
- m_Camera = asset.FindActionMap("Camera", throwIfNotFound: true);
- m_Camera_Movement = m_Camera.FindAction("Movement", 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);
- }
- // Player
- private readonly InputActionMap m_Player;
- private IPlayerActions m_PlayerActionsCallbackInterface;
- private readonly InputAction m_Player_Move;
- private readonly InputAction m_Player_Look;
- private readonly InputAction m_Player_Fire;
- public struct PlayerActions
- {
- private @RoomBuilder m_Wrapper;
- public PlayerActions(@RoomBuilder wrapper) { m_Wrapper = wrapper; }
- public InputAction @Move => m_Wrapper.m_Player_Move;
- public InputAction @Look => m_Wrapper.m_Player_Look;
- public InputAction @Fire => m_Wrapper.m_Player_Fire;
- 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 SetCallbacks(IPlayerActions instance)
- {
- if (m_Wrapper.m_PlayerActionsCallbackInterface != null)
- {
- @Move.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMove;
- @Move.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMove;
- @Move.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMove;
- @Look.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnLook;
- @Look.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnLook;
- @Look.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnLook;
- @Fire.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnFire;
- @Fire.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnFire;
- @Fire.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnFire;
- }
- m_Wrapper.m_PlayerActionsCallbackInterface = instance;
- if (instance != null)
- {
- @Move.started += instance.OnMove;
- @Move.performed += instance.OnMove;
- @Move.canceled += instance.OnMove;
- @Look.started += instance.OnLook;
- @Look.performed += instance.OnLook;
- @Look.canceled += instance.OnLook;
- @Fire.started += instance.OnFire;
- @Fire.performed += instance.OnFire;
- @Fire.canceled += instance.OnFire;
- }
- }
- }
- public PlayerActions @Player => new PlayerActions(this);
- // UI
- private readonly InputActionMap m_UI;
- private IUIActions m_UIActionsCallbackInterface;
- 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 @RoomBuilder m_Wrapper;
- public UIActions(@RoomBuilder 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 SetCallbacks(IUIActions instance)
- {
- if (m_Wrapper.m_UIActionsCallbackInterface != null)
- {
- @Navigate.started -= m_Wrapper.m_UIActionsCallbackInterface.OnNavigate;
- @Navigate.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnNavigate;
- @Navigate.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnNavigate;
- @Submit.started -= m_Wrapper.m_UIActionsCallbackInterface.OnSubmit;
- @Submit.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnSubmit;
- @Submit.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnSubmit;
- @Cancel.started -= m_Wrapper.m_UIActionsCallbackInterface.OnCancel;
- @Cancel.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnCancel;
- @Cancel.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnCancel;
- @Point.started -= m_Wrapper.m_UIActionsCallbackInterface.OnPoint;
- @Point.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnPoint;
- @Point.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnPoint;
- @Click.started -= m_Wrapper.m_UIActionsCallbackInterface.OnClick;
- @Click.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnClick;
- @Click.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnClick;
- @ScrollWheel.started -= m_Wrapper.m_UIActionsCallbackInterface.OnScrollWheel;
- @ScrollWheel.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnScrollWheel;
- @ScrollWheel.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnScrollWheel;
- @MiddleClick.started -= m_Wrapper.m_UIActionsCallbackInterface.OnMiddleClick;
- @MiddleClick.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnMiddleClick;
- @MiddleClick.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnMiddleClick;
- @RightClick.started -= m_Wrapper.m_UIActionsCallbackInterface.OnRightClick;
- @RightClick.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnRightClick;
- @RightClick.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnRightClick;
- @TrackedDevicePosition.started -= m_Wrapper.m_UIActionsCallbackInterface.OnTrackedDevicePosition;
- @TrackedDevicePosition.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnTrackedDevicePosition;
- @TrackedDevicePosition.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnTrackedDevicePosition;
- @TrackedDeviceOrientation.started -= m_Wrapper.m_UIActionsCallbackInterface.OnTrackedDeviceOrientation;
- @TrackedDeviceOrientation.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnTrackedDeviceOrientation;
- @TrackedDeviceOrientation.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnTrackedDeviceOrientation;
- }
- m_Wrapper.m_UIActionsCallbackInterface = instance;
- if (instance != null)
- {
- @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 UIActions @UI => new UIActions(this);
- // Camera
- private readonly InputActionMap m_Camera;
- private ICameraActions m_CameraActionsCallbackInterface;
- private readonly InputAction m_Camera_Movement;
- public struct CameraActions
- {
- private @RoomBuilder m_Wrapper;
- public CameraActions(@RoomBuilder wrapper) { m_Wrapper = wrapper; }
- public InputAction @Movement => m_Wrapper.m_Camera_Movement;
- public InputActionMap Get() { return m_Wrapper.m_Camera; }
- public void Enable() { Get().Enable(); }
- public void Disable() { Get().Disable(); }
- public bool enabled => Get().enabled;
- public static implicit operator InputActionMap(CameraActions set) { return set.Get(); }
- public void SetCallbacks(ICameraActions instance)
- {
- if (m_Wrapper.m_CameraActionsCallbackInterface != null)
- {
- @Movement.started -= m_Wrapper.m_CameraActionsCallbackInterface.OnMovement;
- @Movement.performed -= m_Wrapper.m_CameraActionsCallbackInterface.OnMovement;
- @Movement.canceled -= m_Wrapper.m_CameraActionsCallbackInterface.OnMovement;
- }
- m_Wrapper.m_CameraActionsCallbackInterface = instance;
- if (instance != null)
- {
- @Movement.started += instance.OnMovement;
- @Movement.performed += instance.OnMovement;
- @Movement.canceled += instance.OnMovement;
- }
- }
- }
- public CameraActions @Camera => new CameraActions(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 OnFire(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);
- }
- public interface ICameraActions
- {
- void OnMovement(InputAction.CallbackContext context);
- }
- }
|