A game about forced loneliness, made by TACStudios
1using System; 2using System.Collections; 3using System.Collections.Generic; 4using UnityEngine.InputSystem.Utilities; 5 6// NOTE: This is mostly auto-generated from DefaultInput.actions. To regenerate, temporarily toggle on "Generate C# Class" and 7// merge revision from version control. 8 9// CodeAnalyzer isn't happy with our implicit conversion operator. Might be something to fix but even then, fix relates to 10// code generator, not the generated code here. 11#pragma warning disable CA2225 12 13namespace UnityEngine.InputSystem 14{ 15 /// <summary> 16 /// A default <see cref="InputAction"/> setup. 17 /// </summary> 18 /// <remarks> 19 /// This class is auto-generated from the <c>DefaultAction.inputactions</c> asset that comes with the Input System. 20 /// 21 /// <example> 22 /// <code> 23 /// // Instantiate the default action set. 24 /// var actions = new DefaultInputActions(); 25 /// 26 /// // One way to use the actions: 27 /// actions.Player.Enable(); 28 /// actions.Player.Fire.performed += _ => Fire(); 29 /// // Or: 30 /// if (actions.Player.Fire.WasPressedThisFrame()) 31 /// Fire(); 32 /// 33 /// // Another way is with PlayerInput, for example: 34 /// var playerInput = AddComponent&lt;PlayerInput&gt;(); 35 /// playerInput.actions = actions.asset; 36 /// </code> 37 /// </example> 38 /// </remarks> 39 public class DefaultInputActions : IInputActionCollection2, IDisposable 40 { 41 public InputActionAsset asset { get; } 42 public @DefaultInputActions() 43 { 44 asset = InputActionAsset.FromJson(@"{ 45 ""name"": ""DefaultInputActions"", 46 ""maps"": [ 47 { 48 ""name"": ""Player"", 49 ""id"": ""df70fa95-8a34-4494-b137-73ab6b9c7d37"", 50 ""actions"": [ 51 { 52 ""name"": ""Move"", 53 ""type"": ""Value"", 54 ""id"": ""351f2ccd-1f9f-44bf-9bec-d62ac5c5f408"", 55 ""expectedControlType"": ""Vector2"", 56 ""processors"": """", 57 ""interactions"": """", 58 ""initialStateCheck"": true 59 }, 60 { 61 ""name"": ""Look"", 62 ""type"": ""Value"", 63 ""id"": ""6b444451-8a00-4d00-a97e-f47457f736a8"", 64 ""expectedControlType"": ""Vector2"", 65 ""processors"": """", 66 ""interactions"": """", 67 ""initialStateCheck"": true 68 }, 69 { 70 ""name"": ""Fire"", 71 ""type"": ""Button"", 72 ""id"": ""6c2ab1b8-8984-453a-af3d-a3c78ae1679a"", 73 ""expectedControlType"": ""Button"", 74 ""processors"": """", 75 ""interactions"": """", 76 ""initialStateCheck"": false 77 } 78 ], 79 ""bindings"": [ 80 { 81 ""name"": """", 82 ""id"": ""978bfe49-cc26-4a3d-ab7b-7d7a29327403"", 83 ""path"": ""<Gamepad>/leftStick"", 84 ""interactions"": """", 85 ""processors"": """", 86 ""groups"": "";Gamepad"", 87 ""action"": ""Move"", 88 ""isComposite"": false, 89 ""isPartOfComposite"": false 90 }, 91 { 92 ""name"": ""WASD"", 93 ""id"": ""00ca640b-d935-4593-8157-c05846ea39b3"", 94 ""path"": ""Dpad"", 95 ""interactions"": """", 96 ""processors"": """", 97 ""groups"": """", 98 ""action"": ""Move"", 99 ""isComposite"": true, 100 ""isPartOfComposite"": false 101 }, 102 { 103 ""name"": ""up"", 104 ""id"": ""e2062cb9-1b15-46a2-838c-2f8d72a0bdd9"", 105 ""path"": ""<Keyboard>/w"", 106 ""interactions"": """", 107 ""processors"": """", 108 ""groups"": "";Keyboard&Mouse"", 109 ""action"": ""Move"", 110 ""isComposite"": false, 111 ""isPartOfComposite"": true 112 }, 113 { 114 ""name"": ""up"", 115 ""id"": ""8180e8bd-4097-4f4e-ab88-4523101a6ce9"", 116 ""path"": ""<Keyboard>/upArrow"", 117 ""interactions"": """", 118 ""processors"": """", 119 ""groups"": "";Keyboard&Mouse"", 120 ""action"": ""Move"", 121 ""isComposite"": false, 122 ""isPartOfComposite"": true 123 }, 124 { 125 ""name"": ""down"", 126 ""id"": ""320bffee-a40b-4347-ac70-c210eb8bc73a"", 127 ""path"": ""<Keyboard>/s"", 128 ""interactions"": """", 129 ""processors"": """", 130 ""groups"": "";Keyboard&Mouse"", 131 ""action"": ""Move"", 132 ""isComposite"": false, 133 ""isPartOfComposite"": true 134 }, 135 { 136 ""name"": ""down"", 137 ""id"": ""1c5327b5-f71c-4f60-99c7-4e737386f1d1"", 138 ""path"": ""<Keyboard>/downArrow"", 139 ""interactions"": """", 140 ""processors"": """", 141 ""groups"": "";Keyboard&Mouse"", 142 ""action"": ""Move"", 143 ""isComposite"": false, 144 ""isPartOfComposite"": true 145 }, 146 { 147 ""name"": ""left"", 148 ""id"": ""d2581a9b-1d11-4566-b27d-b92aff5fabbc"", 149 ""path"": ""<Keyboard>/a"", 150 ""interactions"": """", 151 ""processors"": """", 152 ""groups"": "";Keyboard&Mouse"", 153 ""action"": ""Move"", 154 ""isComposite"": false, 155 ""isPartOfComposite"": true 156 }, 157 { 158 ""name"": ""left"", 159 ""id"": ""2e46982e-44cc-431b-9f0b-c11910bf467a"", 160 ""path"": ""<Keyboard>/leftArrow"", 161 ""interactions"": """", 162 ""processors"": """", 163 ""groups"": "";Keyboard&Mouse"", 164 ""action"": ""Move"", 165 ""isComposite"": false, 166 ""isPartOfComposite"": true 167 }, 168 { 169 ""name"": ""right"", 170 ""id"": ""fcfe95b8-67b9-4526-84b5-5d0bc98d6400"", 171 ""path"": ""<Keyboard>/d"", 172 ""interactions"": """", 173 ""processors"": """", 174 ""groups"": "";Keyboard&Mouse"", 175 ""action"": ""Move"", 176 ""isComposite"": false, 177 ""isPartOfComposite"": true 178 }, 179 { 180 ""name"": ""right"", 181 ""id"": ""77bff152-3580-4b21-b6de-dcd0c7e41164"", 182 ""path"": ""<Keyboard>/rightArrow"", 183 ""interactions"": """", 184 ""processors"": """", 185 ""groups"": "";Keyboard&Mouse"", 186 ""action"": ""Move"", 187 ""isComposite"": false, 188 ""isPartOfComposite"": true 189 }, 190 { 191 ""name"": """", 192 ""id"": ""1635d3fe-58b6-4ba9-a4e2-f4b964f6b5c8"", 193 ""path"": ""<XRController>/{Primary2DAxis}"", 194 ""interactions"": """", 195 ""processors"": """", 196 ""groups"": ""XR"", 197 ""action"": ""Move"", 198 ""isComposite"": false, 199 ""isPartOfComposite"": false 200 }, 201 { 202 ""name"": """", 203 ""id"": ""3ea4d645-4504-4529-b061-ab81934c3752"", 204 ""path"": ""<Joystick>/stick"", 205 ""interactions"": """", 206 ""processors"": """", 207 ""groups"": ""Joystick"", 208 ""action"": ""Move"", 209 ""isComposite"": false, 210 ""isPartOfComposite"": false 211 }, 212 { 213 ""name"": """", 214 ""id"": ""c1f7a91b-d0fd-4a62-997e-7fb9b69bf235"", 215 ""path"": ""<Gamepad>/rightStick"", 216 ""interactions"": """", 217 ""processors"": """", 218 ""groups"": "";Gamepad"", 219 ""action"": ""Look"", 220 ""isComposite"": false, 221 ""isPartOfComposite"": false 222 }, 223 { 224 ""name"": """", 225 ""id"": ""8c8e490b-c610-4785-884f-f04217b23ca4"", 226 ""path"": ""<Pointer>/delta"", 227 ""interactions"": """", 228 ""processors"": """", 229 ""groups"": "";Keyboard&Mouse;Touch"", 230 ""action"": ""Look"", 231 ""isComposite"": false, 232 ""isPartOfComposite"": false 233 }, 234 { 235 ""name"": """", 236 ""id"": ""3e5f5442-8668-4b27-a940-df99bad7e831"", 237 ""path"": ""<Joystick>/{Hatswitch}"", 238 ""interactions"": """", 239 ""processors"": """", 240 ""groups"": ""Joystick"", 241 ""action"": ""Look"", 242 ""isComposite"": false, 243 ""isPartOfComposite"": false 244 }, 245 { 246 ""name"": """", 247 ""id"": ""143bb1cd-cc10-4eca-a2f0-a3664166fe91"", 248 ""path"": ""<Gamepad>/rightTrigger"", 249 ""interactions"": """", 250 ""processors"": """", 251 ""groups"": "";Gamepad"", 252 ""action"": ""Fire"", 253 ""isComposite"": false, 254 ""isPartOfComposite"": false 255 }, 256 { 257 ""name"": """", 258 ""id"": ""05f6913d-c316-48b2-a6bb-e225f14c7960"", 259 ""path"": ""<Mouse>/leftButton"", 260 ""interactions"": """", 261 ""processors"": """", 262 ""groups"": "";Keyboard&Mouse"", 263 ""action"": ""Fire"", 264 ""isComposite"": false, 265 ""isPartOfComposite"": false 266 }, 267 { 268 ""name"": """", 269 ""id"": ""886e731e-7071-4ae4-95c0-e61739dad6fd"", 270 ""path"": ""<Touchscreen>/primaryTouch/tap"", 271 ""interactions"": """", 272 ""processors"": """", 273 ""groups"": "";Touch"", 274 ""action"": ""Fire"", 275 ""isComposite"": false, 276 ""isPartOfComposite"": false 277 }, 278 { 279 ""name"": """", 280 ""id"": ""ee3d0cd2-254e-47a7-a8cb-bc94d9658c54"", 281 ""path"": ""<Joystick>/trigger"", 282 ""interactions"": """", 283 ""processors"": """", 284 ""groups"": ""Joystick"", 285 ""action"": ""Fire"", 286 ""isComposite"": false, 287 ""isPartOfComposite"": false 288 }, 289 { 290 ""name"": """", 291 ""id"": ""8255d333-5683-4943-a58a-ccb207ff1dce"", 292 ""path"": ""<XRController>/{PrimaryAction}"", 293 ""interactions"": """", 294 ""processors"": """", 295 ""groups"": ""XR"", 296 ""action"": ""Fire"", 297 ""isComposite"": false, 298 ""isPartOfComposite"": false 299 } 300 ] 301 }, 302 { 303 ""name"": ""UI"", 304 ""id"": ""272f6d14-89ba-496f-b7ff-215263d3219f"", 305 ""actions"": [ 306 { 307 ""name"": ""Navigate"", 308 ""type"": ""PassThrough"", 309 ""id"": ""c95b2375-e6d9-4b88-9c4c-c5e76515df4b"", 310 ""expectedControlType"": ""Vector2"", 311 ""processors"": """", 312 ""interactions"": """", 313 ""initialStateCheck"": false 314 }, 315 { 316 ""name"": ""Submit"", 317 ""type"": ""Button"", 318 ""id"": ""7607c7b6-cd76-4816-beef-bd0341cfe950"", 319 ""expectedControlType"": ""Button"", 320 ""processors"": """", 321 ""interactions"": """", 322 ""initialStateCheck"": false 323 }, 324 { 325 ""name"": ""Cancel"", 326 ""type"": ""Button"", 327 ""id"": ""15cef263-9014-4fd5-94d9-4e4a6234a6ef"", 328 ""expectedControlType"": ""Button"", 329 ""processors"": """", 330 ""interactions"": """", 331 ""initialStateCheck"": false 332 }, 333 { 334 ""name"": ""Point"", 335 ""type"": ""PassThrough"", 336 ""id"": ""32b35790-4ed0-4e9a-aa41-69ac6d629449"", 337 ""expectedControlType"": ""Vector2"", 338 ""processors"": """", 339 ""interactions"": """", 340 ""initialStateCheck"": true 341 }, 342 { 343 ""name"": ""Click"", 344 ""type"": ""PassThrough"", 345 ""id"": ""3c7022bf-7922-4f7c-a998-c437916075ad"", 346 ""expectedControlType"": ""Button"", 347 ""processors"": """", 348 ""interactions"": """", 349 ""initialStateCheck"": true 350 }, 351 { 352 ""name"": ""ScrollWheel"", 353 ""type"": ""PassThrough"", 354 ""id"": ""0489e84a-4833-4c40-bfae-cea84b696689"", 355 ""expectedControlType"": ""Vector2"", 356 ""processors"": """", 357 ""interactions"": """", 358 ""initialStateCheck"": false 359 }, 360 { 361 ""name"": ""MiddleClick"", 362 ""type"": ""PassThrough"", 363 ""id"": ""dad70c86-b58c-4b17-88ad-f5e53adf419e"", 364 ""expectedControlType"": ""Button"", 365 ""processors"": """", 366 ""interactions"": """", 367 ""initialStateCheck"": false 368 }, 369 { 370 ""name"": ""RightClick"", 371 ""type"": ""PassThrough"", 372 ""id"": ""44b200b1-1557-4083-816c-b22cbdf77ddf"", 373 ""expectedControlType"": ""Button"", 374 ""processors"": """", 375 ""interactions"": """", 376 ""initialStateCheck"": false 377 }, 378 { 379 ""name"": ""TrackedDevicePosition"", 380 ""type"": ""PassThrough"", 381 ""id"": ""24908448-c609-4bc3-a128-ea258674378a"", 382 ""expectedControlType"": ""Vector3"", 383 ""processors"": """", 384 ""interactions"": """", 385 ""initialStateCheck"": false 386 }, 387 { 388 ""name"": ""TrackedDeviceOrientation"", 389 ""type"": ""PassThrough"", 390 ""id"": ""9caa3d8a-6b2f-4e8e-8bad-6ede561bd9be"", 391 ""expectedControlType"": ""Quaternion"", 392 ""processors"": """", 393 ""interactions"": """", 394 ""initialStateCheck"": false 395 } 396 ], 397 ""bindings"": [ 398 { 399 ""name"": ""Gamepad"", 400 ""id"": ""809f371f-c5e2-4e7a-83a1-d867598f40dd"", 401 ""path"": ""2DVector"", 402 ""interactions"": """", 403 ""processors"": """", 404 ""groups"": """", 405 ""action"": ""Navigate"", 406 ""isComposite"": true, 407 ""isPartOfComposite"": false 408 }, 409 { 410 ""name"": ""up"", 411 ""id"": ""14a5d6e8-4aaf-4119-a9ef-34b8c2c548bf"", 412 ""path"": ""<Gamepad>/leftStick/up"", 413 ""interactions"": """", 414 ""processors"": """", 415 ""groups"": "";Gamepad"", 416 ""action"": ""Navigate"", 417 ""isComposite"": false, 418 ""isPartOfComposite"": true 419 }, 420 { 421 ""name"": ""up"", 422 ""id"": ""9144cbe6-05e1-4687-a6d7-24f99d23dd81"", 423 ""path"": ""<Gamepad>/rightStick/up"", 424 ""interactions"": """", 425 ""processors"": """", 426 ""groups"": "";Gamepad"", 427 ""action"": ""Navigate"", 428 ""isComposite"": false, 429 ""isPartOfComposite"": true 430 }, 431 { 432 ""name"": ""down"", 433 ""id"": ""2db08d65-c5fb-421b-983f-c71163608d67"", 434 ""path"": ""<Gamepad>/leftStick/down"", 435 ""interactions"": """", 436 ""processors"": """", 437 ""groups"": "";Gamepad"", 438 ""action"": ""Navigate"", 439 ""isComposite"": false, 440 ""isPartOfComposite"": true 441 }, 442 { 443 ""name"": ""down"", 444 ""id"": ""58748904-2ea9-4a80-8579-b500e6a76df8"", 445 ""path"": ""<Gamepad>/rightStick/down"", 446 ""interactions"": """", 447 ""processors"": """", 448 ""groups"": "";Gamepad"", 449 ""action"": ""Navigate"", 450 ""isComposite"": false, 451 ""isPartOfComposite"": true 452 }, 453 { 454 ""name"": ""left"", 455 ""id"": ""8ba04515-75aa-45de-966d-393d9bbd1c14"", 456 ""path"": ""<Gamepad>/leftStick/left"", 457 ""interactions"": """", 458 ""processors"": """", 459 ""groups"": "";Gamepad"", 460 ""action"": ""Navigate"", 461 ""isComposite"": false, 462 ""isPartOfComposite"": true 463 }, 464 { 465 ""name"": ""left"", 466 ""id"": ""712e721c-bdfb-4b23-a86c-a0d9fcfea921"", 467 ""path"": ""<Gamepad>/rightStick/left"", 468 ""interactions"": """", 469 ""processors"": """", 470 ""groups"": "";Gamepad"", 471 ""action"": ""Navigate"", 472 ""isComposite"": false, 473 ""isPartOfComposite"": true 474 }, 475 { 476 ""name"": ""right"", 477 ""id"": ""fcd248ae-a788-4676-a12e-f4d81205600b"", 478 ""path"": ""<Gamepad>/leftStick/right"", 479 ""interactions"": """", 480 ""processors"": """", 481 ""groups"": "";Gamepad"", 482 ""action"": ""Navigate"", 483 ""isComposite"": false, 484 ""isPartOfComposite"": true 485 }, 486 { 487 ""name"": ""right"", 488 ""id"": ""1f04d9bc-c50b-41a1-bfcc-afb75475ec20"", 489 ""path"": ""<Gamepad>/rightStick/right"", 490 ""interactions"": """", 491 ""processors"": """", 492 ""groups"": "";Gamepad"", 493 ""action"": ""Navigate"", 494 ""isComposite"": false, 495 ""isPartOfComposite"": true 496 }, 497 { 498 ""name"": """", 499 ""id"": ""fb8277d4-c5cd-4663-9dc7-ee3f0b506d90"", 500 ""path"": ""<Gamepad>/dpad"", 501 ""interactions"": """", 502 ""processors"": """", 503 ""groups"": "";Gamepad"", 504 ""action"": ""Navigate"", 505 ""isComposite"": false, 506 ""isPartOfComposite"": false 507 }, 508 { 509 ""name"": ""Joystick"", 510 ""id"": ""e25d9774-381c-4a61-b47c-7b6b299ad9f9"", 511 ""path"": ""2DVector"", 512 ""interactions"": """", 513 ""processors"": """", 514 ""groups"": """", 515 ""action"": ""Navigate"", 516 ""isComposite"": true, 517 ""isPartOfComposite"": false 518 }, 519 { 520 ""name"": ""up"", 521 ""id"": ""3db53b26-6601-41be-9887-63ac74e79d19"", 522 ""path"": ""<Joystick>/stick/up"", 523 ""interactions"": """", 524 ""processors"": """", 525 ""groups"": ""Joystick"", 526 ""action"": ""Navigate"", 527 ""isComposite"": false, 528 ""isPartOfComposite"": true 529 }, 530 { 531 ""name"": ""down"", 532 ""id"": ""0cb3e13e-3d90-4178-8ae6-d9c5501d653f"", 533 ""path"": ""<Joystick>/stick/down"", 534 ""interactions"": """", 535 ""processors"": """", 536 ""groups"": ""Joystick"", 537 ""action"": ""Navigate"", 538 ""isComposite"": false, 539 ""isPartOfComposite"": true 540 }, 541 { 542 ""name"": ""left"", 543 ""id"": ""0392d399-f6dd-4c82-8062-c1e9c0d34835"", 544 ""path"": ""<Joystick>/stick/left"", 545 ""interactions"": """", 546 ""processors"": """", 547 ""groups"": ""Joystick"", 548 ""action"": ""Navigate"", 549 ""isComposite"": false, 550 ""isPartOfComposite"": true 551 }, 552 { 553 ""name"": ""right"", 554 ""id"": ""942a66d9-d42f-43d6-8d70-ecb4ba5363bc"", 555 ""path"": ""<Joystick>/stick/right"", 556 ""interactions"": """", 557 ""processors"": """", 558 ""groups"": ""Joystick"", 559 ""action"": ""Navigate"", 560 ""isComposite"": false, 561 ""isPartOfComposite"": true 562 }, 563 { 564 ""name"": ""Keyboard"", 565 ""id"": ""ff527021-f211-4c02-933e-5976594c46ed"", 566 ""path"": ""2DVector"", 567 ""interactions"": """", 568 ""processors"": """", 569 ""groups"": """", 570 ""action"": ""Navigate"", 571 ""isComposite"": true, 572 ""isPartOfComposite"": false 573 }, 574 { 575 ""name"": ""up"", 576 ""id"": ""563fbfdd-0f09-408d-aa75-8642c4f08ef0"", 577 ""path"": ""<Keyboard>/w"", 578 ""interactions"": """", 579 ""processors"": """", 580 ""groups"": ""Keyboard&Mouse"", 581 ""action"": ""Navigate"", 582 ""isComposite"": false, 583 ""isPartOfComposite"": true 584 }, 585 { 586 ""name"": ""up"", 587 ""id"": ""eb480147-c587-4a33-85ed-eb0ab9942c43"", 588 ""path"": ""<Keyboard>/upArrow"", 589 ""interactions"": """", 590 ""processors"": """", 591 ""groups"": ""Keyboard&Mouse"", 592 ""action"": ""Navigate"", 593 ""isComposite"": false, 594 ""isPartOfComposite"": true 595 }, 596 { 597 ""name"": ""down"", 598 ""id"": ""2bf42165-60bc-42ca-8072-8c13ab40239b"", 599 ""path"": ""<Keyboard>/s"", 600 ""interactions"": """", 601 ""processors"": """", 602 ""groups"": ""Keyboard&Mouse"", 603 ""action"": ""Navigate"", 604 ""isComposite"": false, 605 ""isPartOfComposite"": true 606 }, 607 { 608 ""name"": ""down"", 609 ""id"": ""85d264ad-e0a0-4565-b7ff-1a37edde51ac"", 610 ""path"": ""<Keyboard>/downArrow"", 611 ""interactions"": """", 612 ""processors"": """", 613 ""groups"": ""Keyboard&Mouse"", 614 ""action"": ""Navigate"", 615 ""isComposite"": false, 616 ""isPartOfComposite"": true 617 }, 618 { 619 ""name"": ""left"", 620 ""id"": ""74214943-c580-44e4-98eb-ad7eebe17902"", 621 ""path"": ""<Keyboard>/a"", 622 ""interactions"": """", 623 ""processors"": """", 624 ""groups"": ""Keyboard&Mouse"", 625 ""action"": ""Navigate"", 626 ""isComposite"": false, 627 ""isPartOfComposite"": true 628 }, 629 { 630 ""name"": ""left"", 631 ""id"": ""cea9b045-a000-445b-95b8-0c171af70a3b"", 632 ""path"": ""<Keyboard>/leftArrow"", 633 ""interactions"": """", 634 ""processors"": """", 635 ""groups"": ""Keyboard&Mouse"", 636 ""action"": ""Navigate"", 637 ""isComposite"": false, 638 ""isPartOfComposite"": true 639 }, 640 { 641 ""name"": ""right"", 642 ""id"": ""8607c725-d935-4808-84b1-8354e29bab63"", 643 ""path"": ""<Keyboard>/d"", 644 ""interactions"": """", 645 ""processors"": """", 646 ""groups"": ""Keyboard&Mouse"", 647 ""action"": ""Navigate"", 648 ""isComposite"": false, 649 ""isPartOfComposite"": true 650 }, 651 { 652 ""name"": ""right"", 653 ""id"": ""4cda81dc-9edd-4e03-9d7c-a71a14345d0b"", 654 ""path"": ""<Keyboard>/rightArrow"", 655 ""interactions"": """", 656 ""processors"": """", 657 ""groups"": ""Keyboard&Mouse"", 658 ""action"": ""Navigate"", 659 ""isComposite"": false, 660 ""isPartOfComposite"": true 661 }, 662 { 663 ""name"": """", 664 ""id"": ""9e92bb26-7e3b-4ec4-b06b-3c8f8e498ddc"", 665 ""path"": ""*/{Submit}"", 666 ""interactions"": """", 667 ""processors"": """", 668 ""groups"": ""Keyboard&Mouse;Gamepad;Touch;Joystick;XR"", 669 ""action"": ""Submit"", 670 ""isComposite"": false, 671 ""isPartOfComposite"": false 672 }, 673 { 674 ""name"": """", 675 ""id"": ""82627dcc-3b13-4ba9-841d-e4b746d6553e"", 676 ""path"": ""*/{Cancel}"", 677 ""interactions"": """", 678 ""processors"": """", 679 ""groups"": ""Keyboard&Mouse;Gamepad;Touch;Joystick;XR"", 680 ""action"": ""Cancel"", 681 ""isComposite"": false, 682 ""isPartOfComposite"": false 683 }, 684 { 685 ""name"": """", 686 ""id"": ""c52c8e0b-8179-41d3-b8a1-d149033bbe86"", 687 ""path"": ""<Mouse>/position"", 688 ""interactions"": """", 689 ""processors"": """", 690 ""groups"": ""Keyboard&Mouse"", 691 ""action"": ""Point"", 692 ""isComposite"": false, 693 ""isPartOfComposite"": false 694 }, 695 { 696 ""name"": """", 697 ""id"": ""e1394cbc-336e-44ce-9ea8-6007ed6193f7"", 698 ""path"": ""<Pen>/position"", 699 ""interactions"": """", 700 ""processors"": """", 701 ""groups"": ""Keyboard&Mouse"", 702 ""action"": ""Point"", 703 ""isComposite"": false, 704 ""isPartOfComposite"": false 705 }, 706 { 707 ""name"": """", 708 ""id"": ""5693e57a-238a-46ed-b5ae-e64e6e574302"", 709 ""path"": ""<Touchscreen>/touch*/position"", 710 ""interactions"": """", 711 ""processors"": """", 712 ""groups"": ""Touch"", 713 ""action"": ""Point"", 714 ""isComposite"": false, 715 ""isPartOfComposite"": false 716 }, 717 { 718 ""name"": """", 719 ""id"": ""4faf7dc9-b979-4210-aa8c-e808e1ef89f5"", 720 ""path"": ""<Mouse>/leftButton"", 721 ""interactions"": """", 722 ""processors"": """", 723 ""groups"": "";Keyboard&Mouse"", 724 ""action"": ""Click"", 725 ""isComposite"": false, 726 ""isPartOfComposite"": false 727 }, 728 { 729 ""name"": """", 730 ""id"": ""8d66d5ba-88d7-48e6-b1cd-198bbfef7ace"", 731 ""path"": ""<Pen>/tip"", 732 ""interactions"": """", 733 ""processors"": """", 734 ""groups"": "";Keyboard&Mouse"", 735 ""action"": ""Click"", 736 ""isComposite"": false, 737 ""isPartOfComposite"": false 738 }, 739 { 740 ""name"": """", 741 ""id"": ""47c2a644-3ebc-4dae-a106-589b7ca75b59"", 742 ""path"": ""<Touchscreen>/touch*/press"", 743 ""interactions"": """", 744 ""processors"": """", 745 ""groups"": ""Touch"", 746 ""action"": ""Click"", 747 ""isComposite"": false, 748 ""isPartOfComposite"": false 749 }, 750 { 751 ""name"": """", 752 ""id"": ""bb9e6b34-44bf-4381-ac63-5aa15d19f677"", 753 ""path"": ""<XRController>/trigger"", 754 ""interactions"": """", 755 ""processors"": """", 756 ""groups"": ""XR"", 757 ""action"": ""Click"", 758 ""isComposite"": false, 759 ""isPartOfComposite"": false 760 }, 761 { 762 ""name"": """", 763 ""id"": ""38c99815-14ea-4617-8627-164d27641299"", 764 ""path"": ""<Mouse>/scroll"", 765 ""interactions"": """", 766 ""processors"": """", 767 ""groups"": "";Keyboard&Mouse"", 768 ""action"": ""ScrollWheel"", 769 ""isComposite"": false, 770 ""isPartOfComposite"": false 771 }, 772 { 773 ""name"": """", 774 ""id"": ""24066f69-da47-44f3-a07e-0015fb02eb2e"", 775 ""path"": ""<Mouse>/middleButton"", 776 ""interactions"": """", 777 ""processors"": """", 778 ""groups"": "";Keyboard&Mouse"", 779 ""action"": ""MiddleClick"", 780 ""isComposite"": false, 781 ""isPartOfComposite"": false 782 }, 783 { 784 ""name"": """", 785 ""id"": ""4c191405-5738-4d4b-a523-c6a301dbf754"", 786 ""path"": ""<Mouse>/rightButton"", 787 ""interactions"": """", 788 ""processors"": """", 789 ""groups"": "";Keyboard&Mouse"", 790 ""action"": ""RightClick"", 791 ""isComposite"": false, 792 ""isPartOfComposite"": false 793 }, 794 { 795 ""name"": """", 796 ""id"": ""7236c0d9-6ca3-47cf-a6ee-a97f5b59ea77"", 797 ""path"": ""<XRController>/devicePosition"", 798 ""interactions"": """", 799 ""processors"": """", 800 ""groups"": ""XR"", 801 ""action"": ""TrackedDevicePosition"", 802 ""isComposite"": false, 803 ""isPartOfComposite"": false 804 }, 805 { 806 ""name"": """", 807 ""id"": ""23e01e3a-f935-4948-8d8b-9bcac77714fb"", 808 ""path"": ""<XRController>/deviceRotation"", 809 ""interactions"": """", 810 ""processors"": """", 811 ""groups"": ""XR"", 812 ""action"": ""TrackedDeviceOrientation"", 813 ""isComposite"": false, 814 ""isPartOfComposite"": false 815 } 816 ] 817 } 818 ], 819 ""controlSchemes"": [ 820 { 821 ""name"": ""Keyboard&Mouse"", 822 ""bindingGroup"": ""Keyboard&Mouse"", 823 ""devices"": [ 824 { 825 ""devicePath"": ""<Keyboard>"", 826 ""isOptional"": false, 827 ""isOR"": false 828 }, 829 { 830 ""devicePath"": ""<Mouse>"", 831 ""isOptional"": false, 832 ""isOR"": false 833 } 834 ] 835 }, 836 { 837 ""name"": ""Gamepad"", 838 ""bindingGroup"": ""Gamepad"", 839 ""devices"": [ 840 { 841 ""devicePath"": ""<Gamepad>"", 842 ""isOptional"": false, 843 ""isOR"": false 844 } 845 ] 846 }, 847 { 848 ""name"": ""Touch"", 849 ""bindingGroup"": ""Touch"", 850 ""devices"": [ 851 { 852 ""devicePath"": ""<Touchscreen>"", 853 ""isOptional"": false, 854 ""isOR"": false 855 } 856 ] 857 }, 858 { 859 ""name"": ""Joystick"", 860 ""bindingGroup"": ""Joystick"", 861 ""devices"": [ 862 { 863 ""devicePath"": ""<Joystick>"", 864 ""isOptional"": false, 865 ""isOR"": false 866 } 867 ] 868 }, 869 { 870 ""name"": ""XR"", 871 ""bindingGroup"": ""XR"", 872 ""devices"": [ 873 { 874 ""devicePath"": ""<XRController>"", 875 ""isOptional"": false, 876 ""isOR"": false 877 } 878 ] 879 } 880 ] 881}"); 882 // Player 883 m_Player = asset.FindActionMap("Player", throwIfNotFound: true); 884 m_Player_Move = m_Player.FindAction("Move", throwIfNotFound: true); 885 m_Player_Look = m_Player.FindAction("Look", throwIfNotFound: true); 886 m_Player_Fire = m_Player.FindAction("Fire", throwIfNotFound: true); 887 // UI 888 m_UI = asset.FindActionMap("UI", throwIfNotFound: true); 889 m_UI_Navigate = m_UI.FindAction("Navigate", throwIfNotFound: true); 890 m_UI_Submit = m_UI.FindAction("Submit", throwIfNotFound: true); 891 m_UI_Cancel = m_UI.FindAction("Cancel", throwIfNotFound: true); 892 m_UI_Point = m_UI.FindAction("Point", throwIfNotFound: true); 893 m_UI_Click = m_UI.FindAction("Click", throwIfNotFound: true); 894 m_UI_ScrollWheel = m_UI.FindAction("ScrollWheel", throwIfNotFound: true); 895 m_UI_MiddleClick = m_UI.FindAction("MiddleClick", throwIfNotFound: true); 896 m_UI_RightClick = m_UI.FindAction("RightClick", throwIfNotFound: true); 897 m_UI_TrackedDevicePosition = m_UI.FindAction("TrackedDevicePosition", throwIfNotFound: true); 898 m_UI_TrackedDeviceOrientation = m_UI.FindAction("TrackedDeviceOrientation", throwIfNotFound: true); 899 } 900 901 public void Dispose() 902 { 903 UnityEngine.Object.Destroy(asset); 904 } 905 906 public InputBinding? bindingMask 907 { 908 get => asset.bindingMask; 909 set => asset.bindingMask = value; 910 } 911 912 public ReadOnlyArray<InputDevice>? devices 913 { 914 get => asset.devices; 915 set => asset.devices = value; 916 } 917 918 public ReadOnlyArray<InputControlScheme> controlSchemes => asset.controlSchemes; 919 920 public bool Contains(InputAction action) 921 { 922 return asset.Contains(action); 923 } 924 925 public IEnumerator<InputAction> GetEnumerator() 926 { 927 return asset.GetEnumerator(); 928 } 929 930 IEnumerator IEnumerable.GetEnumerator() 931 { 932 return GetEnumerator(); 933 } 934 935 public void Enable() 936 { 937 asset.Enable(); 938 } 939 940 public void Disable() 941 { 942 asset.Disable(); 943 } 944 945 public IEnumerable<InputBinding> bindings => asset.bindings; 946 947 public InputAction FindAction(string actionNameOrId, bool throwIfNotFound = false) 948 { 949 return asset.FindAction(actionNameOrId, throwIfNotFound); 950 } 951 952 public int FindBinding(InputBinding bindingMask, out InputAction action) 953 { 954 return asset.FindBinding(bindingMask, out action); 955 } 956 957 // Player 958 private readonly InputActionMap m_Player; 959 private IPlayerActions m_PlayerActionsCallbackInterface; 960 private readonly InputAction m_Player_Move; 961 private readonly InputAction m_Player_Look; 962 private readonly InputAction m_Player_Fire; 963 public struct PlayerActions 964 { 965 private @DefaultInputActions m_Wrapper; 966 public PlayerActions(@DefaultInputActions wrapper) { m_Wrapper = wrapper; } 967 public InputAction @Move => m_Wrapper.m_Player_Move; 968 public InputAction @Look => m_Wrapper.m_Player_Look; 969 public InputAction @Fire => m_Wrapper.m_Player_Fire; 970 public InputActionMap Get() { return m_Wrapper.m_Player; } 971 public void Enable() { Get().Enable(); } 972 public void Disable() { Get().Disable(); } 973 public bool enabled => Get().enabled; 974 public static implicit operator InputActionMap(PlayerActions set) { return set.Get(); } 975 public void SetCallbacks(IPlayerActions instance) 976 { 977 if (m_Wrapper.m_PlayerActionsCallbackInterface != null) 978 { 979 @Move.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMove; 980 @Move.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMove; 981 @Move.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMove; 982 @Look.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnLook; 983 @Look.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnLook; 984 @Look.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnLook; 985 @Fire.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnFire; 986 @Fire.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnFire; 987 @Fire.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnFire; 988 } 989 m_Wrapper.m_PlayerActionsCallbackInterface = instance; 990 if (instance != null) 991 { 992 @Move.started += instance.OnMove; 993 @Move.performed += instance.OnMove; 994 @Move.canceled += instance.OnMove; 995 @Look.started += instance.OnLook; 996 @Look.performed += instance.OnLook; 997 @Look.canceled += instance.OnLook; 998 @Fire.started += instance.OnFire; 999 @Fire.performed += instance.OnFire; 1000 @Fire.canceled += instance.OnFire; 1001 } 1002 } 1003 } 1004 public PlayerActions @Player => new PlayerActions(this); 1005 1006 // UI 1007 private readonly InputActionMap m_UI; 1008 private IUIActions m_UIActionsCallbackInterface; 1009 private readonly InputAction m_UI_Navigate; 1010 private readonly InputAction m_UI_Submit; 1011 private readonly InputAction m_UI_Cancel; 1012 private readonly InputAction m_UI_Point; 1013 private readonly InputAction m_UI_Click; 1014 private readonly InputAction m_UI_ScrollWheel; 1015 private readonly InputAction m_UI_MiddleClick; 1016 private readonly InputAction m_UI_RightClick; 1017 private readonly InputAction m_UI_TrackedDevicePosition; 1018 private readonly InputAction m_UI_TrackedDeviceOrientation; 1019 public struct UIActions 1020 { 1021 private @DefaultInputActions m_Wrapper; 1022 public UIActions(@DefaultInputActions wrapper) { m_Wrapper = wrapper; } 1023 public InputAction @Navigate => m_Wrapper.m_UI_Navigate; 1024 public InputAction @Submit => m_Wrapper.m_UI_Submit; 1025 public InputAction @Cancel => m_Wrapper.m_UI_Cancel; 1026 public InputAction @Point => m_Wrapper.m_UI_Point; 1027 public InputAction @Click => m_Wrapper.m_UI_Click; 1028 public InputAction @ScrollWheel => m_Wrapper.m_UI_ScrollWheel; 1029 public InputAction @MiddleClick => m_Wrapper.m_UI_MiddleClick; 1030 public InputAction @RightClick => m_Wrapper.m_UI_RightClick; 1031 public InputAction @TrackedDevicePosition => m_Wrapper.m_UI_TrackedDevicePosition; 1032 public InputAction @TrackedDeviceOrientation => m_Wrapper.m_UI_TrackedDeviceOrientation; 1033 public InputActionMap Get() { return m_Wrapper.m_UI; } 1034 public void Enable() { Get().Enable(); } 1035 public void Disable() { Get().Disable(); } 1036 public bool enabled => Get().enabled; 1037 public static implicit operator InputActionMap(UIActions set) { return set.Get(); } 1038 public void SetCallbacks(IUIActions instance) 1039 { 1040 if (m_Wrapper.m_UIActionsCallbackInterface != null) 1041 { 1042 @Navigate.started -= m_Wrapper.m_UIActionsCallbackInterface.OnNavigate; 1043 @Navigate.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnNavigate; 1044 @Navigate.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnNavigate; 1045 @Submit.started -= m_Wrapper.m_UIActionsCallbackInterface.OnSubmit; 1046 @Submit.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnSubmit; 1047 @Submit.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnSubmit; 1048 @Cancel.started -= m_Wrapper.m_UIActionsCallbackInterface.OnCancel; 1049 @Cancel.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnCancel; 1050 @Cancel.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnCancel; 1051 @Point.started -= m_Wrapper.m_UIActionsCallbackInterface.OnPoint; 1052 @Point.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnPoint; 1053 @Point.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnPoint; 1054 @Click.started -= m_Wrapper.m_UIActionsCallbackInterface.OnClick; 1055 @Click.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnClick; 1056 @Click.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnClick; 1057 @ScrollWheel.started -= m_Wrapper.m_UIActionsCallbackInterface.OnScrollWheel; 1058 @ScrollWheel.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnScrollWheel; 1059 @ScrollWheel.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnScrollWheel; 1060 @MiddleClick.started -= m_Wrapper.m_UIActionsCallbackInterface.OnMiddleClick; 1061 @MiddleClick.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnMiddleClick; 1062 @MiddleClick.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnMiddleClick; 1063 @RightClick.started -= m_Wrapper.m_UIActionsCallbackInterface.OnRightClick; 1064 @RightClick.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnRightClick; 1065 @RightClick.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnRightClick; 1066 @TrackedDevicePosition.started -= m_Wrapper.m_UIActionsCallbackInterface.OnTrackedDevicePosition; 1067 @TrackedDevicePosition.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnTrackedDevicePosition; 1068 @TrackedDevicePosition.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnTrackedDevicePosition; 1069 @TrackedDeviceOrientation.started -= m_Wrapper.m_UIActionsCallbackInterface.OnTrackedDeviceOrientation; 1070 @TrackedDeviceOrientation.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnTrackedDeviceOrientation; 1071 @TrackedDeviceOrientation.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnTrackedDeviceOrientation; 1072 } 1073 m_Wrapper.m_UIActionsCallbackInterface = instance; 1074 if (instance != null) 1075 { 1076 @Navigate.started += instance.OnNavigate; 1077 @Navigate.performed += instance.OnNavigate; 1078 @Navigate.canceled += instance.OnNavigate; 1079 @Submit.started += instance.OnSubmit; 1080 @Submit.performed += instance.OnSubmit; 1081 @Submit.canceled += instance.OnSubmit; 1082 @Cancel.started += instance.OnCancel; 1083 @Cancel.performed += instance.OnCancel; 1084 @Cancel.canceled += instance.OnCancel; 1085 @Point.started += instance.OnPoint; 1086 @Point.performed += instance.OnPoint; 1087 @Point.canceled += instance.OnPoint; 1088 @Click.started += instance.OnClick; 1089 @Click.performed += instance.OnClick; 1090 @Click.canceled += instance.OnClick; 1091 @ScrollWheel.started += instance.OnScrollWheel; 1092 @ScrollWheel.performed += instance.OnScrollWheel; 1093 @ScrollWheel.canceled += instance.OnScrollWheel; 1094 @MiddleClick.started += instance.OnMiddleClick; 1095 @MiddleClick.performed += instance.OnMiddleClick; 1096 @MiddleClick.canceled += instance.OnMiddleClick; 1097 @RightClick.started += instance.OnRightClick; 1098 @RightClick.performed += instance.OnRightClick; 1099 @RightClick.canceled += instance.OnRightClick; 1100 @TrackedDevicePosition.started += instance.OnTrackedDevicePosition; 1101 @TrackedDevicePosition.performed += instance.OnTrackedDevicePosition; 1102 @TrackedDevicePosition.canceled += instance.OnTrackedDevicePosition; 1103 @TrackedDeviceOrientation.started += instance.OnTrackedDeviceOrientation; 1104 @TrackedDeviceOrientation.performed += instance.OnTrackedDeviceOrientation; 1105 @TrackedDeviceOrientation.canceled += instance.OnTrackedDeviceOrientation; 1106 } 1107 } 1108 } 1109 public UIActions @UI => new UIActions(this); 1110 private int m_KeyboardMouseSchemeIndex = -1; 1111 public InputControlScheme KeyboardMouseScheme 1112 { 1113 get 1114 { 1115 if (m_KeyboardMouseSchemeIndex == -1) m_KeyboardMouseSchemeIndex = asset.FindControlSchemeIndex("Keyboard&Mouse"); 1116 return asset.controlSchemes[m_KeyboardMouseSchemeIndex]; 1117 } 1118 } 1119 private int m_GamepadSchemeIndex = -1; 1120 public InputControlScheme GamepadScheme 1121 { 1122 get 1123 { 1124 if (m_GamepadSchemeIndex == -1) m_GamepadSchemeIndex = asset.FindControlSchemeIndex("Gamepad"); 1125 return asset.controlSchemes[m_GamepadSchemeIndex]; 1126 } 1127 } 1128 private int m_TouchSchemeIndex = -1; 1129 public InputControlScheme TouchScheme 1130 { 1131 get 1132 { 1133 if (m_TouchSchemeIndex == -1) m_TouchSchemeIndex = asset.FindControlSchemeIndex("Touch"); 1134 return asset.controlSchemes[m_TouchSchemeIndex]; 1135 } 1136 } 1137 private int m_JoystickSchemeIndex = -1; 1138 public InputControlScheme JoystickScheme 1139 { 1140 get 1141 { 1142 if (m_JoystickSchemeIndex == -1) m_JoystickSchemeIndex = asset.FindControlSchemeIndex("Joystick"); 1143 return asset.controlSchemes[m_JoystickSchemeIndex]; 1144 } 1145 } 1146 private int m_XRSchemeIndex = -1; 1147 public InputControlScheme XRScheme 1148 { 1149 get 1150 { 1151 if (m_XRSchemeIndex == -1) m_XRSchemeIndex = asset.FindControlSchemeIndex("XR"); 1152 return asset.controlSchemes[m_XRSchemeIndex]; 1153 } 1154 } 1155 public interface IPlayerActions 1156 { 1157 void OnMove(InputAction.CallbackContext context); 1158 void OnLook(InputAction.CallbackContext context); 1159 void OnFire(InputAction.CallbackContext context); 1160 } 1161 public interface IUIActions 1162 { 1163 void OnNavigate(InputAction.CallbackContext context); 1164 void OnSubmit(InputAction.CallbackContext context); 1165 void OnCancel(InputAction.CallbackContext context); 1166 void OnPoint(InputAction.CallbackContext context); 1167 void OnClick(InputAction.CallbackContext context); 1168 void OnScrollWheel(InputAction.CallbackContext context); 1169 void OnMiddleClick(InputAction.CallbackContext context); 1170 void OnRightClick(InputAction.CallbackContext context); 1171 void OnTrackedDevicePosition(InputAction.CallbackContext context); 1172 void OnTrackedDeviceOrientation(InputAction.CallbackContext context); 1173 } 1174 } 1175}