RoomBuilder.cs 55 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
  4. // version 1.4.3
  5. // from Assets/Input/RoomBuilder.inputactions
  6. //
  7. // Changes to this file may cause incorrect behavior and will be lost if
  8. // the code is regenerated.
  9. // </auto-generated>
  10. //------------------------------------------------------------------------------
  11. using System;
  12. using System.Collections;
  13. using System.Collections.Generic;
  14. using UnityEngine.InputSystem;
  15. using UnityEngine.InputSystem.Utilities;
  16. public partial class @RoomBuilder : IInputActionCollection2, IDisposable
  17. {
  18. public InputActionAsset asset { get; }
  19. public @RoomBuilder()
  20. {
  21. asset = InputActionAsset.FromJson(@"{
  22. ""name"": ""RoomBuilder"",
  23. ""maps"": [
  24. {
  25. ""name"": ""Player"",
  26. ""id"": ""9ce7a72b-8fbc-4e02-9989-16d8697082a8"",
  27. ""actions"": [
  28. {
  29. ""name"": ""Move"",
  30. ""type"": ""Value"",
  31. ""id"": ""2e891230-ce1d-4455-86c2-5bf397db1d53"",
  32. ""expectedControlType"": ""Vector2"",
  33. ""processors"": """",
  34. ""interactions"": """",
  35. ""initialStateCheck"": true
  36. },
  37. {
  38. ""name"": ""Look"",
  39. ""type"": ""Value"",
  40. ""id"": ""a11e5d61-d806-4288-ad8f-8719ac70fcd6"",
  41. ""expectedControlType"": ""Vector2"",
  42. ""processors"": """",
  43. ""interactions"": """",
  44. ""initialStateCheck"": true
  45. },
  46. {
  47. ""name"": ""Fire"",
  48. ""type"": ""Button"",
  49. ""id"": ""42dcdb62-23c9-465c-8372-98e5a4079de1"",
  50. ""expectedControlType"": ""Button"",
  51. ""processors"": """",
  52. ""interactions"": """",
  53. ""initialStateCheck"": false
  54. }
  55. ],
  56. ""bindings"": [
  57. {
  58. ""name"": """",
  59. ""id"": ""978bfe49-cc26-4a3d-ab7b-7d7a29327403"",
  60. ""path"": ""<Gamepad>/leftStick"",
  61. ""interactions"": """",
  62. ""processors"": """",
  63. ""groups"": "";Gamepad"",
  64. ""action"": ""Move"",
  65. ""isComposite"": false,
  66. ""isPartOfComposite"": false
  67. },
  68. {
  69. ""name"": ""WASD"",
  70. ""id"": ""00ca640b-d935-4593-8157-c05846ea39b3"",
  71. ""path"": ""Dpad"",
  72. ""interactions"": """",
  73. ""processors"": """",
  74. ""groups"": """",
  75. ""action"": ""Move"",
  76. ""isComposite"": true,
  77. ""isPartOfComposite"": false
  78. },
  79. {
  80. ""name"": ""up"",
  81. ""id"": ""e2062cb9-1b15-46a2-838c-2f8d72a0bdd9"",
  82. ""path"": ""<Keyboard>/w"",
  83. ""interactions"": """",
  84. ""processors"": """",
  85. ""groups"": "";Keyboard&Mouse"",
  86. ""action"": ""Move"",
  87. ""isComposite"": false,
  88. ""isPartOfComposite"": true
  89. },
  90. {
  91. ""name"": ""up"",
  92. ""id"": ""8180e8bd-4097-4f4e-ab88-4523101a6ce9"",
  93. ""path"": ""<Keyboard>/upArrow"",
  94. ""interactions"": """",
  95. ""processors"": """",
  96. ""groups"": "";Keyboard&Mouse"",
  97. ""action"": ""Move"",
  98. ""isComposite"": false,
  99. ""isPartOfComposite"": true
  100. },
  101. {
  102. ""name"": ""down"",
  103. ""id"": ""320bffee-a40b-4347-ac70-c210eb8bc73a"",
  104. ""path"": ""<Keyboard>/s"",
  105. ""interactions"": """",
  106. ""processors"": """",
  107. ""groups"": "";Keyboard&Mouse"",
  108. ""action"": ""Move"",
  109. ""isComposite"": false,
  110. ""isPartOfComposite"": true
  111. },
  112. {
  113. ""name"": ""down"",
  114. ""id"": ""1c5327b5-f71c-4f60-99c7-4e737386f1d1"",
  115. ""path"": ""<Keyboard>/downArrow"",
  116. ""interactions"": """",
  117. ""processors"": """",
  118. ""groups"": "";Keyboard&Mouse"",
  119. ""action"": ""Move"",
  120. ""isComposite"": false,
  121. ""isPartOfComposite"": true
  122. },
  123. {
  124. ""name"": ""left"",
  125. ""id"": ""d2581a9b-1d11-4566-b27d-b92aff5fabbc"",
  126. ""path"": ""<Keyboard>/a"",
  127. ""interactions"": """",
  128. ""processors"": """",
  129. ""groups"": "";Keyboard&Mouse"",
  130. ""action"": ""Move"",
  131. ""isComposite"": false,
  132. ""isPartOfComposite"": true
  133. },
  134. {
  135. ""name"": ""left"",
  136. ""id"": ""2e46982e-44cc-431b-9f0b-c11910bf467a"",
  137. ""path"": ""<Keyboard>/leftArrow"",
  138. ""interactions"": """",
  139. ""processors"": """",
  140. ""groups"": "";Keyboard&Mouse"",
  141. ""action"": ""Move"",
  142. ""isComposite"": false,
  143. ""isPartOfComposite"": true
  144. },
  145. {
  146. ""name"": ""right"",
  147. ""id"": ""fcfe95b8-67b9-4526-84b5-5d0bc98d6400"",
  148. ""path"": ""<Keyboard>/d"",
  149. ""interactions"": """",
  150. ""processors"": """",
  151. ""groups"": "";Keyboard&Mouse"",
  152. ""action"": ""Move"",
  153. ""isComposite"": false,
  154. ""isPartOfComposite"": true
  155. },
  156. {
  157. ""name"": ""right"",
  158. ""id"": ""77bff152-3580-4b21-b6de-dcd0c7e41164"",
  159. ""path"": ""<Keyboard>/rightArrow"",
  160. ""interactions"": """",
  161. ""processors"": """",
  162. ""groups"": "";Keyboard&Mouse"",
  163. ""action"": ""Move"",
  164. ""isComposite"": false,
  165. ""isPartOfComposite"": true
  166. },
  167. {
  168. ""name"": """",
  169. ""id"": ""1635d3fe-58b6-4ba9-a4e2-f4b964f6b5c8"",
  170. ""path"": ""<XRController>/{Primary2DAxis}"",
  171. ""interactions"": """",
  172. ""processors"": """",
  173. ""groups"": ""XR"",
  174. ""action"": ""Move"",
  175. ""isComposite"": false,
  176. ""isPartOfComposite"": false
  177. },
  178. {
  179. ""name"": """",
  180. ""id"": ""3ea4d645-4504-4529-b061-ab81934c3752"",
  181. ""path"": ""<Joystick>/stick"",
  182. ""interactions"": """",
  183. ""processors"": """",
  184. ""groups"": ""Joystick"",
  185. ""action"": ""Move"",
  186. ""isComposite"": false,
  187. ""isPartOfComposite"": false
  188. },
  189. {
  190. ""name"": """",
  191. ""id"": ""c1f7a91b-d0fd-4a62-997e-7fb9b69bf235"",
  192. ""path"": ""<Gamepad>/rightStick"",
  193. ""interactions"": """",
  194. ""processors"": """",
  195. ""groups"": "";Gamepad"",
  196. ""action"": ""Look"",
  197. ""isComposite"": false,
  198. ""isPartOfComposite"": false
  199. },
  200. {
  201. ""name"": """",
  202. ""id"": ""8c8e490b-c610-4785-884f-f04217b23ca4"",
  203. ""path"": ""<Pointer>/delta"",
  204. ""interactions"": """",
  205. ""processors"": """",
  206. ""groups"": "";Keyboard&Mouse;Touch"",
  207. ""action"": ""Look"",
  208. ""isComposite"": false,
  209. ""isPartOfComposite"": false
  210. },
  211. {
  212. ""name"": """",
  213. ""id"": ""3e5f5442-8668-4b27-a940-df99bad7e831"",
  214. ""path"": ""<Joystick>/{Hatswitch}"",
  215. ""interactions"": """",
  216. ""processors"": """",
  217. ""groups"": ""Joystick"",
  218. ""action"": ""Look"",
  219. ""isComposite"": false,
  220. ""isPartOfComposite"": false
  221. },
  222. {
  223. ""name"": """",
  224. ""id"": ""143bb1cd-cc10-4eca-a2f0-a3664166fe91"",
  225. ""path"": ""<Gamepad>/rightTrigger"",
  226. ""interactions"": """",
  227. ""processors"": """",
  228. ""groups"": "";Gamepad"",
  229. ""action"": ""Fire"",
  230. ""isComposite"": false,
  231. ""isPartOfComposite"": false
  232. },
  233. {
  234. ""name"": """",
  235. ""id"": ""05f6913d-c316-48b2-a6bb-e225f14c7960"",
  236. ""path"": ""<Mouse>/leftButton"",
  237. ""interactions"": """",
  238. ""processors"": """",
  239. ""groups"": "";Keyboard&Mouse"",
  240. ""action"": ""Fire"",
  241. ""isComposite"": false,
  242. ""isPartOfComposite"": false
  243. },
  244. {
  245. ""name"": """",
  246. ""id"": ""886e731e-7071-4ae4-95c0-e61739dad6fd"",
  247. ""path"": ""<Touchscreen>/primaryTouch/tap"",
  248. ""interactions"": """",
  249. ""processors"": """",
  250. ""groups"": "";Touch"",
  251. ""action"": ""Fire"",
  252. ""isComposite"": false,
  253. ""isPartOfComposite"": false
  254. },
  255. {
  256. ""name"": """",
  257. ""id"": ""ee3d0cd2-254e-47a7-a8cb-bc94d9658c54"",
  258. ""path"": ""<Joystick>/trigger"",
  259. ""interactions"": """",
  260. ""processors"": """",
  261. ""groups"": ""Joystick"",
  262. ""action"": ""Fire"",
  263. ""isComposite"": false,
  264. ""isPartOfComposite"": false
  265. },
  266. {
  267. ""name"": """",
  268. ""id"": ""8255d333-5683-4943-a58a-ccb207ff1dce"",
  269. ""path"": ""<XRController>/{PrimaryAction}"",
  270. ""interactions"": """",
  271. ""processors"": """",
  272. ""groups"": ""XR"",
  273. ""action"": ""Fire"",
  274. ""isComposite"": false,
  275. ""isPartOfComposite"": false
  276. }
  277. ]
  278. },
  279. {
  280. ""name"": ""UI"",
  281. ""id"": ""46da50db-8aaa-4b77-94b4-d12d4aa9dac7"",
  282. ""actions"": [
  283. {
  284. ""name"": ""Navigate"",
  285. ""type"": ""PassThrough"",
  286. ""id"": ""b7e80eb0-96c1-41a5-a1da-aa15aa17f5e5"",
  287. ""expectedControlType"": ""Vector2"",
  288. ""processors"": """",
  289. ""interactions"": """",
  290. ""initialStateCheck"": false
  291. },
  292. {
  293. ""name"": ""Submit"",
  294. ""type"": ""Button"",
  295. ""id"": ""dfa2d8bf-ad2a-4e31-b131-22c26561e4d4"",
  296. ""expectedControlType"": ""Button"",
  297. ""processors"": """",
  298. ""interactions"": """",
  299. ""initialStateCheck"": false
  300. },
  301. {
  302. ""name"": ""Cancel"",
  303. ""type"": ""Button"",
  304. ""id"": ""e394e929-a784-4b90-a1b1-c6674ee3e9b1"",
  305. ""expectedControlType"": ""Button"",
  306. ""processors"": """",
  307. ""interactions"": """",
  308. ""initialStateCheck"": false
  309. },
  310. {
  311. ""name"": ""Point"",
  312. ""type"": ""PassThrough"",
  313. ""id"": ""e87908bf-3a84-489a-9db3-1a4dbbbd85f0"",
  314. ""expectedControlType"": ""Vector2"",
  315. ""processors"": """",
  316. ""interactions"": """",
  317. ""initialStateCheck"": true
  318. },
  319. {
  320. ""name"": ""Click"",
  321. ""type"": ""PassThrough"",
  322. ""id"": ""830b02bb-4112-4739-af82-113a49fe2238"",
  323. ""expectedControlType"": ""Button"",
  324. ""processors"": """",
  325. ""interactions"": """",
  326. ""initialStateCheck"": true
  327. },
  328. {
  329. ""name"": ""ScrollWheel"",
  330. ""type"": ""PassThrough"",
  331. ""id"": ""7568c44a-06a2-48ca-ae8f-ccdd2240df49"",
  332. ""expectedControlType"": ""Vector2"",
  333. ""processors"": """",
  334. ""interactions"": """",
  335. ""initialStateCheck"": false
  336. },
  337. {
  338. ""name"": ""MiddleClick"",
  339. ""type"": ""PassThrough"",
  340. ""id"": ""4fb5ed1e-e60a-4e72-8996-90dd3e3ad88f"",
  341. ""expectedControlType"": ""Button"",
  342. ""processors"": """",
  343. ""interactions"": """",
  344. ""initialStateCheck"": false
  345. },
  346. {
  347. ""name"": ""RightClick"",
  348. ""type"": ""PassThrough"",
  349. ""id"": ""44c1b591-0ccb-4e18-9648-1b2dedc59618"",
  350. ""expectedControlType"": ""Button"",
  351. ""processors"": """",
  352. ""interactions"": """",
  353. ""initialStateCheck"": false
  354. },
  355. {
  356. ""name"": ""TrackedDevicePosition"",
  357. ""type"": ""PassThrough"",
  358. ""id"": ""50bc7630-f893-4231-827f-9098e7971d9c"",
  359. ""expectedControlType"": ""Vector3"",
  360. ""processors"": """",
  361. ""interactions"": """",
  362. ""initialStateCheck"": false
  363. },
  364. {
  365. ""name"": ""TrackedDeviceOrientation"",
  366. ""type"": ""PassThrough"",
  367. ""id"": ""2034f2fe-9ca2-492b-a5e6-86e78fdafa86"",
  368. ""expectedControlType"": ""Quaternion"",
  369. ""processors"": """",
  370. ""interactions"": """",
  371. ""initialStateCheck"": false
  372. }
  373. ],
  374. ""bindings"": [
  375. {
  376. ""name"": ""Gamepad"",
  377. ""id"": ""809f371f-c5e2-4e7a-83a1-d867598f40dd"",
  378. ""path"": ""2DVector"",
  379. ""interactions"": """",
  380. ""processors"": """",
  381. ""groups"": """",
  382. ""action"": ""Navigate"",
  383. ""isComposite"": true,
  384. ""isPartOfComposite"": false
  385. },
  386. {
  387. ""name"": ""up"",
  388. ""id"": ""14a5d6e8-4aaf-4119-a9ef-34b8c2c548bf"",
  389. ""path"": ""<Gamepad>/leftStick/up"",
  390. ""interactions"": """",
  391. ""processors"": """",
  392. ""groups"": "";Gamepad"",
  393. ""action"": ""Navigate"",
  394. ""isComposite"": false,
  395. ""isPartOfComposite"": true
  396. },
  397. {
  398. ""name"": ""up"",
  399. ""id"": ""9144cbe6-05e1-4687-a6d7-24f99d23dd81"",
  400. ""path"": ""<Gamepad>/rightStick/up"",
  401. ""interactions"": """",
  402. ""processors"": """",
  403. ""groups"": "";Gamepad"",
  404. ""action"": ""Navigate"",
  405. ""isComposite"": false,
  406. ""isPartOfComposite"": true
  407. },
  408. {
  409. ""name"": ""down"",
  410. ""id"": ""2db08d65-c5fb-421b-983f-c71163608d67"",
  411. ""path"": ""<Gamepad>/leftStick/down"",
  412. ""interactions"": """",
  413. ""processors"": """",
  414. ""groups"": "";Gamepad"",
  415. ""action"": ""Navigate"",
  416. ""isComposite"": false,
  417. ""isPartOfComposite"": true
  418. },
  419. {
  420. ""name"": ""down"",
  421. ""id"": ""58748904-2ea9-4a80-8579-b500e6a76df8"",
  422. ""path"": ""<Gamepad>/rightStick/down"",
  423. ""interactions"": """",
  424. ""processors"": """",
  425. ""groups"": "";Gamepad"",
  426. ""action"": ""Navigate"",
  427. ""isComposite"": false,
  428. ""isPartOfComposite"": true
  429. },
  430. {
  431. ""name"": ""left"",
  432. ""id"": ""8ba04515-75aa-45de-966d-393d9bbd1c14"",
  433. ""path"": ""<Gamepad>/leftStick/left"",
  434. ""interactions"": """",
  435. ""processors"": """",
  436. ""groups"": "";Gamepad"",
  437. ""action"": ""Navigate"",
  438. ""isComposite"": false,
  439. ""isPartOfComposite"": true
  440. },
  441. {
  442. ""name"": ""left"",
  443. ""id"": ""712e721c-bdfb-4b23-a86c-a0d9fcfea921"",
  444. ""path"": ""<Gamepad>/rightStick/left"",
  445. ""interactions"": """",
  446. ""processors"": """",
  447. ""groups"": "";Gamepad"",
  448. ""action"": ""Navigate"",
  449. ""isComposite"": false,
  450. ""isPartOfComposite"": true
  451. },
  452. {
  453. ""name"": ""right"",
  454. ""id"": ""fcd248ae-a788-4676-a12e-f4d81205600b"",
  455. ""path"": ""<Gamepad>/leftStick/right"",
  456. ""interactions"": """",
  457. ""processors"": """",
  458. ""groups"": "";Gamepad"",
  459. ""action"": ""Navigate"",
  460. ""isComposite"": false,
  461. ""isPartOfComposite"": true
  462. },
  463. {
  464. ""name"": ""right"",
  465. ""id"": ""1f04d9bc-c50b-41a1-bfcc-afb75475ec20"",
  466. ""path"": ""<Gamepad>/rightStick/right"",
  467. ""interactions"": """",
  468. ""processors"": """",
  469. ""groups"": "";Gamepad"",
  470. ""action"": ""Navigate"",
  471. ""isComposite"": false,
  472. ""isPartOfComposite"": true
  473. },
  474. {
  475. ""name"": """",
  476. ""id"": ""fb8277d4-c5cd-4663-9dc7-ee3f0b506d90"",
  477. ""path"": ""<Gamepad>/dpad"",
  478. ""interactions"": """",
  479. ""processors"": """",
  480. ""groups"": "";Gamepad"",
  481. ""action"": ""Navigate"",
  482. ""isComposite"": false,
  483. ""isPartOfComposite"": false
  484. },
  485. {
  486. ""name"": ""Joystick"",
  487. ""id"": ""e25d9774-381c-4a61-b47c-7b6b299ad9f9"",
  488. ""path"": ""2DVector"",
  489. ""interactions"": """",
  490. ""processors"": """",
  491. ""groups"": """",
  492. ""action"": ""Navigate"",
  493. ""isComposite"": true,
  494. ""isPartOfComposite"": false
  495. },
  496. {
  497. ""name"": ""up"",
  498. ""id"": ""3db53b26-6601-41be-9887-63ac74e79d19"",
  499. ""path"": ""<Joystick>/stick/up"",
  500. ""interactions"": """",
  501. ""processors"": """",
  502. ""groups"": ""Joystick"",
  503. ""action"": ""Navigate"",
  504. ""isComposite"": false,
  505. ""isPartOfComposite"": true
  506. },
  507. {
  508. ""name"": ""down"",
  509. ""id"": ""0cb3e13e-3d90-4178-8ae6-d9c5501d653f"",
  510. ""path"": ""<Joystick>/stick/down"",
  511. ""interactions"": """",
  512. ""processors"": """",
  513. ""groups"": ""Joystick"",
  514. ""action"": ""Navigate"",
  515. ""isComposite"": false,
  516. ""isPartOfComposite"": true
  517. },
  518. {
  519. ""name"": ""left"",
  520. ""id"": ""0392d399-f6dd-4c82-8062-c1e9c0d34835"",
  521. ""path"": ""<Joystick>/stick/left"",
  522. ""interactions"": """",
  523. ""processors"": """",
  524. ""groups"": ""Joystick"",
  525. ""action"": ""Navigate"",
  526. ""isComposite"": false,
  527. ""isPartOfComposite"": true
  528. },
  529. {
  530. ""name"": ""right"",
  531. ""id"": ""942a66d9-d42f-43d6-8d70-ecb4ba5363bc"",
  532. ""path"": ""<Joystick>/stick/right"",
  533. ""interactions"": """",
  534. ""processors"": """",
  535. ""groups"": ""Joystick"",
  536. ""action"": ""Navigate"",
  537. ""isComposite"": false,
  538. ""isPartOfComposite"": true
  539. },
  540. {
  541. ""name"": ""Keyboard"",
  542. ""id"": ""ff527021-f211-4c02-933e-5976594c46ed"",
  543. ""path"": ""2DVector"",
  544. ""interactions"": """",
  545. ""processors"": """",
  546. ""groups"": """",
  547. ""action"": ""Navigate"",
  548. ""isComposite"": true,
  549. ""isPartOfComposite"": false
  550. },
  551. {
  552. ""name"": ""up"",
  553. ""id"": ""563fbfdd-0f09-408d-aa75-8642c4f08ef0"",
  554. ""path"": ""<Keyboard>/w"",
  555. ""interactions"": """",
  556. ""processors"": """",
  557. ""groups"": ""Keyboard&Mouse"",
  558. ""action"": ""Navigate"",
  559. ""isComposite"": false,
  560. ""isPartOfComposite"": true
  561. },
  562. {
  563. ""name"": ""up"",
  564. ""id"": ""eb480147-c587-4a33-85ed-eb0ab9942c43"",
  565. ""path"": ""<Keyboard>/upArrow"",
  566. ""interactions"": """",
  567. ""processors"": """",
  568. ""groups"": ""Keyboard&Mouse"",
  569. ""action"": ""Navigate"",
  570. ""isComposite"": false,
  571. ""isPartOfComposite"": true
  572. },
  573. {
  574. ""name"": ""down"",
  575. ""id"": ""2bf42165-60bc-42ca-8072-8c13ab40239b"",
  576. ""path"": ""<Keyboard>/s"",
  577. ""interactions"": """",
  578. ""processors"": """",
  579. ""groups"": ""Keyboard&Mouse"",
  580. ""action"": ""Navigate"",
  581. ""isComposite"": false,
  582. ""isPartOfComposite"": true
  583. },
  584. {
  585. ""name"": ""down"",
  586. ""id"": ""85d264ad-e0a0-4565-b7ff-1a37edde51ac"",
  587. ""path"": ""<Keyboard>/downArrow"",
  588. ""interactions"": """",
  589. ""processors"": """",
  590. ""groups"": ""Keyboard&Mouse"",
  591. ""action"": ""Navigate"",
  592. ""isComposite"": false,
  593. ""isPartOfComposite"": true
  594. },
  595. {
  596. ""name"": ""left"",
  597. ""id"": ""74214943-c580-44e4-98eb-ad7eebe17902"",
  598. ""path"": ""<Keyboard>/a"",
  599. ""interactions"": """",
  600. ""processors"": """",
  601. ""groups"": ""Keyboard&Mouse"",
  602. ""action"": ""Navigate"",
  603. ""isComposite"": false,
  604. ""isPartOfComposite"": true
  605. },
  606. {
  607. ""name"": ""left"",
  608. ""id"": ""cea9b045-a000-445b-95b8-0c171af70a3b"",
  609. ""path"": ""<Keyboard>/leftArrow"",
  610. ""interactions"": """",
  611. ""processors"": """",
  612. ""groups"": ""Keyboard&Mouse"",
  613. ""action"": ""Navigate"",
  614. ""isComposite"": false,
  615. ""isPartOfComposite"": true
  616. },
  617. {
  618. ""name"": ""right"",
  619. ""id"": ""8607c725-d935-4808-84b1-8354e29bab63"",
  620. ""path"": ""<Keyboard>/d"",
  621. ""interactions"": """",
  622. ""processors"": """",
  623. ""groups"": ""Keyboard&Mouse"",
  624. ""action"": ""Navigate"",
  625. ""isComposite"": false,
  626. ""isPartOfComposite"": true
  627. },
  628. {
  629. ""name"": ""right"",
  630. ""id"": ""4cda81dc-9edd-4e03-9d7c-a71a14345d0b"",
  631. ""path"": ""<Keyboard>/rightArrow"",
  632. ""interactions"": """",
  633. ""processors"": """",
  634. ""groups"": ""Keyboard&Mouse"",
  635. ""action"": ""Navigate"",
  636. ""isComposite"": false,
  637. ""isPartOfComposite"": true
  638. },
  639. {
  640. ""name"": """",
  641. ""id"": ""9e92bb26-7e3b-4ec4-b06b-3c8f8e498ddc"",
  642. ""path"": ""*/{Submit}"",
  643. ""interactions"": """",
  644. ""processors"": """",
  645. ""groups"": ""Keyboard&Mouse;Gamepad;Touch;Joystick;XR"",
  646. ""action"": ""Submit"",
  647. ""isComposite"": false,
  648. ""isPartOfComposite"": false
  649. },
  650. {
  651. ""name"": """",
  652. ""id"": ""82627dcc-3b13-4ba9-841d-e4b746d6553e"",
  653. ""path"": ""*/{Cancel}"",
  654. ""interactions"": """",
  655. ""processors"": """",
  656. ""groups"": ""Keyboard&Mouse;Gamepad;Touch;Joystick;XR"",
  657. ""action"": ""Cancel"",
  658. ""isComposite"": false,
  659. ""isPartOfComposite"": false
  660. },
  661. {
  662. ""name"": """",
  663. ""id"": ""c52c8e0b-8179-41d3-b8a1-d149033bbe86"",
  664. ""path"": ""<Mouse>/position"",
  665. ""interactions"": """",
  666. ""processors"": """",
  667. ""groups"": ""Keyboard&Mouse"",
  668. ""action"": ""Point"",
  669. ""isComposite"": false,
  670. ""isPartOfComposite"": false
  671. },
  672. {
  673. ""name"": """",
  674. ""id"": ""e1394cbc-336e-44ce-9ea8-6007ed6193f7"",
  675. ""path"": ""<Pen>/position"",
  676. ""interactions"": """",
  677. ""processors"": """",
  678. ""groups"": ""Keyboard&Mouse"",
  679. ""action"": ""Point"",
  680. ""isComposite"": false,
  681. ""isPartOfComposite"": false
  682. },
  683. {
  684. ""name"": """",
  685. ""id"": ""5693e57a-238a-46ed-b5ae-e64e6e574302"",
  686. ""path"": ""<Touchscreen>/touch*/position"",
  687. ""interactions"": """",
  688. ""processors"": """",
  689. ""groups"": ""Touch"",
  690. ""action"": ""Point"",
  691. ""isComposite"": false,
  692. ""isPartOfComposite"": false
  693. },
  694. {
  695. ""name"": """",
  696. ""id"": ""4faf7dc9-b979-4210-aa8c-e808e1ef89f5"",
  697. ""path"": ""<Mouse>/leftButton"",
  698. ""interactions"": """",
  699. ""processors"": """",
  700. ""groups"": "";Keyboard&Mouse"",
  701. ""action"": ""Click"",
  702. ""isComposite"": false,
  703. ""isPartOfComposite"": false
  704. },
  705. {
  706. ""name"": """",
  707. ""id"": ""8d66d5ba-88d7-48e6-b1cd-198bbfef7ace"",
  708. ""path"": ""<Pen>/tip"",
  709. ""interactions"": """",
  710. ""processors"": """",
  711. ""groups"": "";Keyboard&Mouse"",
  712. ""action"": ""Click"",
  713. ""isComposite"": false,
  714. ""isPartOfComposite"": false
  715. },
  716. {
  717. ""name"": """",
  718. ""id"": ""47c2a644-3ebc-4dae-a106-589b7ca75b59"",
  719. ""path"": ""<Touchscreen>/touch*/press"",
  720. ""interactions"": """",
  721. ""processors"": """",
  722. ""groups"": ""Touch"",
  723. ""action"": ""Click"",
  724. ""isComposite"": false,
  725. ""isPartOfComposite"": false
  726. },
  727. {
  728. ""name"": """",
  729. ""id"": ""bb9e6b34-44bf-4381-ac63-5aa15d19f677"",
  730. ""path"": ""<XRController>/trigger"",
  731. ""interactions"": """",
  732. ""processors"": """",
  733. ""groups"": ""XR"",
  734. ""action"": ""Click"",
  735. ""isComposite"": false,
  736. ""isPartOfComposite"": false
  737. },
  738. {
  739. ""name"": """",
  740. ""id"": ""38c99815-14ea-4617-8627-164d27641299"",
  741. ""path"": ""<Mouse>/scroll"",
  742. ""interactions"": """",
  743. ""processors"": """",
  744. ""groups"": "";Keyboard&Mouse"",
  745. ""action"": ""ScrollWheel"",
  746. ""isComposite"": false,
  747. ""isPartOfComposite"": false
  748. },
  749. {
  750. ""name"": """",
  751. ""id"": ""24066f69-da47-44f3-a07e-0015fb02eb2e"",
  752. ""path"": ""<Mouse>/middleButton"",
  753. ""interactions"": """",
  754. ""processors"": """",
  755. ""groups"": "";Keyboard&Mouse"",
  756. ""action"": ""MiddleClick"",
  757. ""isComposite"": false,
  758. ""isPartOfComposite"": false
  759. },
  760. {
  761. ""name"": """",
  762. ""id"": ""4c191405-5738-4d4b-a523-c6a301dbf754"",
  763. ""path"": ""<Mouse>/rightButton"",
  764. ""interactions"": """",
  765. ""processors"": """",
  766. ""groups"": "";Keyboard&Mouse"",
  767. ""action"": ""RightClick"",
  768. ""isComposite"": false,
  769. ""isPartOfComposite"": false
  770. },
  771. {
  772. ""name"": """",
  773. ""id"": ""7236c0d9-6ca3-47cf-a6ee-a97f5b59ea77"",
  774. ""path"": ""<XRController>/devicePosition"",
  775. ""interactions"": """",
  776. ""processors"": """",
  777. ""groups"": ""XR"",
  778. ""action"": ""TrackedDevicePosition"",
  779. ""isComposite"": false,
  780. ""isPartOfComposite"": false
  781. },
  782. {
  783. ""name"": """",
  784. ""id"": ""23e01e3a-f935-4948-8d8b-9bcac77714fb"",
  785. ""path"": ""<XRController>/deviceRotation"",
  786. ""interactions"": """",
  787. ""processors"": """",
  788. ""groups"": ""XR"",
  789. ""action"": ""TrackedDeviceOrientation"",
  790. ""isComposite"": false,
  791. ""isPartOfComposite"": false
  792. }
  793. ]
  794. },
  795. {
  796. ""name"": ""Camera"",
  797. ""id"": ""38ccfd94-8b6b-4ba9-a6dc-cc48274c6e58"",
  798. ""actions"": [
  799. {
  800. ""name"": ""Movement"",
  801. ""type"": ""Value"",
  802. ""id"": ""724e4040-c659-4971-9a42-9596363e1198"",
  803. ""expectedControlType"": ""Vector2"",
  804. ""processors"": """",
  805. ""interactions"": """",
  806. ""initialStateCheck"": true
  807. }
  808. ],
  809. ""bindings"": [
  810. {
  811. ""name"": ""WASD"",
  812. ""id"": ""80bcd0bb-ab0a-4c55-8af0-5705edd59f67"",
  813. ""path"": ""2DVector"",
  814. ""interactions"": """",
  815. ""processors"": """",
  816. ""groups"": """",
  817. ""action"": ""Movement"",
  818. ""isComposite"": true,
  819. ""isPartOfComposite"": false
  820. },
  821. {
  822. ""name"": ""up"",
  823. ""id"": ""3fd2de36-61a6-4503-aa19-59e5281d4885"",
  824. ""path"": ""<Keyboard>/w"",
  825. ""interactions"": """",
  826. ""processors"": """",
  827. ""groups"": ""Keyboard&Mouse;Gamepad"",
  828. ""action"": ""Movement"",
  829. ""isComposite"": false,
  830. ""isPartOfComposite"": true
  831. },
  832. {
  833. ""name"": ""down"",
  834. ""id"": ""07e8841d-735b-43db-9942-bd3012124f05"",
  835. ""path"": ""<Keyboard>/s"",
  836. ""interactions"": """",
  837. ""processors"": """",
  838. ""groups"": ""Keyboard&Mouse"",
  839. ""action"": ""Movement"",
  840. ""isComposite"": false,
  841. ""isPartOfComposite"": true
  842. },
  843. {
  844. ""name"": ""left"",
  845. ""id"": ""3a5661b6-28c5-4efb-96d4-527d47712051"",
  846. ""path"": ""<Keyboard>/a"",
  847. ""interactions"": """",
  848. ""processors"": """",
  849. ""groups"": ""Keyboard&Mouse"",
  850. ""action"": ""Movement"",
  851. ""isComposite"": false,
  852. ""isPartOfComposite"": true
  853. },
  854. {
  855. ""name"": ""right"",
  856. ""id"": ""3f941a45-a17e-469e-b2f8-d9d0bbb441e3"",
  857. ""path"": ""<Keyboard>/d"",
  858. ""interactions"": """",
  859. ""processors"": """",
  860. ""groups"": ""Keyboard&Mouse"",
  861. ""action"": ""Movement"",
  862. ""isComposite"": false,
  863. ""isPartOfComposite"": true
  864. },
  865. {
  866. ""name"": ""Arrows"",
  867. ""id"": ""354b043a-9b50-4d20-9f63-2a70f14b79d9"",
  868. ""path"": ""2DVector"",
  869. ""interactions"": """",
  870. ""processors"": """",
  871. ""groups"": """",
  872. ""action"": ""Movement"",
  873. ""isComposite"": true,
  874. ""isPartOfComposite"": false
  875. },
  876. {
  877. ""name"": ""up"",
  878. ""id"": ""f5098d75-56a2-42f9-a100-cc2f189f6ca1"",
  879. ""path"": ""<Keyboard>/upArrow"",
  880. ""interactions"": """",
  881. ""processors"": """",
  882. ""groups"": ""Keyboard&Mouse"",
  883. ""action"": ""Movement"",
  884. ""isComposite"": false,
  885. ""isPartOfComposite"": true
  886. },
  887. {
  888. ""name"": ""down"",
  889. ""id"": ""b4796e3b-7894-4e6e-beac-4ad008a71bbb"",
  890. ""path"": ""<Keyboard>/downArrow"",
  891. ""interactions"": """",
  892. ""processors"": """",
  893. ""groups"": ""Keyboard&Mouse"",
  894. ""action"": ""Movement"",
  895. ""isComposite"": false,
  896. ""isPartOfComposite"": true
  897. },
  898. {
  899. ""name"": ""left"",
  900. ""id"": ""42e71db9-29d8-418c-81bc-ffe8c512cba5"",
  901. ""path"": ""<Keyboard>/leftArrow"",
  902. ""interactions"": """",
  903. ""processors"": """",
  904. ""groups"": ""Keyboard&Mouse"",
  905. ""action"": ""Movement"",
  906. ""isComposite"": false,
  907. ""isPartOfComposite"": true
  908. },
  909. {
  910. ""name"": ""right"",
  911. ""id"": ""8be68c9e-6513-4d44-b3ee-a67cc904af31"",
  912. ""path"": ""<Keyboard>/rightArrow"",
  913. ""interactions"": """",
  914. ""processors"": """",
  915. ""groups"": ""Keyboard&Mouse"",
  916. ""action"": ""Movement"",
  917. ""isComposite"": false,
  918. ""isPartOfComposite"": true
  919. }
  920. ]
  921. }
  922. ],
  923. ""controlSchemes"": [
  924. {
  925. ""name"": ""Keyboard&Mouse"",
  926. ""bindingGroup"": ""Keyboard&Mouse"",
  927. ""devices"": [
  928. {
  929. ""devicePath"": ""<Keyboard>"",
  930. ""isOptional"": false,
  931. ""isOR"": false
  932. },
  933. {
  934. ""devicePath"": ""<Mouse>"",
  935. ""isOptional"": false,
  936. ""isOR"": false
  937. }
  938. ]
  939. },
  940. {
  941. ""name"": ""Gamepad"",
  942. ""bindingGroup"": ""Gamepad"",
  943. ""devices"": [
  944. {
  945. ""devicePath"": ""<Gamepad>"",
  946. ""isOptional"": false,
  947. ""isOR"": false
  948. }
  949. ]
  950. },
  951. {
  952. ""name"": ""Touch"",
  953. ""bindingGroup"": ""Touch"",
  954. ""devices"": [
  955. {
  956. ""devicePath"": ""<Touchscreen>"",
  957. ""isOptional"": false,
  958. ""isOR"": false
  959. }
  960. ]
  961. },
  962. {
  963. ""name"": ""Joystick"",
  964. ""bindingGroup"": ""Joystick"",
  965. ""devices"": [
  966. {
  967. ""devicePath"": ""<Joystick>"",
  968. ""isOptional"": false,
  969. ""isOR"": false
  970. }
  971. ]
  972. },
  973. {
  974. ""name"": ""XR"",
  975. ""bindingGroup"": ""XR"",
  976. ""devices"": [
  977. {
  978. ""devicePath"": ""<XRController>"",
  979. ""isOptional"": false,
  980. ""isOR"": false
  981. }
  982. ]
  983. }
  984. ]
  985. }");
  986. // Player
  987. m_Player = asset.FindActionMap("Player", throwIfNotFound: true);
  988. m_Player_Move = m_Player.FindAction("Move", throwIfNotFound: true);
  989. m_Player_Look = m_Player.FindAction("Look", throwIfNotFound: true);
  990. m_Player_Fire = m_Player.FindAction("Fire", throwIfNotFound: true);
  991. // UI
  992. m_UI = asset.FindActionMap("UI", throwIfNotFound: true);
  993. m_UI_Navigate = m_UI.FindAction("Navigate", throwIfNotFound: true);
  994. m_UI_Submit = m_UI.FindAction("Submit", throwIfNotFound: true);
  995. m_UI_Cancel = m_UI.FindAction("Cancel", throwIfNotFound: true);
  996. m_UI_Point = m_UI.FindAction("Point", throwIfNotFound: true);
  997. m_UI_Click = m_UI.FindAction("Click", throwIfNotFound: true);
  998. m_UI_ScrollWheel = m_UI.FindAction("ScrollWheel", throwIfNotFound: true);
  999. m_UI_MiddleClick = m_UI.FindAction("MiddleClick", throwIfNotFound: true);
  1000. m_UI_RightClick = m_UI.FindAction("RightClick", throwIfNotFound: true);
  1001. m_UI_TrackedDevicePosition = m_UI.FindAction("TrackedDevicePosition", throwIfNotFound: true);
  1002. m_UI_TrackedDeviceOrientation = m_UI.FindAction("TrackedDeviceOrientation", throwIfNotFound: true);
  1003. // Camera
  1004. m_Camera = asset.FindActionMap("Camera", throwIfNotFound: true);
  1005. m_Camera_Movement = m_Camera.FindAction("Movement", throwIfNotFound: true);
  1006. }
  1007. public void Dispose()
  1008. {
  1009. UnityEngine.Object.Destroy(asset);
  1010. }
  1011. public InputBinding? bindingMask
  1012. {
  1013. get => asset.bindingMask;
  1014. set => asset.bindingMask = value;
  1015. }
  1016. public ReadOnlyArray<InputDevice>? devices
  1017. {
  1018. get => asset.devices;
  1019. set => asset.devices = value;
  1020. }
  1021. public ReadOnlyArray<InputControlScheme> controlSchemes => asset.controlSchemes;
  1022. public bool Contains(InputAction action)
  1023. {
  1024. return asset.Contains(action);
  1025. }
  1026. public IEnumerator<InputAction> GetEnumerator()
  1027. {
  1028. return asset.GetEnumerator();
  1029. }
  1030. IEnumerator IEnumerable.GetEnumerator()
  1031. {
  1032. return GetEnumerator();
  1033. }
  1034. public void Enable()
  1035. {
  1036. asset.Enable();
  1037. }
  1038. public void Disable()
  1039. {
  1040. asset.Disable();
  1041. }
  1042. public IEnumerable<InputBinding> bindings => asset.bindings;
  1043. public InputAction FindAction(string actionNameOrId, bool throwIfNotFound = false)
  1044. {
  1045. return asset.FindAction(actionNameOrId, throwIfNotFound);
  1046. }
  1047. public int FindBinding(InputBinding bindingMask, out InputAction action)
  1048. {
  1049. return asset.FindBinding(bindingMask, out action);
  1050. }
  1051. // Player
  1052. private readonly InputActionMap m_Player;
  1053. private IPlayerActions m_PlayerActionsCallbackInterface;
  1054. private readonly InputAction m_Player_Move;
  1055. private readonly InputAction m_Player_Look;
  1056. private readonly InputAction m_Player_Fire;
  1057. public struct PlayerActions
  1058. {
  1059. private @RoomBuilder m_Wrapper;
  1060. public PlayerActions(@RoomBuilder wrapper) { m_Wrapper = wrapper; }
  1061. public InputAction @Move => m_Wrapper.m_Player_Move;
  1062. public InputAction @Look => m_Wrapper.m_Player_Look;
  1063. public InputAction @Fire => m_Wrapper.m_Player_Fire;
  1064. public InputActionMap Get() { return m_Wrapper.m_Player; }
  1065. public void Enable() { Get().Enable(); }
  1066. public void Disable() { Get().Disable(); }
  1067. public bool enabled => Get().enabled;
  1068. public static implicit operator InputActionMap(PlayerActions set) { return set.Get(); }
  1069. public void SetCallbacks(IPlayerActions instance)
  1070. {
  1071. if (m_Wrapper.m_PlayerActionsCallbackInterface != null)
  1072. {
  1073. @Move.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMove;
  1074. @Move.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMove;
  1075. @Move.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMove;
  1076. @Look.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnLook;
  1077. @Look.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnLook;
  1078. @Look.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnLook;
  1079. @Fire.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnFire;
  1080. @Fire.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnFire;
  1081. @Fire.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnFire;
  1082. }
  1083. m_Wrapper.m_PlayerActionsCallbackInterface = instance;
  1084. if (instance != null)
  1085. {
  1086. @Move.started += instance.OnMove;
  1087. @Move.performed += instance.OnMove;
  1088. @Move.canceled += instance.OnMove;
  1089. @Look.started += instance.OnLook;
  1090. @Look.performed += instance.OnLook;
  1091. @Look.canceled += instance.OnLook;
  1092. @Fire.started += instance.OnFire;
  1093. @Fire.performed += instance.OnFire;
  1094. @Fire.canceled += instance.OnFire;
  1095. }
  1096. }
  1097. }
  1098. public PlayerActions @Player => new PlayerActions(this);
  1099. // UI
  1100. private readonly InputActionMap m_UI;
  1101. private IUIActions m_UIActionsCallbackInterface;
  1102. private readonly InputAction m_UI_Navigate;
  1103. private readonly InputAction m_UI_Submit;
  1104. private readonly InputAction m_UI_Cancel;
  1105. private readonly InputAction m_UI_Point;
  1106. private readonly InputAction m_UI_Click;
  1107. private readonly InputAction m_UI_ScrollWheel;
  1108. private readonly InputAction m_UI_MiddleClick;
  1109. private readonly InputAction m_UI_RightClick;
  1110. private readonly InputAction m_UI_TrackedDevicePosition;
  1111. private readonly InputAction m_UI_TrackedDeviceOrientation;
  1112. public struct UIActions
  1113. {
  1114. private @RoomBuilder m_Wrapper;
  1115. public UIActions(@RoomBuilder wrapper) { m_Wrapper = wrapper; }
  1116. public InputAction @Navigate => m_Wrapper.m_UI_Navigate;
  1117. public InputAction @Submit => m_Wrapper.m_UI_Submit;
  1118. public InputAction @Cancel => m_Wrapper.m_UI_Cancel;
  1119. public InputAction @Point => m_Wrapper.m_UI_Point;
  1120. public InputAction @Click => m_Wrapper.m_UI_Click;
  1121. public InputAction @ScrollWheel => m_Wrapper.m_UI_ScrollWheel;
  1122. public InputAction @MiddleClick => m_Wrapper.m_UI_MiddleClick;
  1123. public InputAction @RightClick => m_Wrapper.m_UI_RightClick;
  1124. public InputAction @TrackedDevicePosition => m_Wrapper.m_UI_TrackedDevicePosition;
  1125. public InputAction @TrackedDeviceOrientation => m_Wrapper.m_UI_TrackedDeviceOrientation;
  1126. public InputActionMap Get() { return m_Wrapper.m_UI; }
  1127. public void Enable() { Get().Enable(); }
  1128. public void Disable() { Get().Disable(); }
  1129. public bool enabled => Get().enabled;
  1130. public static implicit operator InputActionMap(UIActions set) { return set.Get(); }
  1131. public void SetCallbacks(IUIActions instance)
  1132. {
  1133. if (m_Wrapper.m_UIActionsCallbackInterface != null)
  1134. {
  1135. @Navigate.started -= m_Wrapper.m_UIActionsCallbackInterface.OnNavigate;
  1136. @Navigate.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnNavigate;
  1137. @Navigate.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnNavigate;
  1138. @Submit.started -= m_Wrapper.m_UIActionsCallbackInterface.OnSubmit;
  1139. @Submit.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnSubmit;
  1140. @Submit.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnSubmit;
  1141. @Cancel.started -= m_Wrapper.m_UIActionsCallbackInterface.OnCancel;
  1142. @Cancel.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnCancel;
  1143. @Cancel.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnCancel;
  1144. @Point.started -= m_Wrapper.m_UIActionsCallbackInterface.OnPoint;
  1145. @Point.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnPoint;
  1146. @Point.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnPoint;
  1147. @Click.started -= m_Wrapper.m_UIActionsCallbackInterface.OnClick;
  1148. @Click.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnClick;
  1149. @Click.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnClick;
  1150. @ScrollWheel.started -= m_Wrapper.m_UIActionsCallbackInterface.OnScrollWheel;
  1151. @ScrollWheel.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnScrollWheel;
  1152. @ScrollWheel.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnScrollWheel;
  1153. @MiddleClick.started -= m_Wrapper.m_UIActionsCallbackInterface.OnMiddleClick;
  1154. @MiddleClick.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnMiddleClick;
  1155. @MiddleClick.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnMiddleClick;
  1156. @RightClick.started -= m_Wrapper.m_UIActionsCallbackInterface.OnRightClick;
  1157. @RightClick.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnRightClick;
  1158. @RightClick.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnRightClick;
  1159. @TrackedDevicePosition.started -= m_Wrapper.m_UIActionsCallbackInterface.OnTrackedDevicePosition;
  1160. @TrackedDevicePosition.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnTrackedDevicePosition;
  1161. @TrackedDevicePosition.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnTrackedDevicePosition;
  1162. @TrackedDeviceOrientation.started -= m_Wrapper.m_UIActionsCallbackInterface.OnTrackedDeviceOrientation;
  1163. @TrackedDeviceOrientation.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnTrackedDeviceOrientation;
  1164. @TrackedDeviceOrientation.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnTrackedDeviceOrientation;
  1165. }
  1166. m_Wrapper.m_UIActionsCallbackInterface = instance;
  1167. if (instance != null)
  1168. {
  1169. @Navigate.started += instance.OnNavigate;
  1170. @Navigate.performed += instance.OnNavigate;
  1171. @Navigate.canceled += instance.OnNavigate;
  1172. @Submit.started += instance.OnSubmit;
  1173. @Submit.performed += instance.OnSubmit;
  1174. @Submit.canceled += instance.OnSubmit;
  1175. @Cancel.started += instance.OnCancel;
  1176. @Cancel.performed += instance.OnCancel;
  1177. @Cancel.canceled += instance.OnCancel;
  1178. @Point.started += instance.OnPoint;
  1179. @Point.performed += instance.OnPoint;
  1180. @Point.canceled += instance.OnPoint;
  1181. @Click.started += instance.OnClick;
  1182. @Click.performed += instance.OnClick;
  1183. @Click.canceled += instance.OnClick;
  1184. @ScrollWheel.started += instance.OnScrollWheel;
  1185. @ScrollWheel.performed += instance.OnScrollWheel;
  1186. @ScrollWheel.canceled += instance.OnScrollWheel;
  1187. @MiddleClick.started += instance.OnMiddleClick;
  1188. @MiddleClick.performed += instance.OnMiddleClick;
  1189. @MiddleClick.canceled += instance.OnMiddleClick;
  1190. @RightClick.started += instance.OnRightClick;
  1191. @RightClick.performed += instance.OnRightClick;
  1192. @RightClick.canceled += instance.OnRightClick;
  1193. @TrackedDevicePosition.started += instance.OnTrackedDevicePosition;
  1194. @TrackedDevicePosition.performed += instance.OnTrackedDevicePosition;
  1195. @TrackedDevicePosition.canceled += instance.OnTrackedDevicePosition;
  1196. @TrackedDeviceOrientation.started += instance.OnTrackedDeviceOrientation;
  1197. @TrackedDeviceOrientation.performed += instance.OnTrackedDeviceOrientation;
  1198. @TrackedDeviceOrientation.canceled += instance.OnTrackedDeviceOrientation;
  1199. }
  1200. }
  1201. }
  1202. public UIActions @UI => new UIActions(this);
  1203. // Camera
  1204. private readonly InputActionMap m_Camera;
  1205. private ICameraActions m_CameraActionsCallbackInterface;
  1206. private readonly InputAction m_Camera_Movement;
  1207. public struct CameraActions
  1208. {
  1209. private @RoomBuilder m_Wrapper;
  1210. public CameraActions(@RoomBuilder wrapper) { m_Wrapper = wrapper; }
  1211. public InputAction @Movement => m_Wrapper.m_Camera_Movement;
  1212. public InputActionMap Get() { return m_Wrapper.m_Camera; }
  1213. public void Enable() { Get().Enable(); }
  1214. public void Disable() { Get().Disable(); }
  1215. public bool enabled => Get().enabled;
  1216. public static implicit operator InputActionMap(CameraActions set) { return set.Get(); }
  1217. public void SetCallbacks(ICameraActions instance)
  1218. {
  1219. if (m_Wrapper.m_CameraActionsCallbackInterface != null)
  1220. {
  1221. @Movement.started -= m_Wrapper.m_CameraActionsCallbackInterface.OnMovement;
  1222. @Movement.performed -= m_Wrapper.m_CameraActionsCallbackInterface.OnMovement;
  1223. @Movement.canceled -= m_Wrapper.m_CameraActionsCallbackInterface.OnMovement;
  1224. }
  1225. m_Wrapper.m_CameraActionsCallbackInterface = instance;
  1226. if (instance != null)
  1227. {
  1228. @Movement.started += instance.OnMovement;
  1229. @Movement.performed += instance.OnMovement;
  1230. @Movement.canceled += instance.OnMovement;
  1231. }
  1232. }
  1233. }
  1234. public CameraActions @Camera => new CameraActions(this);
  1235. private int m_KeyboardMouseSchemeIndex = -1;
  1236. public InputControlScheme KeyboardMouseScheme
  1237. {
  1238. get
  1239. {
  1240. if (m_KeyboardMouseSchemeIndex == -1) m_KeyboardMouseSchemeIndex = asset.FindControlSchemeIndex("Keyboard&Mouse");
  1241. return asset.controlSchemes[m_KeyboardMouseSchemeIndex];
  1242. }
  1243. }
  1244. private int m_GamepadSchemeIndex = -1;
  1245. public InputControlScheme GamepadScheme
  1246. {
  1247. get
  1248. {
  1249. if (m_GamepadSchemeIndex == -1) m_GamepadSchemeIndex = asset.FindControlSchemeIndex("Gamepad");
  1250. return asset.controlSchemes[m_GamepadSchemeIndex];
  1251. }
  1252. }
  1253. private int m_TouchSchemeIndex = -1;
  1254. public InputControlScheme TouchScheme
  1255. {
  1256. get
  1257. {
  1258. if (m_TouchSchemeIndex == -1) m_TouchSchemeIndex = asset.FindControlSchemeIndex("Touch");
  1259. return asset.controlSchemes[m_TouchSchemeIndex];
  1260. }
  1261. }
  1262. private int m_JoystickSchemeIndex = -1;
  1263. public InputControlScheme JoystickScheme
  1264. {
  1265. get
  1266. {
  1267. if (m_JoystickSchemeIndex == -1) m_JoystickSchemeIndex = asset.FindControlSchemeIndex("Joystick");
  1268. return asset.controlSchemes[m_JoystickSchemeIndex];
  1269. }
  1270. }
  1271. private int m_XRSchemeIndex = -1;
  1272. public InputControlScheme XRScheme
  1273. {
  1274. get
  1275. {
  1276. if (m_XRSchemeIndex == -1) m_XRSchemeIndex = asset.FindControlSchemeIndex("XR");
  1277. return asset.controlSchemes[m_XRSchemeIndex];
  1278. }
  1279. }
  1280. public interface IPlayerActions
  1281. {
  1282. void OnMove(InputAction.CallbackContext context);
  1283. void OnLook(InputAction.CallbackContext context);
  1284. void OnFire(InputAction.CallbackContext context);
  1285. }
  1286. public interface IUIActions
  1287. {
  1288. void OnNavigate(InputAction.CallbackContext context);
  1289. void OnSubmit(InputAction.CallbackContext context);
  1290. void OnCancel(InputAction.CallbackContext context);
  1291. void OnPoint(InputAction.CallbackContext context);
  1292. void OnClick(InputAction.CallbackContext context);
  1293. void OnScrollWheel(InputAction.CallbackContext context);
  1294. void OnMiddleClick(InputAction.CallbackContext context);
  1295. void OnRightClick(InputAction.CallbackContext context);
  1296. void OnTrackedDevicePosition(InputAction.CallbackContext context);
  1297. void OnTrackedDeviceOrientation(InputAction.CallbackContext context);
  1298. }
  1299. public interface ICameraActions
  1300. {
  1301. void OnMovement(InputAction.CallbackContext context);
  1302. }
  1303. }