| ofs | hex dump | ascii |
|---|
| 0000 | 00 00 0f 81 00 01 29 3c 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe | ......)<............2019.3.6f1.. |
| 0020 | ff ff ff 01 02 00 00 00 0b 04 00 00 00 ff ff 66 9a 86 21 eb 14 35 98 39 dd 34 1d 51 0e c1 f3 42 | ...............f..!..5.9.4.Q...B |
| 0040 | 00 00 00 ed 00 00 00 02 00 00 00 00 00 00 00 37 00 00 80 ff ff ff ff 00 00 00 00 00 80 00 00 00 | ...............7................ |
| 0060 | 00 00 00 00 00 00 00 01 00 01 00 a6 03 00 80 b2 01 00 80 04 00 00 00 01 00 00 00 01 00 00 00 00 | ................................ |
| 0080 | 00 00 00 00 00 00 00 01 00 01 00 0d 00 00 00 45 04 00 80 0c 00 00 00 02 00 00 00 01 00 00 00 00 | ...............E................ |
| 00a0 | 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 03 00 00 00 01 00 80 00 00 | ...............#................ |
| 00c0 | 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 04 00 00 00 01 00 80 00 00 | ...............,................ |
| 00e0 | 00 00 00 00 00 00 00 01 00 01 00 35 00 00 00 61 04 00 80 0c 00 00 00 05 00 00 00 01 00 00 00 00 | ...........5...a................ |
| 0100 | 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 06 00 00 00 01 00 80 00 00 | ...............#................ |
| 0120 | 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 07 00 00 00 01 00 80 00 00 | ...............,................ |
| 0140 | 00 00 00 00 00 00 00 01 00 01 00 86 02 00 80 72 04 00 80 0c 00 00 00 08 00 00 00 01 00 00 00 00 | ...............r................ |
| 0160 | 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 09 00 00 00 01 00 80 00 00 | ...............#................ |
| 0180 | 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 0a 00 00 00 01 00 80 00 00 | ...............,................ |
| 01a0 | 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ab 01 00 80 ff ff ff ff 0b 00 00 00 01 80 08 00 00 | ...........H.................... |
| 01c0 | 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 0c 00 00 00 01 40 08 00 00 | ...........1...1............@... |
| 01e0 | 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 0d 00 00 00 01 00 08 00 00 | ................................ |
| 0200 | 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 0e 00 00 00 01 00 08 00 00 | ...........Q...j................ |
| 0220 | 00 00 00 00 00 00 00 01 00 01 00 f1 00 00 80 4a 00 00 00 ff ff ff ff 0f 00 00 00 00 c0 00 00 00 | ...............J................ |
| 0240 | 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 10 00 00 00 00 80 00 00 00 | ...........1...1................ |
| 0260 | 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 11 00 00 00 00 00 00 00 00 | ................................ |
| 0280 | 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a 00 00 80 ff ff ff ff 12 00 00 00 00 80 00 00 00 | ...............j................ |
| 02a0 | 00 00 00 00 00 00 00 01 00 04 00 5c 00 00 00 9b 00 00 80 ff ff ff ff 13 00 00 00 00 80 00 00 00 | ...........\.................... |
| 02c0 | 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 72 00 00 00 ff ff ff ff 14 00 00 00 00 80 00 00 00 | ...........H...r................ |
| 02e0 | 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 15 00 00 00 01 40 00 00 00 | ...........1...1............@... |
| 0300 | 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 16 00 00 00 01 00 00 00 00 | ................................ |
| 0320 | 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 17 00 00 00 01 00 00 00 00 | ...........Q...j................ |
| 0340 | 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 77 00 00 00 ff ff ff ff 18 00 00 00 00 80 00 00 00 | ...........H...w................ |
| 0360 | 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 19 00 00 00 01 40 00 00 00 | ...........1...1............@... |
| 0380 | 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 1a 00 00 00 01 00 00 00 00 | ................................ |
| 03a0 | 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 1b 00 00 00 01 00 00 00 00 | ...........Q...j................ |
| 03c0 | 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 80 00 00 00 ff ff ff ff 1c 00 00 00 00 80 00 00 00 | ...........H.................... |
| 03e0 | 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 1d 00 00 00 01 40 00 00 00 | ...........1...1............@... |
| 0400 | 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 1e 00 00 00 01 00 00 00 00 | ................................ |
| 0420 | 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 1f 00 00 00 01 00 00 00 00 | ...........Q...j................ |
| 0440 | 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a 03 00 80 0c 00 00 00 20 00 00 00 00 00 00 00 00 | ...........y.................... |
| 0460 | 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 23 00 00 00 04 00 00 00 21 00 00 00 01 00 80 00 00 | ...............#.......!........ |
| 0480 | 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 2c 00 00 00 08 00 00 00 22 00 00 00 01 00 80 00 00 | ...............,......."........ |
| 04a0 | 00 00 00 00 00 00 00 01 00 01 00 11 03 00 80 85 00 00 00 ff ff ff ff 23 00 00 00 01 40 08 00 00 | .......................#....@... |
| 04c0 | 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 24 00 00 00 01 00 08 00 00 | ...........1...1.......$........ |
| 04e0 | 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 25 00 00 00 01 00 08 00 00 | .......................%........ |
| 0500 | 00 00 00 00 00 00 00 01 00 03 00 2e 03 00 80 6a 00 00 80 08 00 00 00 26 00 00 00 01 00 08 00 00 | ...............j.......&........ |
| 0520 | 00 00 00 00 00 00 00 01 00 01 00 d5 03 00 80 93 00 00 00 ff ff ff ff 27 00 00 00 00 80 00 00 00 | .......................'........ |
| 0540 | 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 28 00 00 00 00 c0 00 00 00 | ...........1...1.......(........ |
| 0560 | 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 29 00 00 00 00 00 00 00 00 | .......................)........ |
| 0580 | 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a 00 00 80 ff ff ff ff 2a 00 00 00 00 80 00 00 00 | ...............j.......*........ |
| 05a0 | 00 00 00 00 00 00 00 01 00 04 00 48 03 00 80 9b 00 00 80 ff ff ff ff 2b 00 00 00 00 80 00 00 00 | ...........H...........+........ |
| 05c0 | 00 00 00 00 00 00 00 01 00 05 01 31 00 00 80 31 00 00 80 ff ff ff ff 2c 00 00 00 01 40 00 00 00 | ...........1...1.......,....@... |
| 05e0 | 00 00 00 00 00 00 00 01 00 06 00 de 00 00 80 1b 03 00 80 04 00 00 00 2d 00 00 00 01 00 00 00 00 | .......................-........ |
| 0600 | 00 00 00 00 00 00 00 01 00 06 00 51 00 00 80 6a 00 00 80 01 00 00 00 2e 00 00 00 01 00 00 00 00 | ...........Q...j................ |
| 0620 | 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a 03 00 80 0c 00 00 00 2f 00 00 00 00 00 00 00 00 | ...........y.........../........ |
| 0640 | 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 23 00 00 00 04 00 00 00 30 00 00 00 01 00 80 00 00 | ...............#.......0........ |
| 0660 | 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 2c 00 00 00 08 00 00 00 31 00 00 00 01 00 80 00 00 | ...............,.......1........ |
| 0680 | 00 00 00 00 00 00 00 01 00 01 00 20 03 00 80 a7 00 00 00 02 00 00 00 32 00 00 00 00 40 00 00 00 | .......................2....@... |
| 06a0 | 00 00 00 00 00 00 00 01 00 01 00 be 02 00 80 b6 00 00 00 0c 00 00 00 33 00 00 00 00 40 00 00 00 | .......................3....@... |
| 06c0 | 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 34 00 00 00 01 00 80 00 00 | ...............#.......4........ |
| 06e0 | 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 35 00 00 00 01 00 80 00 00 | ...............,.......5........ |
| 0700 | 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 bb 00 00 00 ff ff ff ff 36 00 00 00 01 80 00 00 00 | ...........H...........6........ |
| 0720 | 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 37 00 00 00 01 40 00 00 00 | ...........1...1.......7....@... |
| 0740 | 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 38 00 00 00 01 00 00 00 00 | .......................8........ |
| 0760 | 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 39 00 00 00 01 00 00 00 00 | ...........Q...j.......9........ |
| 0780 | 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 c6 00 00 00 ff ff ff ff 3a 00 00 00 01 80 00 00 00 | ...........H...........:........ |
| 07a0 | 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 3b 00 00 00 01 40 00 00 00 | ...........1...1.......;....@... |
| 07c0 | 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 3c 00 00 00 01 00 00 00 00 | .......................<........ |
| 07e0 | 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 3d 00 00 00 01 00 00 00 00 | ...........Q...j.......=........ |
| 0800 | 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 d8 00 00 00 ff ff ff ff 3e 00 00 00 01 80 00 00 00 | ...........H...........>........ |
| 0820 | 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 3f 00 00 00 01 40 00 00 00 | ...........1...1.......?....@... |
| 0840 | 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 40 00 00 00 01 00 00 00 00 | .......................@........ |
| 0860 | 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 41 00 00 00 01 00 00 00 00 | ...........Q...j.......A........ |
| 0880 | 00 00 00 00 00 00 00 4d 6f 6e 6f 49 6d 70 6f 72 74 65 72 00 50 50 74 72 3c 45 64 69 74 6f 72 45 | .......MonoImporter.PPtr<EditorE |
| 08a0 | 78 74 65 6e 73 69 6f 6e 3e 00 6d 5f 46 69 6c 65 49 44 00 6d 5f 50 61 74 68 49 44 00 50 50 74 72 | xtension>.m_FileID.m_PathID.PPtr |
| 08c0 | 3c 50 72 65 66 61 62 49 6e 73 74 61 6e 63 65 3e 00 6d 5f 45 78 74 65 72 6e 61 6c 4f 62 6a 65 63 | <PrefabInstance>.m_ExternalObjec |
| 08e0 | 74 73 00 53 6f 75 72 63 65 41 73 73 65 74 49 64 65 6e 74 69 66 69 65 72 00 74 79 70 65 00 61 73 | ts.SourceAssetIdentifier.type.as |
| 0900 | 73 65 6d 62 6c 79 00 6e 61 6d 65 00 6d 5f 55 73 65 64 46 69 6c 65 49 44 73 00 6d 5f 44 65 66 61 | sembly.name.m_UsedFileIDs.m_Defa |
| 0920 | 75 6c 74 52 65 66 65 72 65 6e 63 65 73 00 65 78 65 63 75 74 69 6f 6e 4f 72 64 65 72 00 69 63 6f | ultReferences.executionOrder.ico |
| 0940 | 6e 00 6d 5f 55 73 65 72 44 61 74 61 00 6d 5f 41 73 73 65 74 42 75 6e 64 6c 65 4e 61 6d 65 00 6d | n.m_UserData.m_AssetBundleName.m |
| 0960 | 5f 41 73 73 65 74 42 75 6e 64 6c 65 56 61 72 69 61 6e 74 00 00 00 00 00 73 00 00 00 00 ff ff a3 | _AssetBundleVariant.....s....... |
| 0980 | 47 f1 d7 dc 8f 5a 35 36 a0 3a 21 40 69 c1 4a 2a 00 00 00 81 00 00 00 05 00 00 00 15 01 00 80 37 | G....Z56.:!@i.J*...............7 |
| 09a0 | 00 00 80 ff ff ff ff 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 01 00 01 00 a6 03 00 80 b2 | ................................ |
| 09c0 | 01 00 80 04 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 00 00 00 00 45 | ...............................E |
| 09e0 | 04 00 80 0c 00 00 00 02 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 | ................................ |
| 0a00 | 00 00 00 04 00 00 00 03 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f | ................................ |
| 0a20 | 00 00 00 08 00 00 00 04 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 28 00 00 00 61 | ...........................(...a |
| 0a40 | 04 00 80 0c 00 00 00 05 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 | ................................ |
| 0a60 | 00 00 00 04 00 00 00 06 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f | ................................ |
| 0a80 | 00 00 00 08 00 00 00 07 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 86 02 00 80 72 | ...............................r |
| 0aa0 | 04 00 80 0c 00 00 00 08 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 | ................................ |
| 0ac0 | 00 00 00 04 00 00 00 09 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f | ................................ |
| 0ae0 | 00 00 00 08 00 00 00 0a 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ab | ...........................H.... |
| 0b00 | 01 00 80 ff ff ff ff 0b 00 00 00 01 80 08 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 | ...........................1...1 |
| 0b20 | 00 00 80 ff ff ff ff 0c 00 00 00 01 40 08 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b | ............@................... |
| 0b40 | 03 00 80 04 00 00 00 0d 00 00 00 01 00 08 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a | ...........................Q...j |
| 0b60 | 00 00 80 01 00 00 00 0e 00 00 00 01 00 08 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ea | ...........................H.... |
| 0b80 | 01 00 80 ff ff ff ff 0f 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 | ...........................1...1 |
| 0ba0 | 00 00 80 ff ff ff ff 10 00 00 00 01 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b | ............@................... |
| 0bc0 | 03 00 80 04 00 00 00 11 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a | ...........................Q...j |
| 0be0 | 00 00 80 01 00 00 00 12 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 f1 00 00 80 3d | ...............................= |
| 0c00 | 00 00 00 ff ff ff ff 13 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 | ...........................1...1 |
| 0c20 | 00 00 80 ff ff ff ff 14 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b | ................................ |
| 0c40 | 03 00 80 04 00 00 00 15 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a | ...............................j |
| 0c60 | 00 00 80 ff ff ff ff 16 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 04 00 48 03 00 80 9b | ...........................H.... |
| 0c80 | 00 00 80 ff ff ff ff 17 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 05 01 31 00 00 80 31 | ...........................1...1 |
| 0ca0 | 00 00 80 ff ff ff ff 18 00 00 00 01 40 00 00 00 00 00 00 00 00 00 00 01 00 06 00 de 00 00 80 1b | ............@................... |
| 0cc0 | 03 00 80 04 00 00 00 19 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 06 00 51 00 00 80 6a | ...........................Q...j |
| 0ce0 | 00 00 80 01 00 00 00 1a 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a | ...........................y.... |
| 0d00 | 03 00 80 0c 00 00 00 1b 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 16 | ................................ |
| 0d20 | 00 00 00 04 00 00 00 1c 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 1f | ................................ |
| 0d40 | 00 00 00 08 00 00 00 1d 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 79 02 00 80 51 | ...........................y...Q |
| 0d60 | 00 00 00 0c 00 00 00 1e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 | ................................ |
| 0d80 | 00 00 00 04 00 00 00 1f 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f | ................................ |
| 0da0 | 00 00 00 08 00 00 00 20 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 de 00 00 80 58 | ...............................X |
| 0dc0 | 00 00 00 04 00 00 00 21 00 00 00 10 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 69 | .......!...................H...i |
| 0de0 | 00 00 00 ff ff ff ff 22 00 00 00 10 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 | ......."...................1...1 |
| 0e00 | 00 00 80 ff ff ff ff 23 00 00 00 11 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b | .......#....@................... |
| 0e20 | 03 00 80 04 00 00 00 24 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a | .......$...................Q...j |
| 0e40 | 00 00 80 01 00 00 00 25 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 75 | .......%...................H...u |
| 0e60 | 00 00 00 ff ff ff ff 26 00 00 00 10 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 | .......&...................1...1 |
| 0e80 | 00 00 80 ff ff ff ff 27 00 00 00 11 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b | .......'....@................... |
| 0ea0 | 03 00 80 04 00 00 00 28 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a | .......(...................Q...j |
| 0ec0 | 00 00 80 01 00 00 00 29 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 50 50 74 72 3c 45 64 69 74 | .......)...............PPtr<Edit |
| 0ee0 | 6f 72 45 78 74 65 6e 73 69 6f 6e 3e 00 6d 5f 46 69 6c 65 49 44 00 6d 5f 50 61 74 68 49 44 00 50 | orExtension>.m_FileID.m_PathID.P |
| 0f00 | 50 74 72 3c 50 72 65 66 61 62 49 6e 73 74 61 6e 63 65 3e 00 6d 5f 44 65 66 61 75 6c 74 52 65 66 | Ptr<PrefabInstance>.m_DefaultRef |
| 0f20 | 65 72 65 6e 63 65 73 00 6d 5f 49 63 6f 6e 00 6d 5f 45 78 65 63 75 74 69 6f 6e 4f 72 64 65 72 00 | erences.m_Icon.m_ExecutionOrder. |
| 0f40 | 6d 5f 43 6c 61 73 73 4e 61 6d 65 00 6d 5f 4e 61 6d 65 73 70 61 63 65 00 00 00 00 00 02 00 00 00 | m_ClassName.m_Namespace......... |
| 0f60 | 03 00 00 00 00 00 00 00 00 00 00 00 5c 00 00 00 00 00 00 00 e0 79 af 00 00 00 00 00 60 00 00 00 | ............\........y......`... |
| 0f80 | dc 18 01 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
| 0fa0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
| 0fc0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
| 0fe0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
| 1000 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
| 1020 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 e0 79 af 00 00 00 00 00 00 00 00 00 | .....................y.......... |
| 1040 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
| 1060 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
| 1080 | 00 00 00 00 00 00 00 00 0b 00 00 00 49 6e 70 75 74 41 63 74 69 6f 6e 00 5e 18 01 00 75 73 69 6e | ............InputAction.^...usin |
| 10a0 | 67 20 53 79 73 74 65 6d 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 6e 70 | g.System;..using.UnityEngine.Inp |
| 10c0 | 75 74 53 79 73 74 65 6d 2e 4c 6f 77 4c 65 76 65 6c 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 | utSystem.LowLevel;..using.UnityE |
| 10e0 | 6e 67 69 6e 65 2e 49 6e 70 75 74 53 79 73 74 65 6d 2e 55 74 69 6c 69 74 69 65 73 3b 0d 0a 75 73 | ngine.InputSystem.Utilities;..us |
| 1100 | 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 53 65 72 69 61 6c 69 7a 61 74 69 6f 6e 3b 0d 0a | ing.UnityEngine.Serialization;.. |
| 1120 | 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 61 64 64 20 77 61 79 20 74 6f 20 72 65 74 72 69 65 76 65 20 | ..////TODO:.add.way.to.retrieve. |
| 1140 | 74 68 65 20 62 69 6e 64 69 6e 67 20 63 6f 72 72 65 73 70 6f 6e 64 20 74 6f 20 61 20 63 6f 6e 74 | the.binding.correspond.to.a.cont |
| 1160 | 72 6f 6c 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 61 64 64 20 77 61 79 20 74 6f 20 72 65 74 72 | rol....////TODO:.add.way.to.retr |
| 1180 | 69 65 76 65 20 74 68 65 20 63 75 72 72 65 6e 74 6c 79 20 6f 6e 67 6f 69 6e 67 20 69 6e 74 65 72 | ieve.the.currently.ongoing.inter |
| 11a0 | 61 63 74 69 6f 6e 20 61 6e 64 20 61 6c 73 6f 20 61 64 64 20 77 61 79 20 74 6f 20 6b 6e 6f 77 20 | action.and.also.add.way.to.know. |
| 11c0 | 68 6f 77 20 6c 6f 6e 67 20 69 74 27 73 20 62 65 65 6e 20 67 6f 69 6e 67 20 6f 6e 0d 0a 0d 0a 2f | how.long.it's.been.going.on..../ |
| 11e0 | 2f 2f 2f 46 49 58 4d 45 3a 20 57 68 65 74 68 65 72 20 61 20 63 6f 6e 74 72 6f 6c 20 66 72 6f 6d | ///FIXME:.Whether.a.control.from |
| 1200 | 20 61 20 62 69 6e 64 69 6e 67 20 74 68 61 74 27 73 20 70 61 72 74 20 6f 66 20 61 20 63 6f 6d 70 | .a.binding.that's.part.of.a.comp |
| 1220 | 6f 73 69 74 65 20 61 70 70 65 61 72 73 20 6f 6e 20 61 6e 20 61 63 74 69 6f 6e 20 69 73 20 63 75 | osite.appears.on.an.action.is.cu |
| 1240 | 72 72 65 6e 74 6c 79 20 6e 6f 74 20 63 6f 6e 73 69 73 74 65 6e 74 6c 79 20 65 6e 66 6f 72 63 65 | rrently.not.consistently.enforce |
| 1260 | 64 2e 0d 0a 2f 2f 2f 2f 20 20 20 20 20 20 20 49 66 20 69 74 20 6d 65 6e 74 69 6f 6e 73 20 74 68 | d...////.......If.it.mentions.th |
| 1280 | 65 20 61 63 74 69 6f 6e 2c 20 69 74 20 61 70 70 65 61 72 73 20 6f 6e 20 74 68 65 20 61 63 74 69 | e.action,.it.appears.on.the.acti |
| 12a0 | 6f 6e 2e 20 4f 74 68 65 72 77 69 73 65 20 69 74 20 64 6f 65 73 6e 27 74 2e 20 54 68 65 20 63 6f | on..Otherwise.it.doesn't..The.co |
| 12c0 | 6e 74 72 6f 6c 73 20 73 68 6f 75 6c 64 20 63 6f 6e 73 69 73 74 65 6e 74 6c 79 20 61 70 70 65 61 | ntrols.should.consistently.appea |
| 12e0 | 72 20 6f 6e 20 74 68 65 0d 0a 2f 2f 2f 2f 20 20 20 20 20 20 20 61 63 74 69 6f 6e 20 62 61 73 65 | r.on.the..////.......action.base |
| 1300 | 64 20 6f 6e 20 77 68 61 74 20 61 63 74 69 6f 6e 20 74 68 65 20 2a 63 6f 6d 70 6f 73 69 74 65 2a | d.on.what.action.the.*composite* |
| 1320 | 20 72 65 66 65 72 65 6e 63 65 73 2e 0d 0a 0d 0a 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 53 68 6f 75 | .references.....////REVIEW:.Shou |
| 1340 | 6c 64 20 77 65 20 62 72 69 6e 67 20 74 68 65 20 63 68 65 63 6b 62 6f 78 65 73 20 66 6f 72 20 61 | ld.we.bring.the.checkboxes.for.a |
| 1360 | 63 74 69 6f 6e 73 20 62 61 63 6b 3f 20 57 65 20 74 72 69 65 64 20 74 6f 20 22 73 69 6d 70 6c 69 | ctions.back?.We.tried.to."simpli |
| 1380 | 66 79 22 20 74 68 69 6e 67 73 20 62 79 20 63 6f 6c 6c 61 70 73 69 6e 67 20 65 76 65 72 79 74 68 | fy".things.by.collapsing.everyth |
| 13a0 | 69 6e 67 20 69 6e 74 6f 20 61 20 49 6e 70 75 74 41 63 74 69 6f 6e 54 79 70 65 73 0d 0a 2f 2f 2f | ing.into.a.InputActionTypes../// |
| 13c0 | 2f 20 20 20 20 20 20 20 20 61 6e 64 20 6d 61 6b 69 6e 67 20 74 68 65 20 76 61 72 69 6f 75 73 20 | /........and.making.the.various. |
| 13e0 | 62 65 68 61 76 69 6f 72 20 74 6f 67 67 6c 65 73 20 69 6d 70 6c 69 63 69 74 20 69 6e 20 74 68 61 | behavior.toggles.implicit.in.tha |
| 1400 | 74 2e 20 48 6f 77 65 76 65 72 2c 20 6d 79 20 69 6d 70 72 65 73 73 69 6f 6e 20 69 73 20 74 68 61 | t..However,.my.impression.is.tha |
| 1420 | 74 20 74 68 69 73 20 68 61 73 20 6c 61 72 67 65 6c 79 20 62 61 63 6b 66 69 72 65 64 20 62 79 20 | t.this.has.largely.backfired.by. |
| 1440 | 6d 61 6b 69 6e 67 0d 0a 2f 2f 2f 2f 20 20 20 20 20 20 20 20 69 74 20 6f 70 61 71 75 65 20 77 68 | making..////........it.opaque.wh |
| 1460 | 61 74 20 74 68 65 20 63 68 6f 69 63 65 73 20 61 63 74 75 61 6c 6c 79 20 65 6e 74 61 69 6c 20 61 | at.the.choices.actually.entail.a |
| 1480 | 6e 64 20 62 79 20 67 69 76 69 6e 67 20 6e 6f 20 77 61 79 20 6f 75 74 20 69 66 20 74 68 65 20 63 | nd.by.giving.no.way.out.if.the.c |
| 14a0 | 68 6f 69 63 65 73 20 66 6f 72 20 6f 6e 65 20 72 65 61 73 6f 6e 20 6f 72 20 61 6e 6f 74 68 65 72 | hoices.for.one.reason.or.another |
| 14c0 | 20 64 6f 6e 27 74 20 77 6f 72 6b 20 6f 75 74 0d 0a 2f 2f 2f 2f 20 20 20 20 20 20 20 20 70 65 72 | .don't.work.out..////........per |
| 14e0 | 66 65 63 74 6c 79 2e 0d 0a 2f 2f 2f 2f 0d 0a 2f 2f 2f 2f 20 20 20 20 20 20 20 20 4d 79 20 69 6d | fectly...////..////........My.im |
| 1500 | 70 72 65 73 73 69 6f 6e 20 69 73 20 74 68 61 74 20 61 74 20 6c 65 61 73 74 20 74 77 6f 20 74 68 | pression.is.that.at.least.two.th |
| 1520 | 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 74 77 6f 20 63 68 65 63 6b 62 6f 78 65 73 20 77 6f 75 6c 64 | e.following.two.checkboxes.would |
| 1540 | 20 6d 61 6b 65 20 73 65 6e 73 65 3a 0d 0a 2f 2f 2f 2f 20 20 20 20 20 20 20 20 31 29 20 49 6e 69 | .make.sense:..////........1).Ini |
| 1560 | 74 69 61 6c 20 53 74 61 74 65 20 43 68 65 63 6b 3f 20 57 68 65 74 68 65 72 20 74 68 65 20 61 63 | tial.State.Check?.Whether.the.ac |
| 1580 | 74 69 6f 6e 20 73 68 6f 75 6c 64 20 69 6d 6d 65 64 69 61 74 65 6c 79 20 73 79 6e 63 20 74 6f 20 | tion.should.immediately.sync.to. |
| 15a0 | 74 68 65 20 63 75 72 72 65 6e 74 20 73 74 61 74 65 20 6f 66 20 63 6f 6e 74 72 6f 6c 73 20 77 68 | the.current.state.of.controls.wh |
| 15c0 | 65 6e 20 65 6e 61 62 6c 65 64 2e 0d 0a 2f 2f 2f 2f 20 20 20 20 20 20 20 20 32 29 20 52 65 73 6f | en.enabled...////........2).Reso |
| 15e0 | 6c 76 65 20 43 6f 6e 66 6c 69 63 74 69 6e 67 20 49 6e 70 75 74 73 3f 20 57 68 65 74 68 65 72 20 | lve.Conflicting.Inputs?.Whether. |
| 1600 | 74 68 65 20 61 63 74 69 6f 6e 20 73 68 6f 75 6c 64 20 74 72 79 20 74 6f 20 72 65 73 6f 6c 76 65 | the.action.should.try.to.resolve |
| 1620 | 20 63 6f 6e 66 6c 69 63 74 73 20 62 65 74 77 65 65 6e 20 6d 75 6c 74 69 70 6c 65 20 63 6f 6e 63 | .conflicts.between.multiple.conc |
| 1640 | 75 72 72 65 6e 74 20 69 6e 70 75 74 73 2e 0d 0a 2f 2f 2f 2f 0d 0a 2f 2f 2f 2f 20 20 20 20 20 20 | urrent.inputs...////..////...... |
| 1660 | 20 20 49 27 6d 20 66 69 6e 65 20 68 69 64 69 6e 67 20 74 68 69 73 20 75 6e 64 65 72 20 61 6e 20 | ..I'm.fine.hiding.this.under.an. |
| 1680 | 22 41 64 76 61 6e 63 65 64 22 20 66 6f 6c 64 6f 75 74 20 6f 72 20 73 6f 6d 65 74 68 69 6e 67 2e | "Advanced".foldout.or.something. |
| 16a0 | 20 42 75 74 20 49 4d 4f 2c 20 63 6f 6e 74 72 6f 6c 20 6f 76 65 72 20 74 68 69 73 20 73 68 6f 75 | .But.IMO,.control.over.this.shou |
| 16c0 | 6c 64 20 62 65 20 61 76 61 69 6c 61 62 6c 65 20 74 6f 20 74 68 65 20 75 73 65 72 2e 0d 0a 2f 2f | ld.be.available.to.the.user...// |
| 16e0 | 2f 2f 0d 0a 2f 2f 2f 2f 20 20 20 20 20 20 20 20 49 6e 20 74 68 65 20 73 61 6d 65 20 76 65 69 6e | //..////........In.the.same.vein |
| 1700 | 2c 20 77 65 20 70 72 6f 62 61 62 6c 79 20 61 6c 73 6f 20 73 68 6f 75 6c 64 20 65 78 70 6f 73 65 | ,.we.probably.also.should.expose |
| 1720 | 20 63 6f 6e 74 72 6f 6c 20 6f 76 65 72 20 68 6f 77 20 61 6e 20 61 63 74 69 6f 6e 20 62 65 68 61 | .control.over.how.an.action.beha |
| 1740 | 76 65 73 20 6f 6e 20 66 6f 63 75 73 20 6c 6f 73 73 20 28 68 74 74 70 73 3a 2f 2f 66 6f 72 75 6d | ves.on.focus.loss.(https://forum |
| 1760 | 2e 75 6e 69 74 79 2e 63 6f 6d 2f 74 68 72 65 61 64 73 2f 61 63 74 69 6f 6e 73 2d 63 61 6e 63 65 | .unity.com/threads/actions-cance |
| 1780 | 6c 65 64 2d 77 68 65 6e 2d 67 61 6d 65 2d 6c 6f 73 65 73 2d 66 6f 63 75 73 2e 38 35 35 32 31 37 | led-when-game-loses-focus.855217 |
| 17a0 | 2f 29 2e 0d 0a 0d 0a 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 49 20 74 68 69 6e 6b 20 74 68 65 20 61 | /).....////REVIEW:.I.think.the.a |
| 17c0 | 63 74 69 6f 6e 20 73 79 73 74 65 6d 20 61 73 20 69 74 20 69 73 20 74 6f 64 61 79 20 6f 66 66 65 | ction.system.as.it.is.today.offe |
| 17e0 | 72 73 20 74 6f 6f 20 6d 61 6e 79 20 77 61 79 73 20 74 6f 20 73 68 6f 6f 74 20 79 6f 75 72 73 65 | rs.too.many.ways.to.shoot.yourse |
| 1800 | 6c 66 20 69 6e 20 74 68 65 20 66 6f 6f 74 2e 20 49 74 20 68 61 73 0d 0a 2f 2f 2f 2f 20 20 20 20 | lf.in.the.foot..It.has..////.... |
| 1820 | 20 20 20 20 66 6c 65 78 69 62 69 6c 69 74 79 20 62 75 74 20 61 74 20 74 68 65 20 73 61 6d 65 20 | ....flexibility.but.at.the.same. |
| 1840 | 74 69 6d 65 20 68 61 73 20 61 62 75 6e 64 61 6e 74 20 6f 70 70 6f 72 74 75 6e 69 74 79 20 66 6f | time.has.abundant.opportunity.fo |
| 1860 | 72 20 65 6e 64 69 6e 67 20 75 70 20 77 69 74 68 20 64 79 73 66 75 6e 63 74 69 6f 6e 2e 20 43 6f | r.ending.up.with.dysfunction..Co |
| 1880 | 6d 6d 6f 6e 20 73 65 74 75 70 73 0d 0a 2f 2f 2f 2f 20 20 20 20 20 20 20 20 68 61 76 65 20 74 6f | mmon.setups..////........have.to |
| 18a0 | 20 63 6f 6d 65 20 70 72 65 63 6f 6e 66 69 67 75 72 65 64 20 61 6e 64 20 77 6f 72 6b 20 72 6f 62 | .come.preconfigured.and.work.rob |
| 18c0 | 75 73 74 6c 79 20 66 6f 72 20 74 68 65 20 75 73 65 72 20 77 69 74 68 6f 75 74 20 72 65 71 75 69 | ustly.for.the.user.without.requi |
| 18e0 | 72 69 6e 67 20 6d 75 63 68 20 75 6e 64 65 72 73 74 61 6e 64 69 6e 67 20 6f 66 20 68 6f 77 0d 0a | ring.much.understanding.of.how.. |
| 1900 | 2f 2f 2f 2f 20 20 20 20 20 20 20 20 74 68 65 20 73 79 73 74 65 6d 20 66 69 74 73 20 74 6f 67 65 | ////........the.system.fits.toge |
| 1920 | 74 68 65 72 2e 0d 0a 0d 0a 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 68 61 76 65 20 73 69 6e 67 6c 65 | ther.....////REVIEW:.have.single |
| 1940 | 20 64 65 6c 65 67 61 74 65 20 69 6e 73 74 65 61 64 20 6f 66 20 73 65 70 61 72 61 74 65 20 70 65 | .delegate.instead.of.separate.pe |
| 1960 | 72 66 6f 72 6d 65 64 2f 73 74 61 72 74 65 64 2f 63 61 6e 63 65 6c 65 64 20 63 61 6c 6c 62 61 63 | rformed/started/canceled.callbac |
| 1980 | 6b 73 3f 0d 0a 0d 0a 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 44 6f 20 77 65 20 6e 65 65 64 20 74 6f | ks?....////REVIEW:.Do.we.need.to |
| 19a0 | 20 68 61 76 65 20 73 65 70 61 72 61 74 65 20 64 69 73 70 6c 61 79 20 6e 61 6d 65 73 20 66 6f 72 | .have.separate.display.names.for |
| 19c0 | 20 61 63 74 69 6f 6e 73 3f 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 61 6c 6c 6f 77 20 63 68 61 | .actions?....////TODO:.allow.cha |
| 19e0 | 6e 67 69 6e 67 20 62 69 6e 64 69 6e 67 73 20 77 69 74 68 6f 75 74 20 68 61 76 69 6e 67 20 74 6f | nging.bindings.without.having.to |
| 1a00 | 20 64 69 73 61 62 6c 65 0d 0a 0d 0a 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 77 68 61 74 20 61 62 6f | .disable....////REVIEW:.what.abo |
| 1a20 | 75 74 20 68 61 76 69 6e 67 20 74 68 65 20 63 6f 6e 63 65 70 74 20 6f 66 20 22 63 6f 6e 73 75 6d | ut.having.the.concept.of."consum |
| 1a40 | 65 64 22 20 6f 6e 20 74 68 65 20 63 61 6c 6c 62 61 63 6b 20 63 6f 6e 74 65 78 74 3f 0d 0a 0d 0a | ed".on.the.callback.context?.... |
| 1a60 | 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 68 61 76 65 20 22 41 6c 77 61 79 73 20 45 6e 61 62 6c 65 64 | ////REVIEW:.have."Always.Enabled |
| 1a80 | 22 20 74 6f 67 67 6c 65 20 6f 6e 20 61 63 74 69 6f 6e 73 3f 0d 0a 0d 0a 6e 61 6d 65 73 70 61 63 | ".toggle.on.actions?....namespac |
| 1aa0 | 65 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 6e 70 75 74 53 79 73 74 65 6d 0d 0a 7b 0d 0a 20 20 | e.UnityEngine.InputSystem..{.... |
| 1ac0 | 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 2f 2f 2f 20 41 20 6e 61 6d 65 64 | ..///.<summary>......///.A.named |
| 1ae0 | 20 69 6e 70 75 74 20 73 69 67 6e 61 6c 20 74 68 61 74 20 63 61 6e 20 66 6c 65 78 69 62 6c 79 20 | .input.signal.that.can.flexibly. |
| 1b00 | 64 65 63 69 64 65 20 77 68 69 63 68 20 69 6e 70 75 74 20 64 61 74 61 20 74 6f 20 74 61 70 2e 0d | decide.which.input.data.to.tap.. |
| 1b20 | 0a 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 72 65 | .....///.</summary>......///.<re |
| 1b40 | 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 2f 2f 2f 20 41 6e 20 69 6e 70 75 74 20 61 63 74 69 6f 6e 20 | marks>......///.An.input.action. |
| 1b60 | 69 73 20 61 6e 20 61 62 73 74 72 61 63 74 69 6f 6e 20 6f 76 65 72 20 74 68 65 20 73 6f 75 72 63 | is.an.abstraction.over.the.sourc |
| 1b80 | 65 20 6f 66 20 69 6e 70 75 74 28 73 29 20 69 74 20 72 65 63 65 69 76 65 73 2e 20 54 68 65 79 20 | e.of.input(s).it.receives..They. |
| 1ba0 | 61 72 65 0d 0a 20 20 20 20 2f 2f 2f 20 6d 6f 73 74 20 75 73 65 66 75 6c 20 66 6f 72 20 72 65 70 | are......///.most.useful.for.rep |
| 1bc0 | 72 65 73 65 6e 74 69 6e 67 20 69 6e 70 75 74 20 61 73 20 22 6c 6f 67 69 63 61 6c 22 20 63 6f 6e | resenting.input.as."logical".con |
| 1be0 | 63 65 70 74 73 20 28 65 2e 67 2e 20 22 6a 75 6d 70 22 29 20 72 61 74 68 65 72 20 74 68 61 6e 0d | cepts.(e.g.."jump").rather.than. |
| 1c00 | 0a 20 20 20 20 2f 2f 2f 20 61 73 20 22 70 68 79 73 69 63 61 6c 22 20 69 6e 70 75 74 73 20 28 65 | .....///.as."physical".inputs.(e |
| 1c20 | 2e 67 2e 20 22 73 70 61 63 65 20 62 61 72 20 6f 6e 20 6b 65 79 62 6f 61 72 64 20 70 72 65 73 73 | .g.."space.bar.on.keyboard.press |
| 1c40 | 65 64 22 29 2e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 49 6e 20 69 74 73 20 6d | ed").......///......///.In.its.m |
| 1c60 | 6f 73 74 20 62 61 73 69 63 20 66 6f 72 6d 2c 20 61 6e 20 61 63 74 69 6f 6e 20 69 73 20 73 69 6d | ost.basic.form,.an.action.is.sim |
| 1c80 | 70 6c 79 20 61 6e 20 6f 62 6a 65 63 74 20 61 6c 6f 6e 67 20 77 69 74 68 20 61 20 63 6f 6c 6c 65 | ply.an.object.along.with.a.colle |
| 1ca0 | 63 74 69 6f 6e 20 6f 66 0d 0a 20 20 20 20 2f 2f 2f 20 62 69 6e 64 69 6e 67 73 20 74 68 61 74 20 | ction.of......///.bindings.that. |
| 1cc0 | 74 72 69 67 67 65 72 20 74 68 65 20 61 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 | trigger.the.action.......///.... |
| 1ce0 | 20 20 2f 2f 2f 20 3c 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 63 6f 64 65 3e 0d | ..///.<example>......///.<code>. |
| 1d00 | 0a 20 20 20 20 2f 2f 2f 20 2f 2f 20 41 20 73 69 6d 70 6c 65 20 61 63 74 69 6f 6e 20 63 61 6e 20 | .....///.//.A.simple.action.can. |
| 1d20 | 62 65 20 63 72 65 61 74 65 64 20 64 69 72 65 63 74 6c 79 20 75 73 69 6e 67 20 60 6e 65 77 60 2e | be.created.directly.using.`new`. |
| 1d40 | 20 49 66 20 64 65 73 69 72 65 64 2c 20 61 20 62 69 6e 64 69 6e 67 0d 0a 20 20 20 20 2f 2f 2f 20 | .If.desired,.a.binding......///. |
| 1d60 | 2f 2f 20 63 61 6e 20 62 65 20 73 70 65 63 69 66 69 65 64 20 64 69 72 65 63 74 6c 79 20 61 73 20 | //.can.be.specified.directly.as. |
| 1d80 | 70 61 72 74 20 6f 66 20 63 6f 6e 73 74 72 75 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 2f 2f 2f 20 76 | part.of.construction.......///.v |
| 1da0 | 61 72 20 61 63 74 69 6f 6e 20 3d 20 6e 65 77 20 49 6e 70 75 74 41 63 74 69 6f 6e 28 62 69 6e 64 | ar.action.=.new.InputAction(bind |
| 1dc0 | 69 6e 67 3a 20 22 26 6c 74 3b 47 61 6d 65 70 61 64 26 67 74 3b 2f 62 75 74 74 6f 6e 53 6f 75 74 | ing:."<Gamepad>/buttonSout |
| 1de0 | 68 22 29 3b 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 2f 2f 20 41 64 64 69 74 69 | h");......///......///.//.Additi |
| 1e00 | 6f 6e 61 6c 20 62 69 6e 64 69 6e 67 73 20 63 61 6e 20 62 65 20 61 64 64 65 64 20 75 73 69 6e 67 | onal.bindings.can.be.added.using |
| 1e20 | 20 60 41 64 64 42 69 6e 64 69 6e 67 60 2e 0d 0a 20 20 20 20 2f 2f 2f 20 61 63 74 69 6f 6e 2e 41 | .`AddBinding`.......///.action.A |
| 1e40 | 64 64 42 69 6e 64 69 6e 67 28 22 26 6c 74 3b 4d 6f 75 73 65 26 67 74 3b 2f 6c 65 66 74 42 75 74 | ddBinding("<Mouse>/leftBut |
| 1e60 | 74 6f 6e 22 29 3b 0d 0a 20 20 20 20 2f 2f 2f 20 3c 2f 63 6f 64 65 3e 0d 0a 20 20 20 20 2f 2f 2f | ton");......///.</code>....../// |
| 1e80 | 20 3c 2f 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 42 69 | .</example>......///......///.Bi |
| 1ea0 | 6e 64 69 6e 67 73 20 75 73 65 20 63 6f 6e 74 72 6f 6c 20 70 61 74 68 20 65 78 70 72 65 73 73 69 | ndings.use.control.path.expressi |
| 1ec0 | 6f 6e 73 20 74 6f 20 72 65 66 65 72 65 6e 63 65 20 63 6f 6e 74 72 6f 6c 73 2e 20 53 65 65 20 3c | ons.to.reference.controls..See.< |
| 1ee0 | 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 42 69 6e 64 69 6e 67 22 2f 3e 0d 0a 20 20 20 20 2f | see.cref="InputBinding"/>....../ |
| 1f00 | 2f 2f 20 66 6f 72 20 6d 6f 72 65 20 64 65 74 61 69 6c 73 2e 20 54 68 65 72 65 20 6d 61 79 20 62 | //.for.more.details..There.may.b |
| 1f20 | 65 20 61 72 62 69 74 72 61 72 79 20 6d 61 6e 79 20 62 69 6e 64 69 6e 67 73 20 74 61 72 67 65 74 | e.arbitrary.many.bindings.target |
| 1f40 | 69 6e 67 20 61 20 73 69 6e 67 6c 65 20 61 63 74 69 6f 6e 2e 20 54 68 65 0d 0a 20 20 20 20 2f 2f | ing.a.single.action..The......// |
| 1f60 | 2f 20 6c 69 73 74 20 6f 66 20 62 69 6e 64 69 6e 67 73 20 74 61 72 67 65 74 69 6e 67 20 61 6e 20 | /.list.of.bindings.targeting.an. |
| 1f80 | 61 63 74 69 6f 6e 20 63 61 6e 20 62 65 20 6f 62 74 61 69 6e 65 64 20 74 68 72 6f 75 67 68 20 3c | action.can.be.obtained.through.< |
| 1fa0 | 73 65 65 20 63 72 65 66 3d 22 62 69 6e 64 69 6e 67 73 22 2f 3e 2e 0d 0a 20 20 20 20 2f 2f 2f 0d | see.cref="bindings"/>.......///. |
| 1fc0 | 0a 20 20 20 20 2f 2f 2f 20 42 79 20 69 74 73 65 6c 66 20 61 6e 20 61 63 74 69 6f 6e 20 64 6f 65 | .....///.By.itself.an.action.doe |
| 1fe0 | 73 20 6e 6f 74 20 64 6f 20 61 6e 79 74 68 69 6e 67 20 75 6e 74 69 6c 20 69 74 20 69 73 20 65 6e | s.not.do.anything.until.it.is.en |
| 2000 | 61 62 6c 65 64 3a 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 3c 65 78 61 6d 70 6c | abled:......///......///.<exampl |
| 2020 | 65 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 63 6f 64 65 3e 0d 0a 20 20 20 20 2f 2f 2f 20 61 63 74 69 | e>......///.<code>......///.acti |
| 2040 | 6f 6e 2e 45 6e 61 62 6c 65 28 29 3b 0d 0a 20 20 20 20 2f 2f 2f 20 3c 2f 63 6f 64 65 3e 0d 0a 20 | on.Enable();......///.</code>... |
| 2060 | 20 20 20 2f 2f 2f 20 3c 2f 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 | ...///.</example>......///...... |
| 2080 | 2f 2f 2f 20 4f 6e 63 65 20 65 6e 61 62 6c 65 64 2c 20 74 68 65 20 61 63 74 69 6f 6e 20 77 69 6c | ///.Once.enabled,.the.action.wil |
| 20a0 | 6c 20 61 63 74 69 76 65 6c 79 20 6d 6f 6e 69 74 6f 72 20 61 6c 6c 20 63 6f 6e 74 72 6f 6c 73 20 | l.actively.monitor.all.controls. |
| 20c0 | 6f 6e 20 64 65 76 69 63 65 73 20 70 72 65 73 65 6e 74 0d 0a 20 20 20 20 2f 2f 2f 20 69 6e 20 74 | on.devices.present......///.in.t |
| 20e0 | 68 65 20 73 79 73 74 65 6d 20 28 73 65 65 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 53 | he.system.(see.<see.cref="InputS |
| 2100 | 79 73 74 65 6d 2e 64 65 76 69 63 65 73 22 2f 3e 29 20 74 68 61 74 20 6d 61 74 63 68 20 61 6e 79 | ystem.devices"/>).that.match.any |
| 2120 | 20 6f 66 20 74 68 65 20 62 69 6e 64 69 6e 67 20 70 61 74 68 73 0d 0a 20 20 20 20 2f 2f 2f 20 61 | .of.the.binding.paths......///.a |
| 2140 | 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 74 68 65 20 61 63 74 69 6f 6e 2e 20 49 66 20 79 6f | ssociated.with.the.action..If.yo |
| 2160 | 75 20 77 61 6e 74 20 74 6f 20 72 65 73 74 72 69 63 74 20 74 68 65 20 73 65 74 20 6f 66 20 62 69 | u.want.to.restrict.the.set.of.bi |
| 2180 | 6e 64 69 6e 67 73 20 75 73 65 64 20 61 74 20 72 75 6e 74 69 6d 65 0d 0a 20 20 20 20 2f 2f 2f 20 | ndings.used.at.runtime......///. |
| 21a0 | 6f 72 20 72 65 73 74 72 69 63 74 20 74 68 65 20 73 65 74 20 6f 66 20 64 65 76 69 63 65 73 20 77 | or.restrict.the.set.of.devices.w |
| 21c0 | 68 69 63 68 20 63 6f 6e 74 72 6f 6c 73 20 61 72 65 20 63 68 6f 73 65 6e 20 66 72 6f 6d 2c 20 79 | hich.controls.are.chosen.from,.y |
| 21e0 | 6f 75 20 63 61 6e 20 64 6f 20 73 6f 20 75 73 69 6e 67 0d 0a 20 20 20 20 2f 2f 2f 20 3c 73 65 65 | ou.can.do.so.using......///.<see |
| 2200 | 20 63 72 65 66 3d 22 62 69 6e 64 69 6e 67 4d 61 73 6b 22 2f 3e 20 6f 72 2c 20 69 66 20 74 68 65 | .cref="bindingMask"/>.or,.if.the |
| 2220 | 20 61 63 74 69 6f 6e 20 69 73 20 70 61 72 74 20 6f 66 20 61 6e 20 3c 73 65 65 20 63 72 65 66 3d | .action.is.part.of.an.<see.cref= |
| 2240 | 22 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 22 2f 3e 2c 0d 0a 20 20 20 20 2f 2f 2f 20 62 79 20 | "InputActionMap"/>,......///.by. |
| 2260 | 73 65 74 74 69 6e 67 20 74 68 65 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 | setting.the.<see.cref="InputActi |
| 2280 | 6f 6e 4d 61 70 2e 64 65 76 69 63 65 73 22 2f 3e 20 70 72 6f 70 65 72 74 79 20 6f 66 20 74 68 65 | onMap.devices"/>.property.of.the |
| 22a0 | 20 61 63 74 69 6f 6e 20 6d 61 70 2e 20 54 68 65 0d 0a 20 20 20 20 2f 2f 2f 20 63 6f 6e 74 72 6f | .action.map..The......///.contro |
| 22c0 | 6c 73 20 74 68 61 74 20 61 6e 20 61 63 74 69 6f 6e 20 75 73 65 73 20 63 61 6e 20 62 65 20 71 75 | ls.that.an.action.uses.can.be.qu |
| 22e0 | 65 72 69 65 64 20 75 73 69 6e 67 20 74 68 65 20 3c 73 65 65 20 63 72 65 66 3d 22 63 6f 6e 74 72 | eried.using.the.<see.cref="contr |
| 2300 | 6f 6c 73 22 2f 3e 20 70 72 6f 70 65 72 74 79 2e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f | ols"/>.property.......///....../ |
| 2320 | 2f 2f 20 57 68 65 6e 20 69 6e 70 75 74 20 69 73 20 72 65 63 65 69 76 65 64 20 6f 6e 20 63 6f 6e | //.When.input.is.received.on.con |
| 2340 | 74 72 6f 6c 73 20 62 6f 75 6e 64 20 74 6f 20 61 6e 20 61 63 74 69 6f 6e 2c 20 74 68 65 20 61 63 | trols.bound.to.an.action,.the.ac |
| 2360 | 74 69 6f 6e 20 77 69 6c 6c 20 74 72 69 67 67 65 72 20 63 61 6c 6c 62 61 63 6b 73 0d 0a 20 20 20 | tion.will.trigger.callbacks..... |
| 2380 | 20 2f 2f 2f 20 69 6e 20 72 65 73 70 6f 6e 73 65 2e 20 54 68 65 73 65 20 63 61 6c 6c 62 61 63 6b | .///.in.response..These.callback |
| 23a0 | 73 20 61 72 65 20 3c 73 65 65 20 63 72 65 66 3d 22 73 74 61 72 74 65 64 22 2f 3e 2c 20 3c 73 65 | s.are.<see.cref="started"/>,.<se |
| 23c0 | 65 20 63 72 65 66 3d 22 70 65 72 66 6f 72 6d 65 64 22 2f 3e 2c 20 61 6e 64 0d 0a 20 20 20 20 2f | e.cref="performed"/>,.and....../ |
| 23e0 | 2f 2f 20 3c 73 65 65 20 63 72 65 66 3d 22 63 61 6e 63 65 6c 65 64 22 2f 3e 2e 20 54 68 65 20 63 | //.<see.cref="canceled"/>..The.c |
| 2400 | 61 6c 6c 62 61 63 6b 73 20 61 72 65 20 74 72 69 67 67 65 72 65 64 20 61 73 20 70 61 72 74 20 6f | allbacks.are.triggered.as.part.o |
| 2420 | 66 20 69 6e 70 75 74 20 73 79 73 74 65 6d 20 75 70 64 61 74 65 73 0d 0a 20 20 20 20 2f 2f 2f 20 | f.input.system.updates......///. |
| 2440 | 28 73 65 65 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 53 79 73 74 65 6d 2e 55 70 64 61 | (see.<see.cref="InputSystem.Upda |
| 2460 | 74 65 22 2f 3e 29 2c 20 69 2e 65 2e 20 74 68 65 79 20 68 61 70 70 65 6e 20 62 65 66 6f 72 65 20 | te"/>),.i.e..they.happen.before. |
| 2480 | 74 68 65 20 72 65 73 70 65 63 74 69 76 65 0d 0a 20 20 20 20 2f 2f 2f 20 3c 63 3e 4d 6f 6e 6f 42 | the.respective......///.<c>MonoB |
| 24a0 | 65 68 61 76 69 6f 75 72 2e 55 70 64 61 74 65 3c 2f 63 3e 20 6f 72 20 3c 63 3e 4d 6f 6e 6f 42 65 | ehaviour.Update</c>.or.<c>MonoBe |
| 24c0 | 68 61 76 69 6f 75 72 2e 46 69 78 65 64 55 70 64 61 74 65 3c 2f 63 3e 20 6d 65 74 68 6f 64 73 0d | haviour.FixedUpdate</c>.methods. |
| 24e0 | 0a 20 20 20 20 2f 2f 2f 20 67 65 74 20 65 78 65 63 75 74 65 64 20 28 64 65 70 65 6e 64 69 6e 67 | .....///.get.executed.(depending |
| 2500 | 20 6f 6e 20 77 68 69 63 68 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 53 65 74 74 69 6e | .on.which.<see.cref="InputSettin |
| 2520 | 67 73 2e 75 70 64 61 74 65 4d 6f 64 65 22 2f 3e 20 74 68 65 20 73 79 73 74 65 6d 20 69 73 0d 0a | gs.updateMode"/>.the.system.is.. |
| 2540 | 20 20 20 20 2f 2f 2f 20 73 65 74 20 74 6f 29 2e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f | ....///.set.to).......///....../ |
| 2560 | 2f 2f 20 49 6e 20 77 68 61 74 20 6f 72 64 65 72 20 61 6e 64 20 68 6f 77 20 74 68 6f 73 65 20 63 | //.In.what.order.and.how.those.c |
| 2580 | 61 6c 6c 62 61 63 6b 73 20 67 65 74 20 74 72 69 67 67 65 72 65 64 20 64 65 70 65 6e 64 73 20 6f | allbacks.get.triggered.depends.o |
| 25a0 | 6e 20 62 6f 74 68 20 74 68 65 20 3c 73 65 65 20 63 72 65 66 3d 22 74 79 70 65 22 2f 3e 0d 0a 20 | n.both.the.<see.cref="type"/>... |
| 25c0 | 20 20 20 2f 2f 2f 20 6f 66 20 74 68 65 20 61 63 74 69 6f 6e 20 61 73 20 77 65 6c 6c 20 61 73 20 | ...///.of.the.action.as.well.as. |
| 25e0 | 6f 6e 20 74 68 65 20 69 6e 74 65 72 61 63 74 69 6f 6e 73 20 28 73 65 65 20 3c 73 65 65 20 63 72 | on.the.interactions.(see.<see.cr |
| 2600 | 65 66 3d 22 49 49 6e 70 75 74 49 6e 74 65 72 61 63 74 69 6f 6e 22 2f 3e 29 20 70 72 65 73 65 6e | ef="IInputInteraction"/>).presen |
| 2620 | 74 0d 0a 20 20 20 20 2f 2f 2f 20 6f 6e 20 74 68 65 20 62 69 6e 64 69 6e 67 73 20 6f 66 20 74 68 | t......///.on.the.bindings.of.th |
| 2640 | 65 20 61 63 74 69 6f 6e 2e 20 54 68 65 20 64 65 66 61 75 6c 74 20 62 65 68 61 76 69 6f 72 20 69 | e.action..The.default.behavior.i |
| 2660 | 73 20 74 68 61 74 20 77 68 65 6e 20 61 20 63 6f 6e 74 72 6f 6c 20 69 73 20 61 63 74 75 61 74 65 | s.that.when.a.control.is.actuate |
| 2680 | 64 0d 0a 20 20 20 20 2f 2f 2f 20 28 69 2e 65 2e 20 6d 6f 76 69 6e 67 20 61 77 61 79 20 66 72 6f | d......///.(i.e..moving.away.fro |
| 26a0 | 6d 20 69 74 73 20 72 65 73 74 69 6e 67 20 70 6f 73 69 74 69 6f 6e 29 2c 20 3c 73 65 65 20 63 72 | m.its.resting.position),.<see.cr |
| 26c0 | 65 66 3d 22 73 74 61 72 74 65 64 22 2f 3e 20 69 73 20 63 61 6c 6c 65 64 20 61 6e 64 20 74 68 65 | ef="started"/>.is.called.and.the |
| 26e0 | 6e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 73 65 65 20 63 72 65 66 3d 22 70 65 72 66 6f 72 6d 65 64 22 | n......///.<see.cref="performed" |
| 2700 | 2f 3e 2e 20 53 75 62 73 65 71 75 65 6e 74 6c 79 2c 20 77 68 65 6e 65 76 65 72 20 74 68 65 20 61 | />..Subsequently,.whenever.the.a |
| 2720 | 20 63 6f 6e 74 72 6f 6c 20 66 75 72 74 68 65 72 20 63 68 61 6e 67 65 73 20 76 61 6c 75 65 20 74 | .control.further.changes.value.t |
| 2740 | 6f 0d 0a 20 20 20 20 2f 2f 2f 20 61 6e 79 74 68 69 6e 67 20 6f 74 68 65 72 20 74 68 61 6e 20 69 | o......///.anything.other.than.i |
| 2760 | 74 73 20 64 65 66 61 75 6c 74 20 76 61 6c 75 65 2c 20 3c 73 65 65 20 63 72 65 66 3d 22 70 65 72 | ts.default.value,.<see.cref="per |
| 2780 | 66 6f 72 6d 65 64 22 2f 3e 20 77 69 6c 6c 20 62 65 20 63 61 6c 6c 65 64 20 61 67 61 69 6e 2e 0d | formed"/>.will.be.called.again.. |
| 27a0 | 0a 20 20 20 20 2f 2f 2f 20 46 69 6e 61 6c 6c 79 2c 20 77 68 65 6e 20 74 68 65 20 63 6f 6e 74 72 | .....///.Finally,.when.the.contr |
| 27c0 | 6f 6c 20 6d 6f 76 65 73 20 62 61 63 6b 20 74 6f 20 69 74 73 20 64 65 66 61 75 6c 74 20 76 61 6c | ol.moves.back.to.its.default.val |
| 27e0 | 75 65 20 28 69 2e 65 2e 20 72 65 73 74 69 6e 67 20 70 6f 73 69 74 69 6f 6e 29 2c 0d 0a 20 20 20 | ue.(i.e..resting.position),..... |
| 2800 | 20 2f 2f 2f 20 3c 73 65 65 20 63 72 65 66 3d 22 63 61 6e 63 65 6c 65 64 22 2f 3e 20 69 73 20 63 | .///.<see.cref="canceled"/>.is.c |
| 2820 | 61 6c 6c 65 64 2e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 54 6f 20 68 6f 6f 6b | alled.......///......///.To.hook |
| 2840 | 20 69 6e 74 6f 20 74 68 65 20 63 61 6c 6c 62 61 63 6b 73 2c 20 74 68 65 72 65 20 61 72 65 20 73 | .into.the.callbacks,.there.are.s |
| 2860 | 65 76 65 72 61 6c 20 6f 70 74 69 6f 6e 73 20 61 76 61 69 6c 61 62 6c 65 20 74 6f 20 79 6f 75 2e | everal.options.available.to.you. |
| 2880 | 20 54 68 65 20 6d 6f 73 74 20 6f 62 76 69 6f 75 73 0d 0a 20 20 20 20 2f 2f 2f 20 6f 6e 65 20 69 | .The.most.obvious......///.one.i |
| 28a0 | 73 20 74 6f 20 68 6f 6f 6b 20 64 69 72 65 63 74 6c 79 20 69 6e 74 6f 20 3c 73 65 65 20 63 72 65 | s.to.hook.directly.into.<see.cre |
| 28c0 | 66 3d 22 73 74 61 72 74 65 64 22 2f 3e 2c 20 3c 73 65 65 20 63 72 65 66 3d 22 70 65 72 66 6f 72 | f="started"/>,.<see.cref="perfor |
| 28e0 | 6d 65 64 22 2f 3e 2c 20 61 6e 64 2f 6f 72 0d 0a 20 20 20 20 2f 2f 2f 20 3c 73 65 65 20 63 72 65 | med"/>,.and/or......///.<see.cre |
| 2900 | 66 3d 22 63 61 6e 63 65 6c 65 64 22 2f 3e 2e 20 49 6e 20 74 68 65 73 65 20 63 61 6c 6c 62 61 63 | f="canceled"/>..In.these.callbac |
| 2920 | 6b 73 2c 20 79 6f 75 20 77 69 6c 6c 20 72 65 63 65 69 76 65 20 61 20 3c 73 65 65 20 63 72 65 66 | ks,.you.will.receive.a.<see.cref |
| 2940 | 3d 22 43 61 6c 6c 62 61 63 6b 43 6f 6e 74 65 78 74 22 2f 3e 0d 0a 20 20 20 20 2f 2f 2f 20 77 69 | ="CallbackContext"/>......///.wi |
| 2960 | 74 68 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 61 62 6f 75 74 20 68 6f 77 20 74 68 65 20 61 63 74 | th.information.about.how.the.act |
| 2980 | 69 6f 6e 20 67 6f 74 20 74 72 69 67 67 65 72 65 64 2e 20 46 6f 72 20 65 78 61 6d 70 6c 65 2c 20 | ion.got.triggered..For.example,. |
| 29a0 | 79 6f 75 20 63 61 6e 20 75 73 65 20 3c 73 65 65 0d 0a 20 20 20 20 2f 2f 2f 20 63 72 65 66 3d 22 | you.can.use.<see......///.cref=" |
| 29c0 | 43 61 6c 6c 62 61 63 6b 43 6f 6e 74 65 78 74 2e 52 65 61 64 56 61 6c 75 65 7b 54 56 61 6c 75 65 | CallbackContext.ReadValue{TValue |
| 29e0 | 7d 22 2f 3e 20 74 6f 20 72 65 61 64 20 74 68 65 20 76 61 6c 75 65 20 66 72 6f 6d 20 74 68 65 20 | }"/>.to.read.the.value.from.the. |
| 2a00 | 62 69 6e 64 69 6e 67 20 74 68 61 74 20 74 72 69 67 67 65 72 65 64 0d 0a 20 20 20 20 2f 2f 2f 20 | binding.that.triggered......///. |
| 2a20 | 6f 72 20 75 73 65 20 3c 73 65 65 20 63 72 65 66 3d 22 43 61 6c 6c 62 61 63 6b 43 6f 6e 74 65 78 | or.use.<see.cref="CallbackContex |
| 2a40 | 74 2e 69 6e 74 65 72 61 63 74 69 6f 6e 22 2f 3e 20 74 6f 20 66 69 6e 64 20 74 68 65 20 69 6e 74 | t.interaction"/>.to.find.the.int |
| 2a60 | 65 72 61 63 74 69 6f 6e 20 74 68 61 74 20 69 73 20 69 6e 20 70 72 6f 67 72 65 73 73 2e 0d 0a 20 | eraction.that.is.in.progress.... |
| 2a80 | 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 3c 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 2f | ...///......///.<example>....../ |
| 2aa0 | 2f 2f 20 3c 63 6f 64 65 3e 0d 0a 20 20 20 20 2f 2f 2f 20 61 63 74 69 6f 6e 2e 73 74 61 72 74 65 | //.<code>......///.action.starte |
| 2ac0 | 64 20 2b 3d 20 63 6f 6e 74 65 78 74 20 3d 3e 20 44 65 62 75 67 2e 4c 6f 67 28 24 22 7b 63 6f 6e | d.+=.context.=>.Debug.Log($"{con |
| 2ae0 | 74 65 78 74 2e 61 63 74 69 6f 6e 7d 20 73 74 61 72 74 65 64 22 29 3b 0d 0a 20 20 20 20 2f 2f 2f | text.action}.started");....../// |
| 2b00 | 20 61 63 74 69 6f 6e 2e 70 65 72 66 6f 72 6d 65 64 20 2b 3d 20 63 6f 6e 74 65 78 74 20 3d 3e 20 | .action.performed.+=.context.=>. |
| 2b20 | 44 65 62 75 67 2e 4c 6f 67 28 24 22 7b 63 6f 6e 74 65 78 74 2e 61 63 74 69 6f 6e 7d 20 70 65 72 | Debug.Log($"{context.action}.per |
| 2b40 | 66 6f 72 6d 65 64 22 29 3b 0d 0a 20 20 20 20 2f 2f 2f 20 61 63 74 69 6f 6e 2e 63 61 6e 63 65 6c | formed");......///.action.cancel |
| 2b60 | 65 64 20 2b 3d 20 63 6f 6e 74 65 78 74 20 3d 3e 20 44 65 62 75 67 2e 4c 6f 67 28 24 22 7b 63 6f | ed.+=.context.=>.Debug.Log($"{co |
| 2b80 | 6e 74 65 78 74 2e 61 63 74 69 6f 6e 7d 20 63 61 6e 63 65 6c 65 64 22 29 3b 0d 0a 20 20 20 20 2f | ntext.action}.canceled");....../ |
| 2ba0 | 2f 2f 20 3c 2f 63 6f 64 65 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 2f 65 78 61 6d 70 6c 65 3e 0d 0a | //.</code>......///.</example>.. |
| 2bc0 | 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 41 6c 74 65 72 6e 61 74 69 76 65 6c 79 2c 20 | ....///......///.Alternatively,. |
| 2be0 | 79 6f 75 20 63 61 6e 20 75 73 65 20 74 68 65 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 | you.can.use.the.<see.cref="Input |
| 2c00 | 41 63 74 69 6f 6e 4d 61 70 2e 61 63 74 69 6f 6e 54 72 69 67 67 65 72 65 64 22 2f 3e 20 63 61 6c | ActionMap.actionTriggered"/>.cal |
| 2c20 | 6c 62 61 63 6b 20 66 6f 72 0d 0a 20 20 20 20 2f 2f 2f 20 61 63 74 69 6f 6e 73 20 74 68 61 74 20 | lback.for......///.actions.that. |
| 2c40 | 61 72 65 20 70 61 72 74 20 6f 66 20 61 6e 20 61 63 74 69 6f 6e 20 6d 61 70 20 6f 72 20 74 68 65 | are.part.of.an.action.map.or.the |
| 2c60 | 20 67 6c 6f 62 61 6c 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 53 79 73 74 65 6d 2e 6f | .global.<see.cref="InputSystem.o |
| 2c80 | 6e 41 63 74 69 6f 6e 43 68 61 6e 67 65 22 2f 3e 0d 0a 20 20 20 20 2f 2f 2f 20 63 61 6c 6c 62 61 | nActionChange"/>......///.callba |
| 2ca0 | 63 6b 20 74 6f 20 67 6c 6f 62 61 6c 6c 79 20 6c 69 73 74 65 6e 20 66 6f 72 20 61 63 74 69 6f 6e | ck.to.globally.listen.for.action |
| 2cc0 | 20 61 63 74 69 76 69 74 79 2e 20 54 6f 20 73 69 6d 70 6c 79 20 72 65 63 6f 72 64 20 61 63 74 69 | .activity..To.simply.record.acti |
| 2ce0 | 6f 6e 20 61 63 74 69 76 69 74 79 20 69 6e 73 74 65 61 64 0d 0a 20 20 20 20 2f 2f 2f 20 6f 66 20 | on.activity.instead......///.of. |
| 2d00 | 72 65 73 70 6f 6e 64 69 6e 67 20 74 6f 20 69 74 20 64 69 72 65 63 74 6c 79 2c 20 79 6f 75 20 63 | responding.to.it.directly,.you.c |
| 2d20 | 61 6e 20 75 73 65 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 54 72 61 | an.use.<see.cref="InputActionTra |
| 2d40 | 63 65 22 2f 3e 2e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 49 66 20 79 6f 75 20 | ce"/>.......///......///.If.you. |
| 2d60 | 70 72 65 66 65 72 20 74 6f 20 70 6f 6c 6c 20 61 6e 20 61 63 74 69 6f 6e 20 64 69 72 65 63 74 6c | prefer.to.poll.an.action.directl |
| 2d80 | 79 20 61 73 20 70 61 72 74 20 6f 66 20 79 6f 75 72 20 3c 63 3e 4d 6f 6e 6f 42 65 68 61 76 69 6f | y.as.part.of.your.<c>MonoBehavio |
| 2da0 | 75 72 2e 55 70 64 61 74 65 3c 2f 63 3e 0d 0a 20 20 20 20 2f 2f 2f 20 6f 72 20 3c 63 3e 4d 6f 6e | ur.Update</c>......///.or.<c>Mon |
| 2dc0 | 6f 42 65 68 61 76 69 6f 75 72 2e 46 69 78 65 64 55 70 64 61 74 65 3c 2f 63 3e 20 6c 6f 67 69 63 | oBehaviour.FixedUpdate</c>.logic |
| 2de0 | 2c 20 79 6f 75 20 63 61 6e 20 64 6f 20 73 6f 20 75 73 69 6e 67 20 74 68 65 20 3c 73 65 65 20 63 | ,.you.can.do.so.using.the.<see.c |
| 2e00 | 72 65 66 3d 22 74 72 69 67 67 65 72 65 64 22 2f 3e 0d 0a 20 20 20 20 2f 2f 2f 20 61 6e 64 20 3c | ref="triggered"/>......///.and.< |
| 2e20 | 73 65 65 20 63 72 65 66 3d 22 52 65 61 64 56 61 6c 75 65 7b 54 56 61 6c 75 65 7d 22 2f 3e 20 6d | see.cref="ReadValue{TValue}"/>.m |
| 2e40 | 65 74 68 6f 64 73 2e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 3c 65 78 61 6d 70 | ethods.......///......///.<examp |
| 2e60 | 6c 65 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 63 6f 64 65 3e 0d 0a 20 20 20 20 2f 2f 2f 20 70 72 6f | le>......///.<code>......///.pro |
| 2e80 | 74 65 63 74 65 64 20 76 6f 69 64 20 55 70 64 61 74 65 28 29 0d 0a 20 20 20 20 2f 2f 2f 20 7b 0d | tected.void.Update()......///.{. |
| 2ea0 | 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 2f 2f 20 46 6f 72 20 61 20 62 75 74 74 6f 6e 20 74 79 70 | .....///.....//.For.a.button.typ |
| 2ec0 | 65 20 61 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 69 66 20 28 61 63 74 69 6f | e.action.......///.....if.(actio |
| 2ee0 | 6e 2e 74 72 69 67 67 65 72 65 64 29 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 2f 2a | n.triggered)......///........./* |
| 2f00 | 20 2e 2e 2e 20 2a 2f 3b 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 2f | .....*/;......///......///...../ |
| 2f20 | 2f 20 46 6f 72 20 61 20 76 61 6c 75 65 20 74 79 70 65 20 61 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 | /.For.a.value.type.action....... |
| 2f40 | 2f 2f 2f 20 20 20 20 20 2f 2f 20 28 56 65 63 74 6f 72 32 20 69 73 20 6a 75 73 74 20 61 6e 20 65 | ///.....//.(Vector2.is.just.an.e |
| 2f60 | 78 61 6d 70 6c 65 3b 20 70 69 63 6b 20 74 68 65 20 76 61 6c 75 65 20 74 79 70 65 20 74 68 61 74 | xample;.pick.the.value.type.that |
| 2f80 | 20 69 73 20 74 68 65 20 72 69 67 68 74 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 2f 2f 20 6f 6e | .is.the.right......///.....//.on |
| 2fa0 | 65 20 61 63 63 6f 72 64 69 6e 67 20 74 6f 20 74 68 65 20 62 69 6e 64 69 6e 67 73 20 79 6f 75 20 | e.according.to.the.bindings.you. |
| 2fc0 | 68 61 76 65 29 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 76 61 72 20 76 20 3d 20 61 63 74 69 6f | have)......///.....var.v.=.actio |
| 2fe0 | 6e 2e 52 65 61 64 56 61 6c 75 65 26 6c 74 3b 56 65 63 74 6f 72 32 26 67 74 3b 28 29 3b 0d 0a 20 | n.ReadValue<Vector2>();... |
| 3000 | 20 20 20 2f 2f 2f 20 7d 0d 0a 20 20 20 20 2f 2f 2f 20 3c 2f 63 6f 64 65 3e 0d 0a 20 20 20 20 2f | ...///.}......///.</code>....../ |
| 3020 | 2f 2f 20 3c 2f 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 | //.</example>......///......///. |
| 3040 | 4e 6f 74 65 20 74 68 61 74 20 61 63 74 69 6f 6e 73 20 61 72 65 20 6e 6f 74 20 67 65 6e 65 72 61 | Note.that.actions.are.not.genera |
| 3060 | 6c 6c 79 20 66 72 61 6d 65 2d 62 61 73 65 64 2e 20 57 68 61 74 20 74 68 69 73 20 6d 65 61 6e 73 | lly.frame-based..What.this.means |
| 3080 | 20 69 73 20 74 68 61 74 20 61 6e 20 61 63 74 69 6f 6e 0d 0a 20 20 20 20 2f 2f 2f 20 77 69 6c 6c | .is.that.an.action......///.will |
| 30a0 | 20 6f 62 73 65 72 76 65 20 61 6e 79 20 76 61 6c 75 65 20 63 68 61 6e 67 65 20 6f 6e 20 69 74 73 | .observe.any.value.change.on.its |
| 30c0 | 20 63 6f 6e 6e 65 63 74 65 64 20 63 6f 6e 74 72 6f 6c 73 2c 20 65 76 65 6e 20 69 66 20 74 68 65 | .connected.controls,.even.if.the |
| 30e0 | 20 63 6f 6e 74 72 6f 6c 20 63 68 61 6e 67 65 73 0d 0a 20 20 20 20 2f 2f 2f 20 76 61 6c 75 65 20 | .control.changes......///.value. |
| 3100 | 6d 75 6c 74 69 70 6c 65 20 74 69 6d 65 73 20 69 6e 20 74 68 65 20 73 61 6d 65 20 66 72 61 6d 65 | multiple.times.in.the.same.frame |
| 3120 | 2e 20 49 6e 20 70 72 61 63 74 69 63 65 2c 20 74 68 69 73 20 6d 65 61 6e 73 20 74 68 61 74 2c 20 | ..In.practice,.this.means.that,. |
| 3140 | 66 6f 72 20 65 78 61 6d 70 6c 65 2c 0d 0a 20 20 20 20 2f 2f 2f 20 6e 6f 20 62 75 74 74 6f 6e 20 | for.example,......///.no.button. |
| 3160 | 70 72 65 73 73 20 77 69 6c 6c 20 67 65 74 20 6d 69 73 73 65 64 2e 0d 0a 20 20 20 20 2f 2f 2f 0d | press.will.get.missed.......///. |
| 3180 | 0a 20 20 20 20 2f 2f 2f 20 41 63 74 69 6f 6e 73 20 63 61 6e 20 62 65 20 67 72 6f 75 70 65 64 20 | .....///.Actions.can.be.grouped. |
| 31a0 | 69 6e 74 6f 20 6d 61 70 73 20 28 73 65 65 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 | into.maps.(see.<see.cref="InputA |
| 31c0 | 63 74 69 6f 6e 4d 61 70 22 2f 3e 29 20 77 68 69 63 68 20 63 61 6e 20 69 6e 20 74 75 72 6e 0d 0a | ctionMap"/>).which.can.in.turn.. |
| 31e0 | 20 20 20 20 2f 2f 2f 20 62 65 20 67 72 6f 75 70 65 64 20 69 6e 74 6f 20 61 73 73 65 74 73 20 28 | ....///.be.grouped.into.assets.( |
| 3200 | 73 65 65 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 22 | see.<see.cref="InputActionAsset" |
| 3220 | 2f 3e 29 2e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 50 6c 65 61 73 65 20 6e 6f | />).......///......///.Please.no |
| 3240 | 74 65 20 74 68 61 74 20 61 63 74 69 6f 6e 73 20 61 72 65 20 61 20 70 6c 61 79 65 72 2d 6f 6e 6c | te.that.actions.are.a.player-onl |
| 3260 | 79 20 66 65 61 74 75 72 65 2e 20 54 68 65 79 20 61 72 65 20 6e 6f 74 20 73 75 70 70 6f 72 74 65 | y.feature..They.are.not.supporte |
| 3280 | 64 20 69 6e 0d 0a 20 20 20 20 2f 2f 2f 20 65 64 69 74 20 6d 6f 64 65 2e 0d 0a 20 20 20 20 2f 2f | d.in......///.edit.mode.......// |
| 32a0 | 2f 0d 0a 20 20 20 20 2f 2f 2f 20 46 6f 72 20 6d 6f 72 65 20 69 6e 2d 64 65 70 74 68 20 72 65 61 | /......///.For.more.in-depth.rea |
| 32c0 | 64 69 6e 67 20 6f 6e 20 61 63 74 69 6f 6e 73 2c 20 73 65 65 20 74 68 65 20 3c 61 20 68 72 65 66 | ding.on.actions,.see.the.<a.href |
| 32e0 | 3d 22 2e 2e 2f 6d 61 6e 75 61 6c 2f 41 63 74 69 6f 6e 73 2e 68 74 6d 6c 22 3e 6d 61 6e 75 61 6c | ="../manual/Actions.html">manual |
| 3300 | 3c 2f 61 3e 2e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 2f | </a>.......///.</remarks>....../ |
| 3320 | 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 | //.<seealso.cref="InputActionMap |
| 3340 | 22 2f 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 | "/>......///.<seealso.cref="Inpu |
| 3360 | 74 41 63 74 69 6f 6e 41 73 73 65 74 22 2f 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 | tActionAsset"/>......///.<seeals |
| 3380 | 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 42 69 6e 64 69 6e 67 22 2f 3e 0d 0a 20 20 20 20 5b 53 65 | o.cref="InputBinding"/>......[Se |
| 33a0 | 72 69 61 6c 69 7a 61 62 6c 65 5d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 20 63 | rializable]......public.sealed.c |
| 33c0 | 6c 61 73 73 20 49 6e 70 75 74 41 63 74 69 6f 6e 20 3a 20 49 43 6c 6f 6e 65 61 62 6c 65 2c 20 49 | lass.InputAction.:.ICloneable,.I |
| 33e0 | 44 69 73 70 6f 73 61 62 6c 65 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c | Disposable......{..........///.< |
| 3400 | 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 4e 61 6d 65 20 6f 66 20 74 68 | summary>..........///.Name.of.th |
| 3420 | 65 20 61 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 | e.action...........///.</summary |
| 3440 | 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 50 6c 61 69 6e 2d 74 65 78 74 | >..........///.<value>Plain-text |
| 3460 | 20 6e 61 6d 65 20 6f 66 20 74 68 65 20 61 63 74 69 6f 6e 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 | .name.of.the.action.</value>.... |
| 3480 | 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | ......///.<remarks>........../// |
| 34a0 | 20 43 61 6e 20 62 65 20 6e 75 6c 6c 20 66 6f 72 20 61 6e 6f 6e 79 6d 6f 75 73 20 61 63 74 69 6f | .Can.be.null.for.anonymous.actio |
| 34c0 | 6e 73 20 63 72 65 61 74 65 64 20 69 6e 20 63 6f 64 65 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | ns.created.in.code.........../// |
| 34e0 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 66 20 74 68 65 20 61 63 74 69 6f 6e 20 69 73 20 70 | ..........///.If.the.action.is.p |
| 3500 | 61 72 74 20 6f 66 20 61 6e 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e | art.of.an.<see.cref="InputAction |
| 3520 | 4d 61 70 22 2f 3e 2c 20 69 74 20 77 69 6c 6c 20 68 61 76 65 20 61 20 6e 61 6d 65 20 61 6e 64 20 | Map"/>,.it.will.have.a.name.and. |
| 3540 | 74 68 65 20 6e 61 6d 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 77 69 6c 6c 20 62 65 20 75 6e | the.name..........///.will.be.un |
| 3560 | 69 71 75 65 20 69 6e 20 74 68 65 20 6d 61 70 2e 20 54 68 65 20 6e 61 6d 65 20 69 73 20 6a 75 73 | ique.in.the.map..The.name.is.jus |
| 3580 | 74 20 74 68 65 20 6e 61 6d 65 20 6f 66 20 74 68 65 20 61 63 74 69 6f 6e 20 61 6c 6f 6e 65 2c 20 | t.the.name.of.the.action.alone,. |
| 35a0 | 6e 6f 74 20 61 20 22 6d 61 70 4e 61 6d 65 2f 61 63 74 69 6f 6e 4e 61 6d 65 22 0d 0a 20 20 20 20 | not.a."mapName/actionName"...... |
| 35c0 | 20 20 20 20 2f 2f 2f 20 63 6f 6d 62 69 6e 61 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f | ....///.combination...........// |
| 35e0 | 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 6e 61 6d 65 20 73 68 6f 75 6c 64 20 6e | /..........///.The.name.should.n |
| 3600 | 6f 74 20 63 6f 6e 74 61 69 6e 20 73 6c 61 73 68 65 73 20 6f 72 20 64 6f 74 73 20 62 75 74 20 63 | ot.contain.slashes.or.dots.but.c |
| 3620 | 61 6e 20 63 6f 6e 74 61 69 6e 20 73 70 61 63 65 73 20 61 6e 64 20 6f 74 68 65 72 20 70 75 6e 63 | an.contain.spaces.and.other.punc |
| 3640 | 74 75 61 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f | tuation...........///........../ |
| 3660 | 2f 2f 20 41 6e 20 61 63 74 69 6f 6e 20 63 61 6e 20 62 65 20 72 65 6e 61 6d 65 64 20 61 66 74 65 | //.An.action.can.be.renamed.afte |
| 3680 | 72 20 63 72 65 61 74 69 6f 6e 20 75 73 69 6e 67 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 | r.creation.using.<see.cref="Inpu |
| 36a0 | 74 41 63 74 69 6f 6e 53 65 74 75 70 45 78 74 65 6e 73 69 6f 6e 73 2e 52 65 6e 61 6d 65 22 2f 3e | tActionSetupExtensions.Rename"/> |
| 36c0 | 2e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 | ............///.</remarks>...... |
| 36e0 | 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 | ....///.<seealso.cref="InputActi |
| 3700 | 6f 6e 4d 61 70 2e 46 69 6e 64 41 63 74 69 6f 6e 28 73 74 72 69 6e 67 2c 62 6f 6f 6c 29 22 2f 3e | onMap.FindAction(string,bool)"/> |
| 3720 | 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 72 69 6e 67 20 6e 61 6d 65 20 3d 3e 20 | ..........public.string.name.=>. |
| 3740 | 6d 5f 4e 61 6d 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e | m_Name;............///.<summary> |
| 3760 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 42 65 68 61 76 69 6f 72 20 74 79 70 65 20 6f 66 20 74 | ..........///.Behavior.type.of.t |
| 3780 | 68 65 20 61 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 | he.action...........///.</summar |
| 37a0 | 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 47 65 6e 65 72 61 6c 20 62 | y>..........///.<value>General.b |
| 37c0 | 65 68 61 76 69 6f 72 20 74 79 70 65 20 6f 66 20 74 68 65 20 61 63 74 69 6f 6e 2e 3c 2f 76 61 6c | ehavior.type.of.the.action.</val |
| 37e0 | 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 | ue>..........///.<remarks>...... |
| 3800 | 20 20 20 20 2f 2f 2f 20 44 65 74 65 72 6d 69 6e 65 73 20 68 6f 77 20 74 68 65 20 61 63 74 69 6f | ....///.Determines.how.the.actio |
| 3820 | 6e 20 67 65 74 73 20 74 72 69 67 67 65 72 65 64 20 69 6e 20 72 65 73 70 6f 6e 73 65 20 74 6f 20 | n.gets.triggered.in.response.to. |
| 3840 | 63 6f 6e 74 72 6f 6c 20 76 61 6c 75 65 20 63 68 61 6e 67 65 73 2e 0d 0a 20 20 20 20 20 20 20 20 | control.value.changes........... |
| 3860 | 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 46 6f 72 20 64 65 74 61 69 6c 73 20 61 62 6f | ///..........///.For.details.abo |
| 3880 | 75 74 20 68 6f 77 20 74 68 65 20 61 63 74 69 6f 6e 20 74 79 70 65 20 61 66 66 65 63 74 73 20 61 | ut.how.the.action.type.affects.a |
| 38a0 | 6e 20 61 63 74 69 6f 6e 2c 20 73 65 65 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 | n.action,.see.<see.cref="InputAc |
| 38c0 | 74 69 6f 6e 54 79 70 65 22 2f 3e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 | tionType"/>...........///.</rema |
| 38e0 | 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 6e 70 75 74 41 63 74 69 6f 6e | rks>..........public.InputAction |
| 3900 | 54 79 70 65 20 74 79 70 65 20 3d 3e 20 6d 5f 54 79 70 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 | Type.type.=>.m_Type;............ |
| 3920 | 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 41 20 73 74 61 | ///.<summary>..........///.A.sta |
| 3940 | 62 6c 65 2c 20 75 6e 69 71 75 65 20 69 64 65 6e 74 69 66 69 65 72 20 66 6f 72 20 74 68 65 20 61 | ble,.unique.identifier.for.the.a |
| 3960 | 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a | ction...........///.</summary>.. |
| 3980 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 55 6e 69 71 75 65 20 49 44 20 6f 66 20 | ........///.<value>Unique.ID.of. |
| 39a0 | 74 68 65 20 61 63 74 69 6f 6e 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | the.action.</value>........../// |
| 39c0 | 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 69 73 20 63 61 6e | .<remarks>..........///.This.can |
| 39e0 | 20 62 65 20 75 73 65 64 20 69 6e 73 74 65 61 64 20 6f 66 20 74 68 65 20 6e 61 6d 65 20 74 6f 20 | .be.used.instead.of.the.name.to. |
| 3a00 | 72 65 66 65 72 20 74 6f 20 74 68 65 20 61 63 74 69 6f 6e 2e 20 44 6f 69 6e 67 20 73 6f 20 61 6c | refer.to.the.action..Doing.so.al |
| 3a20 | 6c 6f 77 73 20 72 65 66 65 72 72 69 6e 67 20 74 6f 20 74 68 65 0d 0a 20 20 20 20 20 20 20 20 2f | lows.referring.to.the........../ |
| 3a40 | 2f 2f 20 61 63 74 69 6f 6e 20 73 75 63 68 20 74 68 61 74 20 72 65 6e 61 6d 69 6e 67 20 74 68 65 | //.action.such.that.renaming.the |
| 3a60 | 20 61 63 74 69 6f 6e 20 64 6f 65 73 20 6e 6f 74 20 62 72 65 61 6b 20 72 65 66 65 72 65 6e 63 65 | .action.does.not.break.reference |
| 3a80 | 73 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 | s...........///.</remarks>...... |
| 3aa0 | 20 20 20 20 70 75 62 6c 69 63 20 47 75 69 64 20 69 64 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 | ....public.Guid.id..........{... |
| 3ac0 | 20 20 20 20 20 20 20 20 20 20 20 67 65 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 | ...........get..............{... |
| 3ae0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 4d 61 6b 65 53 75 72 65 49 64 49 73 49 6e 50 6c 61 | ...............MakeSureIdIsInPla |
| 3b00 | 63 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6e 65 | ce();..................return.ne |
| 3b20 | 77 20 47 75 69 64 28 6d 5f 49 64 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 | w.Guid(m_Id);..............}.... |
| 3b40 | 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 47 75 69 64 | ......}............internal.Guid |
| 3b60 | 20 69 64 44 6f 6e 74 47 65 6e 65 72 61 74 65 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 | .idDontGenerate..........{...... |
| 3b80 | 20 20 20 20 20 20 20 20 67 65 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 | ........get..............{...... |
| 3ba0 | 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 | ............if.(string.IsNullOrE |
| 3bc0 | 6d 70 74 79 28 6d 5f 49 64 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | mpty(m_Id))..................... |
| 3be0 | 20 72 65 74 75 72 6e 20 64 65 66 61 75 6c 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .return.default;................ |
| 3c00 | 20 20 72 65 74 75 72 6e 20 6e 65 77 20 47 75 69 64 28 6d 5f 49 64 29 3b 0d 0a 20 20 20 20 20 20 | ..return.new.Guid(m_Id);........ |
| 3c20 | 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f | ......}..........}............// |
| 3c40 | 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 4e 61 6d 65 20 6f 66 | /.<summary>..........///.Name.of |
| 3c60 | 20 63 6f 6e 74 72 6f 6c 20 6c 61 79 6f 75 74 20 65 78 70 65 63 74 65 64 20 66 6f 72 20 63 6f 6e | .control.layout.expected.for.con |
| 3c80 | 74 72 6f 6c 73 20 62 6f 75 6e 64 20 74 6f 20 74 68 69 73 20 61 63 74 69 6f 6e 2e 0d 0a 20 20 20 | trols.bound.to.this.action...... |
| 3ca0 | 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | .....///.</summary>........../// |
| 3cc0 | 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 69 73 20 69 73 20 | .<remarks>..........///.This.is. |
| 3ce0 | 6f 70 74 69 6f 6e 61 6c 20 61 6e 64 20 69 73 20 6e 75 6c 6c 20 62 79 20 64 65 66 61 75 6c 74 2e | optional.and.is.null.by.default. |
| 3d00 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 43 6f 6e 73 74 | ..........///..........///.Const |
| 3d20 | 72 61 69 6e 69 6e 67 20 61 6e 20 61 63 74 69 6f 6e 20 74 6f 20 61 20 70 61 72 74 69 63 75 6c 61 | raining.an.action.to.a.particula |
| 3d40 | 72 20 63 6f 6e 74 72 6f 6c 20 6c 61 79 6f 75 74 20 61 6c 6c 6f 77 73 20 64 65 74 65 72 6d 69 6e | r.control.layout.allows.determin |
| 3d60 | 65 20 74 68 65 20 76 61 6c 75 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 79 70 65 20 61 6e | e.the.value..........///.type.an |
| 3d80 | 64 20 65 78 70 65 63 74 65 64 20 69 6e 70 75 74 20 62 65 68 61 76 69 6f 72 20 6f 66 20 61 6e 20 | d.expected.input.behavior.of.an. |
| 3da0 | 61 63 74 69 6f 6e 20 77 69 74 68 6f 75 74 20 62 65 69 6e 67 20 72 65 6c 69 61 6e 74 20 6f 6e 20 | action.without.being.reliant.on. |
| 3dc0 | 61 6e 79 20 70 61 72 74 69 63 75 6c 61 72 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 62 69 6e 64 | any.particular..........///.bind |
| 3de0 | 69 6e 67 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 | ing...........///.</remarks>.... |
| 3e00 | 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 72 69 6e 67 20 65 78 70 65 63 74 65 64 43 6f 6e 74 | ......public.string.expectedCont |
| 3e20 | 72 6f 6c 54 79 70 65 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | rolType..........{.............. |
| 3e40 | 67 65 74 20 3d 3e 20 6d 5f 45 78 70 65 63 74 65 64 43 6f 6e 74 72 6f 6c 54 79 70 65 3b 0d 0a 20 | get.=>.m_ExpectedControlType;... |
| 3e60 | 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 3d 3e 20 6d 5f 45 78 70 65 63 74 65 64 43 6f 6e 74 | ...........set.=>.m_ExpectedCont |
| 3e80 | 72 6f 6c 54 79 70 65 20 3d 20 76 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 | rolType.=.value;..........}..... |
| 3ea0 | 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f | .......///.<summary>..........// |
| 3ec0 | 2f 20 50 72 6f 63 65 73 73 6f 72 73 20 61 70 70 6c 69 65 64 20 74 6f 20 65 76 65 72 79 20 62 69 | /.Processors.applied.to.every.bi |
| 3ee0 | 6e 64 69 6e 67 20 6f 6e 20 74 68 65 20 61 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f | nding.on.the.action...........// |
| 3f00 | 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 | /.</summary>..........///.<value |
| 3f20 | 3e 50 72 6f 63 65 73 73 6f 72 73 20 61 64 64 65 64 20 74 6f 20 61 6c 6c 20 62 69 6e 64 69 6e 67 | >Processors.added.to.all.binding |
| 3f40 | 73 20 6f 6e 20 74 68 65 20 61 63 74 69 6f 6e 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 | s.on.the.action.</value>........ |
| 3f60 | 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 69 | ..///.<remarks>..........///.Thi |
| 3f80 | 73 20 70 72 6f 70 65 72 74 79 20 69 73 20 65 71 75 69 76 61 6c 65 6e 74 20 74 6f 20 61 70 70 65 | s.property.is.equivalent.to.appe |
| 3fa0 | 6e 64 69 6e 67 20 74 68 65 20 73 61 6d 65 20 73 74 72 69 6e 67 20 74 6f 20 74 68 65 0d 0a 20 20 | nding.the.same.string.to.the.... |
| 3fc0 | 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 42 69 6e 64 69 6e | ......///.<see.cref="InputBindin |
| 3fe0 | 67 2e 70 72 6f 63 65 73 73 6f 72 73 22 2f 3e 20 66 69 65 6c 64 20 6f 66 20 65 76 65 72 79 20 62 | g.processors"/>.field.of.every.b |
| 4000 | 69 6e 64 69 6e 67 20 74 68 61 74 20 74 61 72 67 65 74 73 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | inding.that.targets........../// |
| 4020 | 20 74 68 65 20 61 63 74 69 6f 6e 2e 20 49 74 20 69 73 20 74 68 75 73 20 73 69 6d 70 6c 79 20 61 | .the.action..It.is.thus.simply.a |
| 4040 | 20 6d 65 61 6e 73 20 6f 66 20 61 76 6f 69 64 69 6e 67 20 74 68 65 20 6e 65 65 64 20 63 6f 6e 66 | .means.of.avoiding.the.need.conf |
| 4060 | 69 67 75 72 65 20 74 68 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 73 61 6d 65 20 70 72 6f 63 | igure.the..........///.same.proc |
| 4080 | 65 73 73 6f 72 20 74 68 65 20 73 61 6d 65 20 77 61 79 20 6f 6e 20 65 76 65 72 79 20 62 69 6e 64 | essor.the.same.way.on.every.bind |
| 40a0 | 69 6e 67 20 69 6e 20 63 61 73 65 20 69 74 20 75 6e 69 66 6f 72 6d 6c 79 20 61 70 70 6c 69 65 73 | ing.in.case.it.uniformly.applies |
| 40c0 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 6f 20 61 6c 6c 20 6f 66 20 74 68 65 6d 2e 0d 0a 20 | ..........///.to.all.of.them.... |
| 40e0 | 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 65 78 61 6d 70 6c 65 | .......///..........///.<example |
| 4100 | 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 63 6f 64 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f | >..........///.<code>........../ |
| 4120 | 2f 2f 20 76 61 72 20 61 63 74 69 6f 6e 20 3d 20 6e 65 77 20 49 6e 70 75 74 41 63 74 69 6f 6e 28 | //.var.action.=.new.InputAction( |
| 4140 | 70 72 6f 63 65 73 73 6f 72 73 3a 20 22 73 63 61 6c 65 56 65 63 74 6f 72 32 28 78 3d 32 2c 20 79 | processors:."scaleVector2(x=2,.y |
| 4160 | 3d 32 29 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | =2)");..........///........../// |
| 4180 | 20 2f 2f 20 42 6f 74 68 20 6f 66 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 62 69 6e 64 69 6e | .//.Both.of.the.following.bindin |
| 41a0 | 67 73 20 77 69 6c 6c 20 69 6d 70 6c 69 63 69 74 6c 79 20 68 61 76 65 20 61 0d 0a 20 20 20 20 20 | gs.will.implicitly.have.a....... |
| 41c0 | 20 20 20 2f 2f 2f 20 2f 2f 20 53 63 61 6c 65 56 65 63 74 6f 72 32 50 72 6f 63 65 73 73 6f 72 20 | ...///.//.ScaleVector2Processor. |
| 41e0 | 61 70 70 6c 69 65 64 20 74 6f 20 74 68 65 6d 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 63 | applied.to.them...........///.ac |
| 4200 | 74 69 6f 6e 2e 41 64 64 42 69 6e 64 69 6e 67 28 22 26 6c 74 3b 47 61 6d 65 70 61 64 26 67 74 3b | tion.AddBinding("<Gamepad> |
| 4220 | 2f 6c 65 66 74 53 74 69 63 6b 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 63 74 69 6f | /leftStick");..........///.actio |
| 4240 | 6e 2e 41 64 64 42 69 6e 64 69 6e 67 28 22 26 6c 74 3b 4a 6f 79 73 74 69 63 6b 26 67 74 3b 2f 73 | n.AddBinding("<Joystick>/s |
| 4260 | 74 69 63 6b 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 63 6f 64 65 3e 0d 0a 20 20 | tick");..........///.</code>.... |
| 4280 | 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f | ......///.</example>..........// |
| 42a0 | 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c | /.</remarks>..........///.<seeal |
| 42c0 | 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 42 69 6e 64 69 6e 67 2e 70 72 6f 63 65 73 73 6f 72 73 | so.cref="InputBinding.processors |
| 42e0 | 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 | "/>..........///.<seealso.cref=" |
| 4300 | 49 6e 70 75 74 50 72 6f 63 65 73 73 6f 72 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c | InputProcessor"/>..........///.< |
| 4320 | 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 53 79 73 74 65 6d 2e 52 65 67 69 73 74 | seealso.cref="InputSystem.Regist |
| 4340 | 65 72 50 72 6f 63 65 73 73 6f 72 7b 54 7d 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 | erProcessor{T}"/>..........publi |
| 4360 | 63 20 73 74 72 69 6e 67 20 70 72 6f 63 65 73 73 6f 72 73 20 3d 3e 20 6d 5f 50 72 6f 63 65 73 73 | c.string.processors.=>.m_Process |
| 4380 | 6f 72 73 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 | ors;............///.<summary>... |
| 43a0 | 20 20 20 20 20 20 20 2f 2f 2f 20 49 6e 74 65 72 61 63 74 69 6f 6e 73 20 61 70 70 6c 69 65 64 20 | .......///.Interactions.applied. |
| 43c0 | 74 6f 20 65 76 65 72 79 20 62 69 6e 64 69 6e 67 20 6f 6e 20 74 68 65 20 61 63 74 69 6f 6e 2e 0d | to.every.binding.on.the.action.. |
| 43e0 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 | .........///.</summary>......... |
| 4400 | 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 49 6e 74 65 72 61 63 74 69 6f 6e 73 20 61 64 64 65 64 20 74 | .///.<value>Interactions.added.t |
| 4420 | 6f 20 61 6c 6c 20 62 69 6e 64 69 6e 67 73 20 6f 6e 20 74 68 65 20 61 63 74 69 6f 6e 2e 3c 2f 76 | o.all.bindings.on.the.action.</v |
| 4440 | 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 | alue>..........///.<remarks>.... |
| 4460 | 20 20 20 20 20 20 2f 2f 2f 20 54 68 69 73 20 70 72 6f 70 65 72 74 79 20 69 73 20 65 71 75 69 76 | ......///.This.property.is.equiv |
| 4480 | 61 6c 65 6e 74 20 74 6f 20 61 70 70 65 6e 64 69 6e 67 20 74 68 65 20 73 61 6d 65 20 73 74 72 69 | alent.to.appending.the.same.stri |
| 44a0 | 6e 67 20 74 6f 20 74 68 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 20 63 72 65 66 | ng.to.the..........///.<see.cref |
| 44c0 | 3d 22 49 6e 70 75 74 42 69 6e 64 69 6e 67 2e 69 6e 74 65 72 61 63 74 69 6f 6e 73 22 2f 3e 20 66 | ="InputBinding.interactions"/>.f |
| 44e0 | 69 65 6c 64 20 6f 66 20 65 76 65 72 79 20 62 69 6e 64 69 6e 67 20 74 68 61 74 20 74 61 72 67 65 | ield.of.every.binding.that.targe |
| 4500 | 74 73 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 68 65 20 61 63 74 69 6f 6e 2e 20 49 74 20 69 | ts..........///.the.action..It.i |
| 4520 | 73 20 74 68 75 73 20 73 69 6d 70 6c 79 20 61 20 6d 65 61 6e 73 20 6f 66 20 61 76 6f 69 64 69 6e | s.thus.simply.a.means.of.avoidin |
| 4540 | 67 20 74 68 65 20 6e 65 65 64 20 63 6f 6e 66 69 67 75 72 65 20 74 68 65 0d 0a 20 20 20 20 20 20 | g.the.need.configure.the........ |
| 4560 | 20 20 2f 2f 2f 20 73 61 6d 65 20 69 6e 74 65 72 61 63 74 69 6f 6e 20 74 68 65 20 73 61 6d 65 20 | ..///.same.interaction.the.same. |
| 4580 | 77 61 79 20 6f 6e 20 65 76 65 72 79 20 62 69 6e 64 69 6e 67 20 69 6e 20 63 61 73 65 20 69 74 20 | way.on.every.binding.in.case.it. |
| 45a0 | 75 6e 69 66 6f 72 6d 6c 79 20 61 70 70 6c 69 65 73 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 | uniformly.applies..........///.t |
| 45c0 | 6f 20 61 6c 6c 20 6f 66 20 74 68 65 6d 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 | o.all.of.them...........///..... |
| 45e0 | 20 20 20 20 20 2f 2f 2f 20 3c 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | .....///.<example>..........///. |
| 4600 | 3c 63 6f 64 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 76 61 72 20 61 63 74 69 6f 6e 20 3d | <code>..........///.var.action.= |
| 4620 | 20 6e 65 77 20 49 6e 70 75 74 41 63 74 69 6f 6e 28 69 6e 74 65 72 61 63 74 69 6f 6e 73 3a 20 22 | .new.InputAction(interactions:." |
| 4640 | 70 72 65 73 73 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f | press");..........///........../ |
| 4660 | 2f 2f 20 2f 2f 20 42 6f 74 68 20 6f 66 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 62 69 6e 64 | //.//.Both.of.the.following.bind |
| 4680 | 69 6e 67 73 20 77 69 6c 6c 20 69 6d 70 6c 69 63 69 74 6c 79 20 68 61 76 65 20 61 0d 0a 20 20 20 | ings.will.implicitly.have.a..... |
| 46a0 | 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 50 72 65 73 73 20 69 6e 74 65 72 61 63 74 69 6f 6e 20 61 70 | .....///.//.Press.interaction.ap |
| 46c0 | 70 6c 69 65 64 20 74 6f 20 74 68 65 6d 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 63 74 69 | plied.to.them...........///.acti |
| 46e0 | 6f 6e 2e 41 64 64 42 69 6e 64 69 6e 67 28 22 26 6c 74 3b 47 61 6d 65 70 61 64 26 67 74 3b 2f 62 | on.AddBinding("<Gamepad>/b |
| 4700 | 75 74 74 6f 6e 53 6f 75 74 68 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 63 74 69 6f | uttonSouth");..........///.actio |
| 4720 | 6e 2e 41 64 64 42 69 6e 64 69 6e 67 28 22 26 6c 74 3b 4a 6f 79 73 74 69 63 6b 26 67 74 3b 2f 74 | n.AddBinding("<Joystick>/t |
| 4740 | 72 69 67 67 65 72 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 63 6f 64 65 3e 0d 0a | rigger");..........///.</code>.. |
| 4760 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 20 20 20 20 | ........///.</example>.......... |
| 4780 | 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 | ///.</remarks>..........///.<see |
| 47a0 | 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 42 69 6e 64 69 6e 67 2e 69 6e 74 65 72 61 63 74 | also.cref="InputBinding.interact |
| 47c0 | 69 6f 6e 73 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 | ions"/>..........///.<seealso.cr |
| 47e0 | 65 66 3d 22 49 49 6e 70 75 74 49 6e 74 65 72 61 63 74 69 6f 6e 22 2f 3e 0d 0a 20 20 20 20 20 20 | ef="IInputInteraction"/>........ |
| 4800 | 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 53 79 73 74 65 6d | ..///.<seealso.cref="InputSystem |
| 4820 | 2e 52 65 67 69 73 74 65 72 49 6e 74 65 72 61 63 74 69 6f 6e 7b 54 7d 22 2f 3e 0d 0a 20 20 20 20 | .RegisterInteraction{T}"/>...... |
| 4840 | 20 20 20 20 70 75 62 6c 69 63 20 73 74 72 69 6e 67 20 69 6e 74 65 72 61 63 74 69 6f 6e 73 20 3d | ....public.string.interactions.= |
| 4860 | 3e 20 6d 5f 49 6e 74 65 72 61 63 74 69 6f 6e 73 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | >.m_Interactions;............/// |
| 4880 | 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 6d 61 70 20 | .<summary>..........///.The.map. |
| 48a0 | 74 68 65 20 61 63 74 69 6f 6e 20 62 65 6c 6f 6e 67 73 20 74 6f 2e 0d 0a 20 20 20 20 20 20 20 20 | the.action.belongs.to........... |
| 48c0 | 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c | ///.</summary>..........///.<val |
| 48e0 | 75 65 3e 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 22 2f 3e 20 | ue><see.cref="InputActionMap"/>. |
| 4900 | 74 68 61 74 20 74 68 65 20 61 63 74 69 6f 6e 20 62 65 6c 6f 6e 67 73 20 74 6f 20 6f 72 20 6e 75 | that.the.action.belongs.to.or.nu |
| 4920 | 6c 6c 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b | ll.</value>..........///.<remark |
| 4940 | 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 66 20 74 68 65 20 61 63 74 69 6f 6e 20 69 73 | s>..........///.If.the.action.is |
| 4960 | 20 61 20 6c 6f 6f 73 65 20 61 63 74 69 6f 6e 20 63 72 65 61 74 65 64 20 69 6e 20 63 6f 64 65 2c | .a.loose.action.created.in.code, |
| 4980 | 20 74 68 69 73 20 77 69 6c 6c 20 62 65 20 3c 63 3e 6e 75 6c 6c 3c 2f 63 3e 2e 0d 0a 20 20 20 20 | .this.will.be.<c>null</c>....... |
| 49a0 | 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 65 78 61 6d 70 6c 65 3e 0d 0a | ....///..........///.<example>.. |
| 49c0 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 63 6f 64 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | ........///.<code>..........///. |
| 49e0 | 76 61 72 20 61 63 74 69 6f 6e 31 20 3d 20 6e 65 77 20 49 6e 70 75 74 41 63 74 69 6f 6e 28 29 3b | var.action1.=.new.InputAction(); |
| 4a00 | 20 2f 2f 20 61 63 74 69 6f 6e 31 2e 61 63 74 69 6f 6e 4d 61 70 20 77 69 6c 6c 20 62 65 20 6e 75 | .//.action1.actionMap.will.be.nu |
| 4a20 | 6c 6c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 76 61 72 | ll..........///..........///.var |
| 4a40 | 20 61 63 74 69 6f 6e 4d 61 70 20 3d 20 6e 65 77 20 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 28 | .actionMap.=.new.InputActionMap( |
| 4a60 | 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 76 61 72 20 61 63 74 69 6f 6e 32 20 3d 20 61 63 | );..........///.var.action2.=.ac |
| 4a80 | 74 69 6f 6e 4d 61 70 2e 41 64 64 41 63 74 69 6f 6e 28 22 61 63 74 69 6f 6e 22 29 3b 20 2f 2f 20 | tionMap.AddAction("action");.//. |
| 4aa0 | 61 63 74 69 6f 6e 32 2e 61 63 74 69 6f 6e 4d 61 70 20 77 69 6c 6c 20 70 6f 69 6e 74 20 74 6f 20 | action2.actionMap.will.point.to. |
| 4ac0 | 61 63 74 69 6f 6e 4d 61 70 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 63 6f 64 65 3e 0d 0a | actionMap..........///.</code>.. |
| 4ae0 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 20 20 20 20 | ........///.</example>.......... |
| 4b00 | 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 | ///.</remarks>..........///.<see |
| 4b20 | 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 53 65 74 75 70 45 78 74 65 6e | also.cref="InputActionSetupExten |
| 4b40 | 73 69 6f 6e 73 2e 41 64 64 41 63 74 69 6f 6e 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c | sions.AddAction"/>..........publ |
| 4b60 | 69 63 20 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 20 61 63 74 69 6f 6e 4d 61 70 20 3d 3e 20 69 | ic.InputActionMap.actionMap.=>.i |
| 4b80 | 73 53 69 6e 67 6c 65 74 6f 6e 41 63 74 69 6f 6e 20 3f 20 6e 75 6c 6c 20 3a 20 6d 5f 41 63 74 69 | sSingletonAction.?.null.:.m_Acti |
| 4ba0 | 6f 6e 4d 61 70 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d | onMap;............///.<summary>. |
| 4bc0 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 41 6e 20 6f 70 74 69 6f 6e 61 6c 20 6d 61 73 6b 20 74 68 | .........///.An.optional.mask.th |
| 4be0 | 61 74 20 64 65 74 65 72 6d 69 6e 65 73 20 77 68 69 63 68 20 62 69 6e 64 69 6e 67 73 20 6f 66 20 | at.determines.which.bindings.of. |
| 4c00 | 74 68 65 20 61 63 74 69 6f 6e 20 74 6f 20 65 6e 61 62 6c 65 20 61 6e 64 0d 0a 20 20 20 20 20 20 | the.action.to.enable.and........ |
| 4c20 | 20 20 2f 2f 2f 20 77 68 69 63 68 20 74 6f 20 69 67 6e 6f 72 65 2e 0d 0a 20 20 20 20 20 20 20 20 | ..///.which.to.ignore........... |
| 4c40 | 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c | ///.</summary>..........///.<val |
| 4c60 | 75 65 3e 4f 70 74 69 6f 6e 61 6c 20 6d 61 73 6b 20 74 68 61 74 20 64 65 74 65 72 6d 69 6e 65 73 | ue>Optional.mask.that.determines |
| 4c80 | 20 77 68 69 63 68 20 62 69 6e 64 69 6e 67 73 20 6f 6e 20 74 68 65 20 61 63 74 69 6f 6e 20 74 6f | .which.bindings.on.the.action.to |
| 4ca0 | 20 65 6e 61 62 6c 65 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 | .enable.</value>..........///.<r |
| 4cc0 | 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 42 69 6e 64 69 6e 67 20 6d 61 73 | emarks>..........///.Binding.mas |
| 4ce0 | 6b 73 20 63 61 6e 20 62 65 20 61 70 70 6c 69 65 64 20 61 74 20 74 68 72 65 65 20 64 69 66 66 65 | ks.can.be.applied.at.three.diffe |
| 4d00 | 72 65 6e 74 20 6c 65 76 65 6c 73 3a 20 66 6f 72 20 61 6e 20 65 6e 74 69 72 65 20 61 73 73 65 74 | rent.levels:.for.an.entire.asset |
| 4d20 | 20 74 68 72 6f 75 67 68 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 20 63 72 65 66 3d | .through..........///.<see.cref= |
| 4d40 | 22 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 2e 62 69 6e 64 69 6e 67 4d 61 73 6b 22 2f 3e | "InputActionAsset.bindingMask"/> |
| 4d60 | 2c 20 66 6f 72 20 61 20 73 70 65 63 69 66 69 63 20 6d 61 70 20 74 68 72 6f 75 67 68 20 3c 73 65 | ,.for.a.specific.map.through.<se |
| 4d80 | 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e | e..........///.cref="InputAction |
| 4da0 | 4d 61 70 2e 62 69 6e 64 69 6e 67 4d 61 73 6b 22 2f 3e 2c 20 61 6e 64 20 66 6f 72 20 73 69 6e 67 | Map.bindingMask"/>,.and.for.sing |
| 4dc0 | 6c 65 20 61 63 74 69 6f 6e 73 20 74 68 72 6f 75 67 68 20 74 68 69 73 20 70 72 6f 70 65 72 74 79 | le.actions.through.this.property |
| 4de0 | 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 42 79 20 64 65 66 61 75 6c 74 2c 20 6e 6f 6e 65 20 | ...........///.By.default,.none. |
| 4e00 | 6f 66 20 74 68 65 20 6d 61 73 6b 73 20 77 69 6c 6c 20 62 65 20 73 65 74 20 28 69 2e 65 2e 20 74 | of.the.masks.will.be.set.(i.e..t |
| 4e20 | 68 65 79 20 77 69 6c 6c 20 62 65 20 3c 63 3e 6e 75 6c 6c 3c 2f 63 3e 29 2e 0d 0a 20 20 20 20 20 | hey.will.be.<c>null</c>)........ |
| 4e40 | 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 57 68 65 6e 20 61 6e 20 61 63 74 69 | ...///..........///.When.an.acti |
| 4e60 | 6f 6e 20 69 73 20 65 6e 61 62 6c 65 64 2c 20 61 6c 6c 20 74 68 65 20 62 69 6e 64 69 6e 67 20 6d | on.is.enabled,.all.the.binding.m |
| 4e80 | 61 73 6b 73 20 74 68 61 74 20 61 70 70 6c 79 20 74 6f 20 69 74 20 61 72 65 20 74 61 6b 65 6e 20 | asks.that.apply.to.it.are.taken. |
| 4ea0 | 69 6e 74 6f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 63 63 6f 75 6e 74 2e 20 53 70 65 63 69 | into..........///.account..Speci |
| 4ec0 | 66 69 63 61 6c 6c 79 2c 20 74 68 69 73 20 6d 65 61 6e 73 20 74 68 61 74 20 61 6e 79 20 67 69 76 | fically,.this.means.that.any.giv |
| 4ee0 | 65 6e 20 62 69 6e 64 69 6e 67 20 6f 6e 20 74 68 65 20 61 63 74 69 6f 6e 20 77 69 6c 6c 20 62 65 | en.binding.on.the.action.will.be |
| 4f00 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 65 6e 61 62 6c 65 64 20 6f 6e 6c 79 20 69 66 20 69 74 | ..........///.enabled.only.if.it |
| 4f20 | 20 6d 61 74 63 68 65 73 20 74 68 65 20 6d 61 73 6b 20 61 70 70 6c 69 65 64 20 74 6f 20 74 68 65 | .matches.the.mask.applied.to.the |
| 4f40 | 20 61 73 73 65 74 2c 20 74 68 65 20 6d 61 73 6b 20 61 70 70 6c 69 65 64 0d 0a 20 20 20 20 20 20 | .asset,.the.mask.applied........ |
| 4f60 | 20 20 2f 2f 2f 20 74 6f 20 74 68 65 20 6d 61 70 20 74 68 61 74 20 63 6f 6e 74 61 69 6e 73 20 74 | ..///.to.the.map.that.contains.t |
| 4f80 | 68 65 20 61 63 74 69 6f 6e 2c 20 61 6e 64 20 74 68 65 20 6d 61 73 6b 20 61 70 70 6c 69 65 64 20 | he.action,.and.the.mask.applied. |
| 4fa0 | 74 6f 20 74 68 65 20 61 63 74 69 6f 6e 20 69 74 73 65 6c 66 2e 0d 0a 20 20 20 20 20 20 20 20 2f | to.the.action.itself.........../ |
| 4fc0 | 2f 2f 20 41 6c 6c 20 74 68 65 20 6d 61 73 6b 73 20 61 72 65 20 69 6e 64 69 76 69 64 75 61 6c 6c | //.All.the.masks.are.individuall |
| 4fe0 | 79 20 6f 70 74 69 6f 6e 61 6c 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 | y.optional...........///........ |
| 5000 | 20 20 2f 2f 2f 20 4d 61 73 6b 73 20 61 72 65 20 6d 61 74 63 68 65 64 20 61 67 61 69 6e 73 74 20 | ..///.Masks.are.matched.against. |
| 5020 | 62 69 6e 64 69 6e 67 73 20 75 73 69 6e 67 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 42 | bindings.using.<see.cref="InputB |
| 5040 | 69 6e 64 69 6e 67 2e 4d 61 74 63 68 65 73 22 2f 3e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d | inding.Matches"/>...........///. |
| 5060 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 4e 6f 74 65 20 74 68 61 74 20 69 66 20 79 6f 75 20 6d 6f | .........///.Note.that.if.you.mo |
| 5080 | 64 69 66 79 20 74 68 65 20 6d 61 73 6b 73 20 61 70 70 6c 69 63 61 62 6c 65 20 74 6f 20 61 6e 20 | dify.the.masks.applicable.to.an. |
| 50a0 | 61 63 74 69 6f 6e 20 77 68 69 6c 65 20 69 74 20 69 73 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | action.while.it.is..........///. |
| 50c0 | 65 6e 61 62 6c 65 64 2c 20 74 68 65 20 61 63 74 69 6f 6e 27 73 20 3c 73 65 65 20 63 72 65 66 3d | enabled,.the.action's.<see.cref= |
| 50e0 | 22 63 6f 6e 74 72 6f 6c 73 22 2f 3e 20 77 69 6c 6c 20 67 65 74 20 75 70 64 61 74 65 64 20 69 6d | "controls"/>.will.get.updated.im |
| 5100 | 6d 65 64 69 61 74 65 6c 79 20 74 6f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 72 65 73 70 65 63 | mediately.to..........///.respec |
| 5120 | 74 20 74 68 65 20 6d 61 73 6b 2e 20 54 6f 20 61 76 6f 69 64 20 72 65 70 65 61 74 65 64 20 62 69 | t.the.mask..To.avoid.repeated.bi |
| 5140 | 6e 64 69 6e 67 20 72 65 73 6f 6c 75 74 69 6f 6e 2c 20 69 74 20 69 73 20 6d 6f 73 74 20 65 66 66 | nding.resolution,.it.is.most.eff |
| 5160 | 69 63 69 65 6e 74 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 6f 20 61 70 70 6c 79 20 62 69 6e | icient..........///.to.apply.bin |
| 5180 | 64 69 6e 67 20 6d 61 73 6b 73 20 62 65 66 6f 72 65 20 65 6e 61 62 6c 69 6e 67 20 61 63 74 69 6f | ding.masks.before.enabling.actio |
| 51a0 | 6e 73 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 42 69 | ns...........///..........///.Bi |
| 51c0 | 6e 64 69 6e 67 20 6d 61 73 6b 73 20 61 72 65 20 6e 6f 6e 2d 64 65 73 74 72 75 63 74 69 76 65 2e | nding.masks.are.non-destructive. |
| 51e0 | 20 41 6c 6c 20 74 68 65 20 62 69 6e 64 69 6e 67 73 20 6f 6e 20 74 68 65 20 61 63 74 69 6f 6e 20 | .All.the.bindings.on.the.action. |
| 5200 | 61 72 65 20 6c 65 66 74 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 69 6e 20 70 6c 61 63 65 2e 20 | are.left..........///.in.place.. |
| 5220 | 53 65 74 74 69 6e 67 20 61 20 6d 61 73 6b 20 77 69 6c 6c 20 6e 6f 74 20 61 66 66 65 63 74 20 74 | Setting.a.mask.will.not.affect.t |
| 5240 | 68 65 20 76 61 6c 75 65 20 6f 66 20 74 68 65 20 3c 73 65 65 20 63 72 65 66 3d 22 62 69 6e 64 69 | he.value.of.the.<see.cref="bindi |
| 5260 | 6e 67 73 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 70 72 6f 70 65 72 74 79 2e 0d 0a 20 | ngs"/>..........///.property.... |
| 5280 | 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 65 78 61 6d 70 6c 65 | .......///..........///.<example |
| 52a0 | 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 63 6f 64 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f | >..........///.<code>........../ |
| 52c0 | 2f 2f 20 2f 2f 20 43 72 65 61 74 65 20 61 20 66 72 65 65 2d 73 74 61 6e 64 69 6e 67 20 61 63 74 | //.//.Create.a.free-standing.act |
| 52e0 | 69 6f 6e 20 77 69 74 68 20 74 77 6f 20 62 69 6e 64 69 6e 67 73 2c 20 6f 6e 65 20 69 6e 20 74 68 | ion.with.two.bindings,.one.in.th |
| 5300 | 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 22 4b 65 79 62 6f 61 72 64 22 20 67 72 6f | e..........///.//."Keyboard".gro |
| 5320 | 75 70 20 61 6e 64 20 6f 6e 65 20 69 6e 20 74 68 65 20 22 47 61 6d 65 70 61 64 22 20 67 72 6f 75 | up.and.one.in.the."Gamepad".grou |
| 5340 | 70 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 76 61 72 20 61 63 74 69 6f 6e 20 3d 20 6e 65 77 | p...........///.var.action.=.new |
| 5360 | 20 49 6e 70 75 74 41 63 74 69 6f 6e 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 63 74 | .InputAction();..........///.act |
| 5380 | 69 6f 6e 2e 41 64 64 42 69 6e 64 69 6e 67 28 22 26 6c 74 3b 47 61 6d 65 70 61 64 26 67 74 3b 2f | ion.AddBinding("<Gamepad>/ |
| 53a0 | 62 75 74 74 6f 6e 53 6f 75 74 68 22 2c 20 67 72 6f 75 70 73 3a 20 22 47 61 6d 65 70 61 64 22 29 | buttonSouth",.groups:."Gamepad") |
| 53c0 | 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 63 74 69 6f 6e 2e 41 64 64 42 69 6e 64 69 6e 67 | ;..........///.action.AddBinding |
| 53e0 | 28 22 26 6c 74 3b 4b 65 79 62 6f 61 72 64 26 67 74 3b 2f 73 70 61 63 65 22 2c 20 67 72 6f 75 70 | ("<Keyboard>/space",.group |
| 5400 | 73 3a 20 22 4b 65 79 62 6f 61 72 64 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 | s:."Keyboard");..........///.... |
| 5420 | 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 42 79 20 64 65 66 61 75 6c 74 2c 20 61 6c 6c 20 62 69 6e | ......///.//.By.default,.all.bin |
| 5440 | 64 69 6e 67 73 20 77 69 6c 6c 20 62 65 20 65 6e 61 62 6c 65 64 2e 20 54 68 69 73 20 6d 65 61 6e | dings.will.be.enabled..This.mean |
| 5460 | 73 20 69 66 20 62 6f 74 68 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 61 20 6b 65 79 62 | s.if.both..........///.//.a.keyb |
| 5480 | 6f 61 72 64 20 61 6e 64 20 67 61 6d 65 70 61 64 20 28 6f 72 20 73 65 76 65 72 61 6c 20 6f 66 20 | oard.and.gamepad.(or.several.of. |
| 54a0 | 74 68 65 6d 29 20 69 73 20 70 72 65 73 65 6e 74 2c 20 74 68 65 20 61 63 74 69 6f 6e 0d 0a 20 20 | them).is.present,.the.action.... |
| 54c0 | 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 77 69 6c 6c 20 72 65 73 70 6f 6e 64 20 74 6f 20 69 6e 70 | ......///.//.will.respond.to.inp |
| 54e0 | 75 74 20 66 72 6f 6d 20 61 6c 6c 20 6f 66 20 74 68 65 6d 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f | ut.from.all.of.them...........// |
| 5500 | 2f 20 61 63 74 69 6f 6e 2e 45 6e 61 62 6c 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d | /.action.Enable();..........///. |
| 5520 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 57 69 74 68 20 61 20 62 69 6e 64 69 6e 67 20 6d | .........///.//.With.a.binding.m |
| 5540 | 61 73 6b 20 77 65 20 63 61 6e 20 72 65 73 74 72 69 63 74 20 74 68 65 20 61 63 74 69 6f 6e 20 74 | ask.we.can.restrict.the.action.t |
| 5560 | 6f 20 6a 75 73 74 20 73 70 65 63 69 66 69 63 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 | o.just.specific..........///.//. |
| 5580 | 62 69 6e 64 69 6e 67 73 2e 20 46 6f 72 20 65 78 61 6d 70 6c 65 2c 20 74 6f 20 6f 6e 6c 79 20 65 | bindings..For.example,.to.only.e |
| 55a0 | 6e 61 62 6c 65 20 74 68 65 20 67 61 6d 65 70 61 64 20 62 69 6e 64 69 6e 67 3a 0d 0a 20 20 20 20 | nable.the.gamepad.binding:...... |
| 55c0 | 20 20 20 20 2f 2f 2f 20 61 63 74 69 6f 6e 2e 62 69 6e 64 69 6e 67 4d 61 73 6b 20 3d 20 49 6e 70 | ....///.action.bindingMask.=.Inp |
| 55e0 | 75 74 42 69 6e 64 69 6e 67 2e 4d 61 73 6b 42 79 47 72 6f 75 70 28 22 47 61 6d 65 70 61 64 22 29 | utBinding.MaskByGroup("Gamepad") |
| 5600 | 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 4e | ;..........///..........///.//.N |
| 5620 | 6f 74 65 20 74 68 61 74 20 77 65 20 63 61 6e 20 6d 61 73 6b 20 62 79 20 6d 6f 72 65 20 74 68 61 | ote.that.we.can.mask.by.more.tha |
| 5640 | 6e 20 6a 75 73 74 20 62 79 20 67 72 6f 75 70 2e 20 4d 61 73 6b 69 6e 67 20 62 79 20 70 61 74 68 | n.just.by.group..Masking.by.path |
| 5660 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 6f 72 20 62 79 20 61 63 74 69 6f 6e 20 61 73 | ..........///.//.or.by.action.as |
| 5680 | 20 77 65 6c 6c 20 61 73 20 61 20 63 6f 6d 62 69 6e 61 74 69 6f 6e 20 6f 66 20 74 68 65 73 65 20 | .well.as.a.combination.of.these. |
| 56a0 | 69 73 20 61 6c 73 6f 20 70 6f 73 73 69 62 6c 65 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 2f | is.also.possible...........///./ |
| 56c0 | 2f 20 57 65 20 63 6f 75 6c 64 2c 20 66 6f 72 20 65 78 61 6d 70 6c 65 2c 20 6d 61 73 6b 20 66 6f | /.We.could,.for.example,.mask.fo |
| 56e0 | 72 20 6a 75 73 74 20 61 20 73 70 65 63 69 66 69 63 20 62 69 6e 64 69 6e 67 20 70 61 74 68 3a 0d | r.just.a.specific.binding.path:. |
| 5700 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 63 74 69 6f 6e 2e 62 69 6e 64 69 6e 67 4d 61 73 6b 20 | .........///.action.bindingMask. |
| 5720 | 3d 20 6e 65 77 20 49 6e 70 75 74 42 69 6e 64 69 6e 67 28 29 0d 0a 20 20 20 20 20 20 20 20 2f 2f | =.new.InputBinding()..........// |
| 5740 | 2f 20 7b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 2f 2f 20 53 65 6c 65 63 74 20 74 | /.{..........///.....//.Select.t |
| 5760 | 68 65 20 6b 65 79 62 6f 61 72 64 20 62 69 6e 64 69 6e 67 20 62 61 73 65 64 20 6f 6e 20 69 74 73 | he.keyboard.binding.based.on.its |
| 5780 | 20 73 70 65 63 69 66 69 63 20 70 61 74 68 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 | .specific.path...........///.... |
| 57a0 | 20 70 61 74 68 20 3d 20 22 26 6c 74 3b 4b 65 79 62 6f 61 72 64 26 67 74 3b 2f 73 70 61 63 65 22 | .path.=."<Keyboard>/space" |
| 57c0 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 7d 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f | ..........///.};..........///.</ |
| 57e0 | 63 6f 64 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 65 78 61 6d 70 6c 65 3e 0d 0a 20 | code>..........///.</example>... |
| 5800 | 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f | .......///.</remarks>........../ |
| 5820 | 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 42 69 6e 64 69 6e 67 2e 4d | //.<seealso.cref="InputBinding.M |
| 5840 | 61 73 6b 42 79 47 72 6f 75 70 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 | askByGroup"/>..........///.<seea |
| 5860 | 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 2e 62 69 6e 64 69 6e 67 | lso.cref="InputActionMap.binding |
| 5880 | 4d 61 73 6b 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 | Mask"/>..........///.<seealso.cr |
| 58a0 | 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 2e 62 69 6e 64 69 6e 67 4d 61 73 6b | ef="InputActionAsset.bindingMask |
| 58c0 | 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 6e 70 75 74 42 69 6e 64 69 6e 67 | "/>..........public.InputBinding |
| 58e0 | 3f 20 62 69 6e 64 69 6e 67 4d 61 73 6b 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 | ?.bindingMask..........{........ |
| 5900 | 20 20 20 20 20 20 67 65 74 20 3d 3e 20 6d 5f 42 69 6e 64 69 6e 67 4d 61 73 6b 3b 0d 0a 20 20 20 | ......get.=>.m_BindingMask;..... |
| 5920 | 20 20 20 20 20 20 20 20 20 73 65 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 | .........set..............{..... |
| 5940 | 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 76 61 6c 75 65 20 3d 3d 20 6d 5f 42 69 6e 64 | .............if.(value.==.m_Bind |
| 5960 | 69 6e 67 4d 61 73 6b 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 | ingMask)......................re |
| 5980 | 74 75 72 6e 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 76 61 6c | turn;....................if.(val |
| 59a0 | 75 65 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a | ue.!=.null)..................{.. |
| 59c0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 76 20 3d 20 76 61 6c 75 | ....................var.v.=.valu |
| 59e0 | 65 2e 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 2e | e.Value;......................v. |
| 5a00 | 61 63 74 69 6f 6e 20 3d 20 6e 61 6d 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | action.=.name;.................. |
| 5a20 | 20 20 20 20 76 61 6c 75 65 20 3d 20 76 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ....value.=.v;.................. |
| 5a40 | 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 42 69 6e 64 69 6e 67 4d 61 | }....................m_BindingMa |
| 5a60 | 73 6b 20 3d 20 76 61 6c 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 | sk.=.value;....................v |
| 5a80 | 61 72 20 6d 61 70 20 3d 20 47 65 74 4f 72 43 72 65 61 74 65 41 63 74 69 6f 6e 4d 61 70 28 29 3b | ar.map.=.GetOrCreateActionMap(); |
| 5aa0 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 61 70 2e 6d 5f 53 74 61 74 | ..................if.(map.m_Stat |
| 5ac0 | 65 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | e.!=.null)...................... |
| 5ae0 | 6d 61 70 2e 4c 61 7a 79 52 65 73 6f 6c 76 65 42 69 6e 64 69 6e 67 73 28 29 3b 0d 0a 20 20 20 20 | map.LazyResolveBindings();...... |
| 5b00 | 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 | ........}..........}............ |
| 5b20 | 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 6c | ///.<summary>..........///.The.l |
| 5b40 | 69 73 74 20 6f 66 20 62 69 6e 64 69 6e 67 73 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 | ist.of.bindings.associated.with. |
| 5b60 | 74 68 65 20 61 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 | the.action...........///.</summa |
| 5b80 | 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 4c 69 73 74 20 6f 66 20 | ry>..........///.<value>List.of. |
| 5ba0 | 62 69 6e 64 69 6e 67 73 20 66 6f 72 20 74 68 65 20 61 63 74 69 6f 6e 2e 3c 2f 76 61 6c 75 65 3e | bindings.for.the.action.</value> |
| 5bc0 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 | ..........///.<remarks>......... |
| 5be0 | 20 2f 2f 2f 20 54 68 69 73 20 6c 69 73 74 20 63 6f 6e 74 61 69 6e 73 20 61 6c 6c 20 62 69 6e 64 | .///.This.list.contains.all.bind |
| 5c00 | 69 6e 67 73 20 66 72 6f 6d 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e | ings.from.<see.cref="InputAction |
| 5c20 | 4d 61 70 2e 62 69 6e 64 69 6e 67 73 22 2f 3e 20 6f 66 20 74 68 65 20 61 63 74 69 6f 6e 27 73 0d | Map.bindings"/>.of.the.action's. |
| 5c40 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 20 63 72 65 66 3d 22 61 63 74 69 6f 6e 4d 61 | .........///.<see.cref="actionMa |
| 5c60 | 70 22 2f 3e 20 74 68 61 74 20 72 65 66 65 72 65 6e 63 65 20 74 68 65 20 61 63 74 69 6f 6e 20 74 | p"/>.that.reference.the.action.t |
| 5c80 | 68 72 6f 75 67 68 20 74 68 65 69 72 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 42 69 6e | hrough.their.<see.cref="InputBin |
| 5ca0 | 64 69 6e 67 2e 61 63 74 69 6f 6e 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 70 72 6f 70 | ding.action"/>..........///.prop |
| 5cc0 | 65 72 74 79 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | erty...........///..........///. |
| 5ce0 | 4e 6f 74 65 20 74 68 61 74 20 6f 6e 20 74 68 65 20 66 69 72 73 74 20 63 61 6c 6c 2c 20 74 68 65 | Note.that.on.the.first.call,.the |
| 5d00 | 20 6c 69 73 74 20 6d 61 79 20 68 61 76 65 20 74 6f 20 62 65 20 65 78 74 72 61 63 74 65 64 20 66 | .list.may.have.to.be.extracted.f |
| 5d20 | 72 6f 6d 20 74 68 65 20 61 63 74 69 6f 6e 20 6d 61 70 20 66 69 72 73 74 20 77 68 69 63 68 0d 0a | rom.the.action.map.first.which.. |
| 5d40 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 6d 61 79 20 72 65 71 75 69 72 65 20 61 6c 6c 6f 63 61 74 69 | ........///.may.require.allocati |
| 5d60 | 6e 67 20 47 43 20 6d 65 6d 6f 72 79 2e 20 48 6f 77 65 76 65 72 2c 20 6f 6e 63 65 20 69 6e 69 74 | ng.GC.memory..However,.once.init |
| 5d80 | 69 61 6c 69 7a 65 64 2c 20 6e 6f 20 66 75 72 74 68 65 72 20 47 43 20 61 6c 6c 6f 63 61 74 69 6f | ialized,.no.further.GC.allocatio |
| 5da0 | 6e 20 68 69 74 73 20 73 68 6f 75 6c 64 20 6f 63 63 75 72 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f | n.hits.should.occur...........// |
| 5dc0 | 2f 20 49 66 20 74 68 65 20 62 69 6e 64 69 6e 67 20 73 65 74 75 70 20 6f 6e 20 74 68 65 20 6d 61 | /.If.the.binding.setup.on.the.ma |
| 5de0 | 70 20 69 73 20 63 68 61 6e 67 65 64 2c 20 72 65 2d 69 6e 69 74 69 61 6c 69 7a 61 74 69 6f 6e 20 | p.is.changed,.re-initialization. |
| 5e00 | 6d 61 79 20 62 65 20 72 65 71 75 69 72 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f | may.be.required...........///.</ |
| 5e20 | 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 | remarks>..........///.<seealso.c |
| 5e40 | 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 2e 62 69 6e 64 69 6e 67 73 22 2f 3e 0d | ref="InputActionMap.bindings"/>. |
| 5e60 | 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 52 65 61 64 4f 6e 6c 79 41 72 72 61 79 3c 49 6e | .........public.ReadOnlyArray<In |
| 5e80 | 70 75 74 42 69 6e 64 69 6e 67 3e 20 62 69 6e 64 69 6e 67 73 20 3d 3e 20 47 65 74 4f 72 43 72 65 | putBinding>.bindings.=>.GetOrCre |
| 5ea0 | 61 74 65 41 63 74 69 6f 6e 4d 61 70 28 29 2e 47 65 74 42 69 6e 64 69 6e 67 73 46 6f 72 53 69 6e | ateActionMap().GetBindingsForSin |
| 5ec0 | 67 6c 65 41 63 74 69 6f 6e 28 74 68 69 73 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | gleAction(this);............///. |
| 5ee0 | 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 73 65 74 20 6f | <summary>..........///.The.set.o |
| 5f00 | 66 20 63 6f 6e 74 72 6f 6c 73 20 74 6f 20 77 68 69 63 68 20 74 68 65 20 61 63 74 69 6f 6e 27 73 | f.controls.to.which.the.action's |
| 5f20 | 20 3c 73 65 65 20 63 72 65 66 3d 22 62 69 6e 64 69 6e 67 73 22 2f 3e 20 72 65 73 6f 6c 76 65 2e | .<see.cref="bindings"/>.resolve. |
| 5f40 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 | ..........///.</summary>........ |
| 5f60 | 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 43 6f 6e 74 72 6f 6c 73 20 72 65 73 6f 6c 76 65 64 20 66 | ..///.<value>Controls.resolved.f |
| 5f80 | 72 6f 6d 20 74 68 65 20 61 63 74 69 6f 6e 27 73 20 3c 73 65 65 20 63 72 65 66 3d 22 62 69 6e 64 | rom.the.action's.<see.cref="bind |
| 5fa0 | 69 6e 67 73 22 2f 3e 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 | ings"/>.</value>..........///.<r |
| 5fc0 | 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 69 73 20 70 72 6f 70 65 72 | emarks>..........///.This.proper |
| 5fe0 | 74 79 20 63 61 6e 20 62 65 20 71 75 65 72 69 65 64 20 77 68 65 74 68 65 72 20 74 68 65 20 61 63 | ty.can.be.queried.whether.the.ac |
| 6000 | 74 69 6f 6e 20 69 73 20 65 6e 61 62 6c 65 64 20 6f 72 20 6e 6f 74 20 61 6e 64 20 77 69 6c 6c 20 | tion.is.enabled.or.not.and.will. |
| 6020 | 72 65 74 75 72 6e 20 74 68 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 73 65 74 20 6f 66 20 63 | return.the..........///.set.of.c |
| 6040 | 6f 6e 74 72 6f 6c 73 20 74 68 61 74 20 6d 61 74 63 68 20 74 68 65 20 61 63 74 69 6f 6e 27 73 20 | ontrols.that.match.the.action's. |
| 6060 | 62 69 6e 64 69 6e 67 73 20 61 63 63 6f 72 64 69 6e 67 20 74 6f 20 74 68 65 20 63 75 72 72 65 6e | bindings.according.to.the.curren |
| 6080 | 74 20 73 65 74 75 70 20 6f 66 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 62 69 6e 64 69 6e 67 20 | t.setup.of..........///.binding. |
| 60a0 | 6d 61 73 6b 73 20 28 3c 73 65 65 20 63 72 65 66 3d 22 62 69 6e 64 69 6e 67 4d 61 73 6b 22 2f 3e | masks.(<see.cref="bindingMask"/> |
| 60c0 | 29 20 61 6e 64 20 64 65 76 69 63 65 20 72 65 73 74 72 69 63 74 69 6f 6e 73 20 28 3c 73 65 65 0d | ).and.device.restrictions.(<see. |
| 60e0 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 | .........///.cref="InputActionMa |
| 6100 | 70 2e 64 65 76 69 63 65 73 22 2f 3e 29 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 | p.devices"/>)...........///..... |
| 6120 | 20 20 20 20 20 2f 2f 2f 20 4e 6f 74 65 20 74 68 61 74 20 69 6e 74 65 72 6e 61 6c 6c 79 2c 20 63 | .....///.Note.that.internally,.c |
| 6140 | 6f 6e 74 72 6f 6c 73 20 61 72 65 20 6e 6f 74 20 73 74 6f 72 65 64 20 6f 6e 20 61 20 70 65 72 2d | ontrols.are.not.stored.on.a.per- |
| 6160 | 61 63 74 69 6f 6e 20 62 61 73 69 73 2e 20 54 68 69 73 20 6d 65 61 6e 73 0d 0a 20 20 20 20 20 20 | action.basis..This.means........ |
| 6180 | 20 20 2f 2f 2f 20 74 68 61 74 20 6f 6e 20 74 68 65 20 66 69 72 73 74 20 72 65 61 64 20 6f 66 20 | ..///.that.on.the.first.read.of. |
| 61a0 | 74 68 69 73 20 70 72 6f 70 65 72 74 79 2c 20 74 68 65 20 6c 69 73 74 20 6f 66 20 63 6f 6e 74 72 | this.property,.the.list.of.contr |
| 61c0 | 6f 6c 73 20 66 6f 72 20 6a 75 73 74 20 74 68 65 20 61 63 74 69 6f 6e 0d 0a 20 20 20 20 20 20 20 | ols.for.just.the.action......... |
| 61e0 | 20 2f 2f 2f 20 6d 61 79 20 68 61 76 65 20 74 6f 20 62 65 20 65 78 74 72 61 63 74 65 64 20 77 68 | .///.may.have.to.be.extracted.wh |
| 6200 | 69 63 68 20 69 6e 20 74 75 72 6e 20 6d 61 79 20 61 6c 6c 6f 63 61 74 65 20 47 43 20 6d 65 6d 6f | ich.in.turn.may.allocate.GC.memo |
| 6220 | 72 79 2e 20 41 66 74 65 72 20 74 68 65 20 66 69 72 73 74 20 72 65 61 64 2c 0d 0a 20 20 20 20 20 | ry..After.the.first.read,....... |
| 6240 | 20 20 20 2f 2f 2f 20 6e 6f 20 66 75 72 74 68 65 72 20 47 43 20 61 6c 6c 6f 63 61 74 69 6f 6e 73 | ...///.no.further.GC.allocations |
| 6260 | 20 73 68 6f 75 6c 64 20 6f 63 63 75 72 20 65 78 63 65 70 74 20 69 66 20 74 68 65 20 73 65 74 20 | .should.occur.except.if.the.set. |
| 6280 | 6f 66 20 63 6f 6e 74 72 6f 6c 73 20 69 73 20 63 68 61 6e 67 65 64 20 28 65 2e 67 2e 0d 0a 20 20 | of.controls.is.changed.(e.g..... |
| 62a0 | 20 20 20 20 20 20 2f 2f 2f 20 62 79 20 63 68 61 6e 67 69 6e 67 20 74 68 65 20 62 69 6e 64 69 6e | ......///.by.changing.the.bindin |
| 62c0 | 67 20 6d 61 73 6b 20 6f 72 20 62 79 20 61 64 64 69 6e 67 2f 72 65 6d 6f 76 69 6e 67 20 64 65 76 | g.mask.or.by.adding/removing.dev |
| 62e0 | 69 63 65 73 20 74 6f 2f 66 72 6f 6d 20 74 68 65 20 73 79 73 74 65 6d 29 2e 0d 0a 20 20 20 20 20 | ices.to/from.the.system)........ |
| 6300 | 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 66 20 74 68 65 20 70 72 6f 70 65 | ...///..........///.If.the.prope |
| 6320 | 72 74 79 20 69 73 20 71 75 65 72 69 65 64 20 77 68 65 6e 20 74 68 65 20 61 63 74 69 6f 6e 20 68 | rty.is.queried.when.the.action.h |
| 6340 | 61 73 20 6e 6f 74 20 62 65 65 6e 20 65 6e 61 62 6c 65 64 20 79 65 74 2c 20 74 68 65 20 73 79 73 | as.not.been.enabled.yet,.the.sys |
| 6360 | 74 65 6d 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 77 69 6c 6c 20 66 69 72 73 74 20 72 65 73 6f | tem..........///.will.first.reso |
| 6380 | 6c 76 65 20 63 6f 6e 74 72 6f 6c 73 20 6f 6e 20 74 68 65 20 61 63 74 69 6f 6e 20 28 61 6e 64 20 | lve.controls.on.the.action.(and. |
| 63a0 | 66 6f 72 20 61 6c 6c 20 61 63 74 69 6f 6e 73 20 69 6e 20 74 68 65 20 6d 61 70 20 61 6e 64 2f 6f | for.all.actions.in.the.map.and/o |
| 63c0 | 72 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 68 65 20 61 73 73 65 74 29 2e 20 53 65 65 20 3c | r..........///.the.asset)..See.< |
| 63e0 | 61 20 68 72 65 66 3d 22 2e 2e 2f 6d 61 6e 75 61 6c 2f 41 63 74 69 6f 6e 42 69 6e 64 69 6e 67 73 | a.href="../manual/ActionBindings |
| 6400 | 2e 68 74 6d 6c 23 62 69 6e 64 69 6e 67 2d 72 65 73 6f 6c 75 74 69 6f 6e 22 3e 42 69 6e 64 69 6e | .html#binding-resolution">Bindin |
| 6420 | 67 20 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 61 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 69 6e | g.Resolution</a>..........///.in |
| 6440 | 20 74 68 65 20 6d 61 6e 75 61 6c 20 66 6f 72 20 64 65 74 61 69 6c 73 2e 0d 0a 20 20 20 20 20 20 | .the.manual.for.details......... |
| 6460 | 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 | ..///.</remarks>..........public |
| 6480 | 20 52 65 61 64 4f 6e 6c 79 41 72 72 61 79 3c 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 3e 20 63 6f 6e | .ReadOnlyArray<InputControl>.con |
| 64a0 | 74 72 6f 6c 73 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 | trols..........{..............ge |
| 64c0 | 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | t..............{................ |
| 64e0 | 20 20 76 61 72 20 6d 61 70 20 3d 20 47 65 74 4f 72 43 72 65 61 74 65 41 63 74 69 6f 6e 4d 61 70 | ..var.map.=.GetOrCreateActionMap |
| 6500 | 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 61 70 2e 52 65 73 6f 6c 76 65 | ();..................map.Resolve |
| 6520 | 42 69 6e 64 69 6e 67 73 49 66 4e 65 63 65 73 73 61 72 79 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 | BindingsIfNecessary();.......... |
| 6540 | 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6d 61 70 2e 47 65 74 43 6f 6e 74 72 6f 6c 73 46 6f | ........return.map.GetControlsFo |
| 6560 | 72 53 69 6e 67 6c 65 41 63 74 69 6f 6e 28 74 68 69 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 | rSingleAction(this);............ |
| 6580 | 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 | ..}..........}............///.<s |
| 65a0 | 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 63 75 72 72 65 6e 74 | ummary>..........///.The.current |
| 65c0 | 20 70 68 61 73 65 20 6f 66 20 74 68 65 20 61 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f | .phase.of.the.action.........../ |
| 65e0 | 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 | //.</summary>..........///.<rema |
| 6600 | 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 57 68 65 6e 20 6c 69 73 74 65 6e 69 6e 67 | rks>..........///.When.listening |
| 6620 | 20 66 6f 72 20 63 6f 6e 74 72 6f 6c 20 69 6e 70 75 74 20 61 6e 64 20 77 68 65 6e 20 72 65 73 70 | .for.control.input.and.when.resp |
| 6640 | 6f 6e 64 69 6e 67 20 74 6f 20 63 6f 6e 74 72 6f 6c 20 76 61 6c 75 65 20 63 68 61 6e 67 65 73 2c | onding.to.control.value.changes, |
| 6660 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 63 74 69 6f 6e 73 20 77 69 6c 6c 20 67 6f 20 74 68 | ..........///.actions.will.go.th |
| 6680 | 72 6f 75 67 68 20 73 65 76 65 72 61 6c 20 70 6f 73 73 69 62 6c 65 20 70 68 61 73 65 73 2e 0d 0a | rough.several.possible.phases... |
| 66a0 | 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 6e 20 67 65 6e 65 | ........///..........///.In.gene |
| 66c0 | 72 61 6c 2c 20 77 68 65 6e 20 61 6e 20 61 63 74 69 6f 6e 20 73 74 61 72 74 73 20 72 65 63 65 69 | ral,.when.an.action.starts.recei |
| 66e0 | 76 69 6e 67 20 69 6e 70 75 74 2c 20 69 74 20 77 69 6c 6c 20 67 6f 20 74 6f 20 3c 73 65 65 20 63 | ving.input,.it.will.go.to.<see.c |
| 6700 | 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 50 68 61 73 65 2e 53 74 61 72 74 65 64 22 2f 3e | ref="InputActionPhase.Started"/> |
| 6720 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 6e 64 20 77 68 65 6e 20 69 74 20 73 74 6f 70 73 20 | ..........///.and.when.it.stops. |
| 6740 | 72 65 63 65 69 76 69 6e 67 20 69 6e 70 75 74 2c 20 69 74 20 77 69 6c 6c 20 67 6f 20 74 6f 20 3c | receiving.input,.it.will.go.to.< |
| 6760 | 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 50 68 61 73 65 2e 43 61 6e 63 65 | see.cref="InputActionPhase.Cance |
| 6780 | 6c 65 64 22 2f 3e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 57 68 65 6e 20 3c 73 65 65 20 63 | led"/>...........///.When.<see.c |
| 67a0 | 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 50 68 61 73 65 2e 50 65 72 66 6f 72 6d 65 64 22 | ref="InputActionPhase.Performed" |
| 67c0 | 2f 3e 20 69 73 20 75 73 65 64 20 64 65 70 65 6e 64 73 20 70 72 69 6d 61 72 69 6c 79 20 6f 6e 20 | />.is.used.depends.primarily.on. |
| 67e0 | 74 68 65 20 74 79 70 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 6f 66 20 61 63 74 69 6f 6e 2e | the.type..........///.of.action. |
| 6800 | 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 54 79 70 65 2e 56 61 6c 75 | .<see.cref="InputActionType.Valu |
| 6820 | 65 22 2f 3e 20 77 69 6c 6c 20 74 72 69 67 67 65 72 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 | e"/>.will.trigger.<see.cref="Inp |
| 6840 | 75 74 41 63 74 69 6f 6e 50 68 61 73 65 2e 50 65 72 66 6f 72 6d 65 64 22 2f 3e 0d 0a 20 20 20 20 | utActionPhase.Performed"/>...... |
| 6860 | 20 20 20 20 2f 2f 2f 20 77 68 65 6e 65 76 65 72 20 74 68 65 20 76 61 6c 75 65 20 6f 66 20 74 68 | ....///.whenever.the.value.of.th |
| 6880 | 65 20 63 6f 6e 74 72 6f 6c 20 63 68 61 6e 67 65 73 20 28 69 6e 63 6c 75 64 69 6e 67 20 74 68 65 | e.control.changes.(including.the |
| 68a0 | 20 66 69 72 73 74 20 74 69 6d 65 3b 20 69 2e 65 2e 20 69 74 20 77 69 6c 6c 20 66 69 72 73 74 0d | .first.time;.i.e..it.will.first. |
| 68c0 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 72 69 67 67 65 72 20 3c 73 65 65 20 63 72 65 66 3d 22 | .........///.trigger.<see.cref=" |
| 68e0 | 49 6e 70 75 74 41 63 74 69 6f 6e 50 68 61 73 65 2e 53 74 61 72 74 65 64 22 2f 3e 20 61 6e 64 20 | InputActionPhase.Started"/>.and. |
| 6900 | 74 68 65 6e 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 50 68 61 73 65 | then.<see.cref="InputActionPhase |
| 6920 | 2e 50 65 72 66 6f 72 6d 65 64 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 72 69 67 68 74 | .Performed"/>..........///.right |
| 6940 | 20 61 66 74 65 72 29 20 77 68 65 72 65 61 73 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 | .after).whereas.<see.cref="Input |
| 6960 | 41 63 74 69 6f 6e 54 79 70 65 2e 42 75 74 74 6f 6e 22 2f 3e 20 77 69 6c 6c 20 74 72 69 67 67 65 | ActionType.Button"/>.will.trigge |
| 6980 | 72 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 50 68 61 73 65 2e 50 65 | r.<see.cref="InputActionPhase.Pe |
| 69a0 | 72 66 6f 72 6d 65 64 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 73 20 73 6f 6f 6e 20 | rformed"/>..........///.as.soon. |
| 69c0 | 61 73 20 74 68 65 20 62 75 74 74 6f 6e 20 70 72 65 73 73 20 74 68 72 65 73 68 6f 6c 64 20 28 3c | as.the.button.press.threshold.(< |
| 69e0 | 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 53 65 74 74 69 6e 67 73 2e 62 75 74 74 6f 6e 50 72 | see.cref="InputSettings.buttonPr |
| 6a00 | 65 73 73 54 68 72 65 73 68 6f 6c 64 22 2f 3e 29 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 68 61 | essThreshold"/>)..........///.ha |
| 6a20 | 73 20 62 65 65 6e 20 63 72 6f 73 73 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 | s.been.crossed...........///.... |
| 6a40 | 20 20 20 20 20 20 2f 2f 2f 20 4e 6f 74 65 20 74 68 61 74 20 62 6f 74 68 20 69 6e 74 65 72 61 63 | ......///.Note.that.both.interac |
| 6a60 | 74 69 6f 6e 73 20 61 6e 64 20 74 68 65 20 61 63 74 69 6f 6e 20 3c 73 65 65 20 63 72 65 66 3d 22 | tions.and.the.action.<see.cref=" |
| 6a80 | 74 79 70 65 22 2f 3e 20 63 61 6e 20 61 66 66 65 63 74 20 74 68 65 20 70 68 61 73 65 73 0d 0a 20 | type"/>.can.affect.the.phases... |
| 6aa0 | 20 20 20 20 20 20 20 2f 2f 2f 20 74 68 61 74 20 61 6e 20 61 63 74 69 6f 6e 20 67 6f 65 73 20 74 | .......///.that.an.action.goes.t |
| 6ac0 | 68 72 6f 75 67 68 2e 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 54 79 | hrough..<see.cref="InputActionTy |
| 6ae0 | 70 65 2e 50 61 73 73 54 68 72 6f 75 67 68 22 2f 3e 20 61 63 74 69 6f 6e 73 20 77 69 6c 6c 0d 0a | pe.PassThrough"/>.actions.will.. |
| 6b00 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 6f 6e 6c 79 20 65 76 65 72 20 75 73 65 20 3c 73 65 65 20 63 | ........///.only.ever.use.<see.c |
| 6b20 | 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 50 68 61 73 65 2e 50 65 72 66 6f 72 6d 65 64 22 | ref="InputActionPhase.Performed" |
| 6b40 | 2f 3e 20 61 6e 64 20 6e 6f 74 20 67 6f 20 74 6f 20 3c 73 65 65 0d 0a 20 20 20 20 20 20 20 20 2f | />.and.not.go.to.<see........../ |
| 6b60 | 2f 2f 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 50 68 61 73 65 2e 53 74 61 72 74 65 | //.cref="InputActionPhase.Starte |
| 6b80 | 64 22 2f 3e 20 6f 72 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 50 68 | d"/>.or.<see.cref="InputActionPh |
| 6ba0 | 61 73 65 2e 43 61 6e 63 65 6c 65 64 22 2f 3e 20 28 61 73 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | ase.Canceled"/>.(as........../// |
| 6bc0 | 20 70 61 73 73 2d 74 68 72 6f 75 67 68 20 61 63 74 69 6f 6e 73 20 64 6f 20 6e 6f 74 20 66 6f 6c | .pass-through.actions.do.not.fol |
| 6be0 | 6c 6f 77 20 74 68 65 20 73 74 61 72 74 2d 70 65 72 66 6f 72 6d 65 64 2d 63 61 6e 63 65 6c 65 64 | low.the.start-performed-canceled |
| 6c00 | 20 6d 6f 64 65 6c 20 69 6e 20 67 65 6e 65 72 61 6c 29 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | .model.in.general).........../// |
| 6c20 | 20 41 6c 73 6f 2c 20 69 6e 74 65 72 61 63 74 69 6f 6e 73 20 63 61 6e 20 63 68 6f 6f 73 65 20 74 | .Also,.interactions.can.choose.t |
| 6c40 | 68 65 69 72 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 57 | heir..........///..........///.W |
| 6c60 | 68 69 6c 65 20 61 6e 20 61 63 74 69 6f 6e 20 69 73 20 64 69 73 61 62 6c 65 64 2c 20 69 74 73 20 | hile.an.action.is.disabled,.its. |
| 6c80 | 70 68 61 73 65 20 69 73 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 50 | phase.is.<see.cref="InputActionP |
| 6ca0 | 68 61 73 65 2e 44 69 73 61 62 6c 65 64 22 2f 3e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c | hase.Disabled"/>...........///.< |
| 6cc0 | 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 6e 70 75 74 41 | /remarks>..........public.InputA |
| 6ce0 | 63 74 69 6f 6e 50 68 61 73 65 20 70 68 61 73 65 20 3d 3e 20 63 75 72 72 65 6e 74 53 74 61 74 65 | ctionPhase.phase.=>.currentState |
| 6d00 | 2e 70 68 61 73 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e | .phase;............///.<summary> |
| 6d20 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 57 68 65 74 68 65 72 20 74 68 65 20 61 63 74 69 6f 6e | ..........///.Whether.the.action |
| 6d40 | 20 69 73 20 63 75 72 72 65 6e 74 6c 79 20 65 6e 61 62 6c 65 64 2c 20 69 2e 65 2e 20 72 65 73 70 | .is.currently.enabled,.i.e..resp |
| 6d60 | 6f 6e 64 73 20 74 6f 20 69 6e 70 75 74 2c 20 6f 72 20 6e 6f 74 2e 0d 0a 20 20 20 20 20 20 20 20 | onds.to.input,.or.not........... |
| 6d80 | 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c | ///.</summary>..........///.<val |
| 6da0 | 75 65 3e 54 72 75 65 20 69 66 20 74 68 65 20 61 63 74 69 6f 6e 20 69 73 20 63 75 72 72 65 6e 74 | ue>True.if.the.action.is.current |
| 6dc0 | 6c 79 20 65 6e 61 62 6c 65 64 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | ly.enabled.</value>........../// |
| 6de0 | 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 41 6e 20 61 63 74 69 6f | .<remarks>..........///.An.actio |
| 6e00 | 6e 20 69 73 20 65 6e 61 62 6c 65 64 20 62 79 20 65 69 74 68 65 72 20 63 61 6c 6c 69 6e 67 20 3c | n.is.enabled.by.either.calling.< |
| 6e20 | 73 65 65 20 63 72 65 66 3d 22 45 6e 61 62 6c 65 22 2f 3e 20 6f 6e 20 69 74 20 64 69 72 65 63 74 | see.cref="Enable"/>.on.it.direct |
| 6e40 | 6c 79 20 6f 72 20 62 79 20 63 61 6c 6c 69 6e 67 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 | ly.or.by.calling..........///.<s |
| 6e60 | 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 2e 45 6e 61 62 6c 65 22 2f | ee.cref="InputActionMap.Enable"/ |
| 6e80 | 3e 20 6f 6e 20 74 68 65 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 4d | >.on.the.<see.cref="InputActionM |
| 6ea0 | 61 70 22 2f 3e 20 63 6f 6e 74 61 69 6e 69 6e 67 20 74 68 65 20 61 63 74 69 6f 6e 2e 0d 0a 20 20 | ap"/>.containing.the.action..... |
| 6ec0 | 20 20 20 20 20 20 2f 2f 2f 20 57 68 65 6e 20 65 6e 61 62 6c 65 64 2c 20 61 6e 20 61 63 74 69 6f | ......///.When.enabled,.an.actio |
| 6ee0 | 6e 20 77 69 6c 6c 20 6c 69 73 74 65 6e 20 66 6f 72 20 63 68 61 6e 67 65 73 20 6f 6e 20 74 68 65 | n.will.listen.for.changes.on.the |
| 6f00 | 20 63 6f 6e 74 72 6f 6c 73 20 69 74 20 69 73 20 62 6f 75 6e 64 20 74 6f 20 61 6e 64 20 74 72 69 | .controls.it.is.bound.to.and.tri |
| 6f20 | 67 67 65 72 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 63 61 6c 6c 62 61 63 6b 73 20 73 75 63 68 | gger..........///.callbacks.such |
| 6f40 | 20 61 73 20 3c 73 65 65 20 63 72 65 66 3d 22 73 74 61 72 74 65 64 22 2f 3e 2c 20 3c 73 65 65 20 | .as.<see.cref="started"/>,.<see. |
| 6f60 | 63 72 65 66 3d 22 70 65 72 66 6f 72 6d 65 64 22 2f 3e 2c 20 61 6e 64 20 3c 73 65 65 20 63 72 65 | cref="performed"/>,.and.<see.cre |
| 6f80 | 66 3d 22 63 61 6e 63 65 6c 65 64 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 69 6e 20 72 | f="canceled"/>..........///.in.r |
| 6fa0 | 65 73 70 6f 6e 73 65 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e | esponse...........///.</remarks> |
| 6fc0 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 45 6e 61 | ..........///.<seealso.cref="Ena |
| 6fe0 | 62 6c 65 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 | ble"/>..........///.<seealso.cre |
| 7000 | 66 3d 22 44 69 73 61 62 6c 65 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 | f="Disable"/>..........///.<seea |
| 7020 | 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 2e 45 6e 61 62 6c 65 22 | lso.cref="InputActionMap.Enable" |
| 7040 | 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 | />..........///.<seealso.cref="I |
| 7060 | 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 2e 44 69 73 61 62 6c 65 22 2f 3e 0d 0a 20 20 20 20 20 20 | nputActionMap.Disable"/>........ |
| 7080 | 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 53 79 73 74 65 6d | ..///.<seealso.cref="InputSystem |
| 70a0 | 2e 4c 69 73 74 45 6e 61 62 6c 65 64 41 63 74 69 6f 6e 73 28 29 22 2f 3e 0d 0a 20 20 20 20 20 20 | .ListEnabledActions()"/>........ |
| 70c0 | 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 65 6e 61 62 6c 65 64 20 3d 3e 20 70 68 61 73 65 20 21 | ..public.bool.enabled.=>.phase.! |
| 70e0 | 3d 20 49 6e 70 75 74 41 63 74 69 6f 6e 50 68 61 73 65 2e 44 69 73 61 62 6c 65 64 3b 0d 0a 0d 0a | =.InputActionPhase.Disabled;.... |
| 7100 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f | ........///.<summary>........../ |
| 7120 | 2f 2f 20 45 76 65 6e 74 20 74 68 61 74 20 69 73 20 74 72 69 67 67 65 72 65 64 20 77 68 65 6e 20 | //.Event.that.is.triggered.when. |
| 7140 | 74 68 65 20 61 63 74 69 6f 6e 20 68 61 73 20 62 65 65 6e 20 73 74 61 72 74 65 64 2e 0d 0a 20 20 | the.action.has.been.started..... |
| 7160 | 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f | ......///.</summary>..........// |
| 7180 | 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 53 65 65 20 3c 73 65 | /.<remarks>..........///.See.<se |
| 71a0 | 65 20 63 72 65 66 3d 22 70 68 61 73 65 22 2f 3e 20 66 6f 72 20 64 65 74 61 69 6c 73 20 6f 66 20 | e.cref="phase"/>.for.details.of. |
| 71c0 | 68 6f 77 20 61 6e 20 61 63 74 69 6f 6e 20 70 72 6f 67 72 65 73 73 65 73 20 74 68 72 6f 75 67 68 | how.an.action.progresses.through |
| 71e0 | 20 70 68 61 73 65 73 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 6e 64 20 74 72 69 67 67 65 72 | .phases..........///.and.trigger |
| 7200 | 73 20 74 68 69 73 20 63 61 6c 6c 62 61 63 6b 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f | s.this.callback...........///.</ |
| 7220 | 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 20 63 72 65 66 3d | remarks>..........///.<see.cref= |
| 7240 | 22 49 6e 70 75 74 41 63 74 69 6f 6e 50 68 61 73 65 2e 53 74 61 72 74 65 64 22 2f 3e 0d 0a 20 20 | "InputActionPhase.Started"/>.... |
| 7260 | 20 20 20 20 20 20 70 75 62 6c 69 63 20 65 76 65 6e 74 20 41 63 74 69 6f 6e 3c 43 61 6c 6c 62 61 | ......public.event.Action<Callba |
| 7280 | 63 6b 43 6f 6e 74 65 78 74 3e 20 73 74 61 72 74 65 64 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 | ckContext>.started..........{... |
| 72a0 | 20 20 20 20 20 20 20 20 20 20 20 61 64 64 20 3d 3e 20 6d 5f 4f 6e 53 74 61 72 74 65 64 2e 41 70 | ...........add.=>.m_OnStarted.Ap |
| 72c0 | 70 65 6e 64 28 76 61 6c 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 6d 6f 76 65 | pend(value);..............remove |
| 72e0 | 20 3d 3e 20 6d 5f 4f 6e 53 74 61 72 74 65 64 2e 52 65 6d 6f 76 65 28 76 61 6c 75 65 29 3b 0d 0a | .=>.m_OnStarted.Remove(value);.. |
| 7300 | 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 | ........}............///.<summar |
| 7320 | 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 45 76 65 6e 74 20 74 68 61 74 20 69 73 20 74 72 | y>..........///.Event.that.is.tr |
| 7340 | 69 67 67 65 72 65 64 20 77 68 65 6e 20 74 68 65 20 61 63 74 69 6f 6e 20 68 61 73 20 62 65 65 6e | iggered.when.the.action.has.been |
| 7360 | 20 3c 73 65 65 20 63 72 65 66 3d 22 73 74 61 72 74 65 64 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 | .<see.cref="started"/>.......... |
| 7380 | 2f 2f 2f 20 62 75 74 20 74 68 65 6e 20 63 61 6e 63 65 6c 65 64 20 62 65 66 6f 72 65 20 62 65 69 | ///.but.then.canceled.before.bei |
| 73a0 | 6e 67 20 66 75 6c 6c 79 20 3c 73 65 65 20 63 72 65 66 3d 22 70 65 72 66 6f 72 6d 65 64 22 2f 3e | ng.fully.<see.cref="performed"/> |
| 73c0 | 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 | ...........///.</summary>....... |
| 73e0 | 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 53 65 | ...///.<remarks>..........///.Se |
| 7400 | 65 20 3c 73 65 65 20 63 72 65 66 3d 22 70 68 61 73 65 22 2f 3e 20 66 6f 72 20 64 65 74 61 69 6c | e.<see.cref="phase"/>.for.detail |
| 7420 | 73 20 6f 66 20 68 6f 77 20 61 6e 20 61 63 74 69 6f 6e 20 70 72 6f 67 72 65 73 73 65 73 20 74 68 | s.of.how.an.action.progresses.th |
| 7440 | 72 6f 75 67 68 20 70 68 61 73 65 73 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 6e 64 20 74 72 | rough.phases..........///.and.tr |
| 7460 | 69 67 67 65 72 73 20 74 68 69 73 20 63 61 6c 6c 62 61 63 6b 2e 0d 0a 20 20 20 20 20 20 20 20 2f | iggers.this.callback.........../ |
| 7480 | 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 20 | //.</remarks>..........///.<see. |
| 74a0 | 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 50 68 61 73 65 2e 43 61 6e 63 65 6c 65 64 22 | cref="InputActionPhase.Canceled" |
| 74c0 | 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 65 76 65 6e 74 20 41 63 74 69 6f 6e 3c | />..........public.event.Action< |
| 74e0 | 43 61 6c 6c 62 61 63 6b 43 6f 6e 74 65 78 74 3e 20 63 61 6e 63 65 6c 65 64 0d 0a 20 20 20 20 20 | CallbackContext>.canceled....... |
| 7500 | 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 61 64 64 20 3d 3e 20 6d 5f 4f 6e 43 61 6e | ...{..............add.=>.m_OnCan |
| 7520 | 63 65 6c 65 64 2e 41 70 70 65 6e 64 28 76 61 6c 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 | celed.Append(value);............ |
| 7540 | 20 20 72 65 6d 6f 76 65 20 3d 3e 20 6d 5f 4f 6e 43 61 6e 63 65 6c 65 64 2e 52 65 6d 6f 76 65 28 | ..remove.=>.m_OnCanceled.Remove( |
| 7560 | 76 61 6c 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f | value);..........}............// |
| 7580 | 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 45 76 65 6e 74 20 74 | /.<summary>..........///.Event.t |
| 75a0 | 68 61 74 20 69 73 20 74 72 69 67 67 65 72 65 64 20 77 68 65 6e 20 74 68 65 20 61 63 74 69 6f 6e | hat.is.triggered.when.the.action |
| 75c0 | 20 68 61 73 20 62 65 65 6e 20 66 75 6c 6c 79 20 70 65 72 66 6f 72 6d 65 64 2e 0d 0a 20 20 20 20 | .has.been.fully.performed....... |
| 75e0 | 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | ....///.</summary>..........///. |
| 7600 | 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 53 65 65 20 3c 73 65 65 20 | <remarks>..........///.See.<see. |
| 7620 | 63 72 65 66 3d 22 70 68 61 73 65 22 2f 3e 20 66 6f 72 20 64 65 74 61 69 6c 73 20 6f 66 20 68 6f | cref="phase"/>.for.details.of.ho |
| 7640 | 77 20 61 6e 20 61 63 74 69 6f 6e 20 70 72 6f 67 72 65 73 73 65 73 20 74 68 72 6f 75 67 68 20 70 | w.an.action.progresses.through.p |
| 7660 | 68 61 73 65 73 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 6e 64 20 74 72 69 67 67 65 72 73 20 | hases..........///.and.triggers. |
| 7680 | 74 68 69 73 20 63 61 6c 6c 62 61 63 6b 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 | this.callback...........///.</re |
| 76a0 | 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 20 63 72 65 66 3d 22 49 | marks>..........///.<see.cref="I |
| 76c0 | 6e 70 75 74 41 63 74 69 6f 6e 50 68 61 73 65 2e 50 65 72 66 6f 72 6d 65 64 22 2f 3e 0d 0a 20 20 | nputActionPhase.Performed"/>.... |
| 76e0 | 20 20 20 20 20 20 70 75 62 6c 69 63 20 65 76 65 6e 74 20 41 63 74 69 6f 6e 3c 43 61 6c 6c 62 61 | ......public.event.Action<Callba |
| 7700 | 63 6b 43 6f 6e 74 65 78 74 3e 20 70 65 72 66 6f 72 6d 65 64 0d 0a 20 20 20 20 20 20 20 20 7b 0d | ckContext>.performed..........{. |
| 7720 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 61 64 64 20 3d 3e 20 6d 5f 4f 6e 50 65 72 66 6f 72 6d 65 | .............add.=>.m_OnPerforme |
| 7740 | 64 2e 41 70 70 65 6e 64 28 76 61 6c 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 | d.Append(value);..............re |
| 7760 | 6d 6f 76 65 20 3d 3e 20 6d 5f 4f 6e 50 65 72 66 6f 72 6d 65 64 2e 52 65 6d 6f 76 65 28 76 61 6c | move.=>.m_OnPerformed.Remove(val |
| 7780 | 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c | ue);..........}............///.< |
| 77a0 | 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 57 68 65 74 68 65 72 20 74 68 | summary>..........///.Whether.th |
| 77c0 | 65 20 61 63 74 69 6f 6e 20 77 61 73 20 74 72 69 67 67 65 72 65 64 20 28 69 2e 65 2e 20 68 61 64 | e.action.was.triggered.(i.e..had |
| 77e0 | 20 3c 73 65 65 20 63 72 65 66 3d 22 70 65 72 66 6f 72 6d 65 64 22 2f 3e 20 63 61 6c 6c 65 64 29 | .<see.cref="performed"/>.called) |
| 7800 | 20 74 68 69 73 20 66 72 61 6d 65 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d | .this.frame...........///.</summ |
| 7820 | 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 | ary>..........///.<remarks>..... |
| 7840 | 20 20 20 20 20 2f 2f 2f 20 55 6e 6c 69 6b 65 20 3c 73 65 65 20 63 72 65 66 3d 22 52 65 61 64 56 | .....///.Unlike.<see.cref="ReadV |
| 7860 | 61 6c 75 65 7b 54 56 61 6c 75 65 7d 22 2f 3e 2c 20 77 68 69 63 68 20 77 69 6c 6c 20 72 65 73 65 | alue{TValue}"/>,.which.will.rese |
| 7880 | 74 20 77 68 65 6e 20 74 68 65 20 61 63 74 69 6f 6e 20 67 6f 65 73 20 62 61 63 6b 20 74 6f 20 77 | t.when.the.action.goes.back.to.w |
| 78a0 | 61 69 74 69 6e 67 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 73 74 61 74 65 2c 20 74 68 69 73 20 | aiting..........///.state,.this. |
| 78c0 | 70 72 6f 70 65 72 74 79 20 77 69 6c 6c 20 73 74 61 79 20 74 72 75 65 20 66 6f 72 20 74 68 65 20 | property.will.stay.true.for.the. |
| 78e0 | 64 75 72 61 74 69 6f 6e 20 6f 66 20 74 68 65 20 63 75 72 72 65 6e 74 20 66 72 61 6d 65 20 28 69 | duration.of.the.current.frame.(i |
| 7900 | 2e 65 2e 20 75 6e 74 69 6c 20 74 68 65 20 6e 65 78 74 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | .e..until.the.next..........///. |
| 7920 | 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 53 79 73 74 65 6d 2e 55 70 64 61 74 65 22 2f 3e | <see.cref="InputSystem.Update"/> |
| 7940 | 20 72 75 6e 73 29 20 61 73 20 6c 6f 6e 67 20 61 73 20 74 68 65 20 61 63 74 69 6f 6e 20 77 61 73 | .runs).as.long.as.the.action.was |
| 7960 | 20 74 72 69 67 67 65 72 65 64 20 61 74 20 6c 65 61 73 74 20 6f 6e 63 65 2e 0d 0a 20 20 20 20 20 | .triggered.at.least.once........ |
| 7980 | 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 65 78 61 6d 70 6c 65 3e 0d 0a 20 | ...///..........///.<example>... |
| 79a0 | 20 20 20 20 20 20 20 2f 2f 2f 20 3c 63 6f 64 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 69 | .......///.<code>..........///.i |
| 79c0 | 66 20 28 6d 79 43 6f 6e 74 72 6f 6c 73 2e 67 61 6d 65 70 6c 61 79 2e 66 69 72 65 2e 74 72 69 67 | f.(myControls.gameplay.fire.trig |
| 79e0 | 67 65 72 65 64 29 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 46 69 72 65 28 29 3b 0d | gered)..........///.....Fire();. |
| 7a00 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 63 6f 64 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f | .........///.</code>..........// |
| 7a20 | 2f 20 3c 2f 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 | /.</example>..........///.</rema |
| 7a40 | 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d | rks>..........///.<seealso.cref= |
| 7a60 | 22 49 6e 70 75 74 41 63 74 69 6f 6e 54 79 70 65 2e 42 75 74 74 6f 6e 22 2f 3e 0d 0a 20 20 20 20 | "InputActionType.Button"/>...... |
| 7a80 | 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 52 65 61 64 56 61 6c 75 65 | ....///.<seealso.cref="ReadValue |
| 7aa0 | 7b 54 56 61 6c 75 65 7d 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 75 6e 73 61 | {TValue}"/>..........public.unsa |
| 7ac0 | 66 65 20 62 6f 6f 6c 20 74 72 69 67 67 65 72 65 64 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 | fe.bool.triggered..........{.... |
| 7ae0 | 20 20 20 20 20 20 20 20 20 20 67 65 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 | ..........get..............{.... |
| 7b00 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6d 61 70 20 3d 20 47 65 74 4f 72 43 72 65 | ..............var.map.=.GetOrCre |
| 7b20 | 61 74 65 41 63 74 69 6f 6e 4d 61 70 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ateActionMap();................. |
| 7b40 | 20 69 66 20 28 6d 61 70 2e 6d 5f 53 74 61 74 65 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 | .if.(map.m_State.==.null)....... |
| 7b60 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0d 0a 0d 0a | ...............return.false;.... |
| 7b80 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6c 61 73 74 54 72 69 67 67 65 72 65 | ................var.lastTriggere |
| 7ba0 | 64 49 6e 55 70 64 61 74 65 20 3d 20 6d 61 70 2e 6d 5f 53 74 61 74 65 2e 61 63 74 69 6f 6e 53 74 | dInUpdate.=.map.m_State.actionSt |
| 7bc0 | 61 74 65 73 5b 6d 5f 41 63 74 69 6f 6e 49 6e 64 65 78 49 6e 53 74 61 74 65 5d 2e 6c 61 73 74 54 | ates[m_ActionIndexInState].lastT |
| 7be0 | 72 69 67 67 65 72 65 64 49 6e 55 70 64 61 74 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | riggeredInUpdate;............... |
| 7c00 | 20 20 20 72 65 74 75 72 6e 20 6c 61 73 74 54 72 69 67 67 65 72 65 64 49 6e 55 70 64 61 74 65 20 | ...return.lastTriggeredInUpdate. |
| 7c20 | 21 3d 20 30 20 26 26 20 6c 61 73 74 54 72 69 67 67 65 72 65 64 49 6e 55 70 64 61 74 65 20 3d 3d | !=.0.&&.lastTriggeredInUpdate.== |
| 7c40 | 20 49 6e 70 75 74 55 70 64 61 74 65 2e 73 5f 55 70 64 61 74 65 53 74 65 70 43 6f 75 6e 74 3b 0d | .InputUpdate.s_UpdateStepCount;. |
| 7c60 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 | .............}..........}....... |
| 7c80 | 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | .....///.<summary>..........///. |
| 7ca0 | 54 68 65 20 63 75 72 72 65 6e 74 6c 79 20 61 63 74 69 76 65 20 63 6f 6e 74 72 6f 6c 20 74 68 61 | The.currently.active.control.tha |
| 7cc0 | 74 20 69 73 20 64 72 69 76 69 6e 67 20 74 68 65 20 61 63 74 69 6f 6e 2e 20 4e 75 6c 6c 20 77 68 | t.is.driving.the.action..Null.wh |
| 7ce0 | 69 6c 65 20 74 68 65 20 61 63 74 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 69 73 20 69 | ile.the.action..........///.is.i |
| 7d00 | 6e 20 77 61 69 74 69 6e 67 20 28 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f | n.waiting.(<see.cref="InputActio |
| 7d20 | 6e 50 68 61 73 65 2e 57 61 69 74 69 6e 67 22 2f 3e 29 20 6f 72 20 63 61 6e 63 65 6c 65 64 20 28 | nPhase.Waiting"/>).or.canceled.( |
| 7d40 | 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 50 68 61 73 65 2e 43 61 6e 63 | <see.cref="InputActionPhase.Canc |
| 7d60 | 65 6c 65 64 22 2f 3e 29 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 73 74 61 74 65 2e 20 4f 74 68 | eled"/>)..........///.state..Oth |
| 7d80 | 65 72 77 69 73 65 20 74 68 65 20 63 6f 6e 74 72 6f 6c 20 74 68 61 74 20 6c 61 73 74 20 68 61 64 | erwise.the.control.that.last.had |
| 7da0 | 20 61 63 74 69 76 69 74 79 20 6f 6e 20 69 74 20 77 68 69 63 68 20 77 61 73 6e 27 74 20 69 67 6e | .activity.on.it.which.wasn't.ign |
| 7dc0 | 6f 72 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 | ored...........///.</summary>... |
| 7de0 | 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f | .......///.<remarks>..........// |
| 7e00 | 2f 20 4e 6f 74 65 20 74 68 61 74 20 74 68 65 20 63 6f 6e 74 72 6f 6c 27 73 20 76 61 6c 75 65 20 | /.Note.that.the.control's.value. |
| 7e20 | 64 6f 65 73 20 6e 6f 74 20 6e 65 63 65 73 73 61 72 69 6c 79 20 63 6f 72 72 65 73 70 6f 6e 64 20 | does.not.necessarily.correspond. |
| 7e40 | 74 6f 20 74 68 65 20 76 61 6c 75 65 20 6f 66 20 74 68 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | to.the.value.of.the........../// |
| 7e60 | 20 61 63 74 69 6f 6e 20 28 3c 73 65 65 20 63 72 65 66 3d 22 52 65 61 64 56 61 6c 75 65 7b 54 56 | .action.(<see.cref="ReadValue{TV |
| 7e80 | 61 6c 75 65 7d 22 2f 3e 29 20 61 73 20 74 68 65 20 63 6f 6e 74 72 6f 6c 20 6d 61 79 20 62 65 20 | alue}"/>).as.the.control.may.be. |
| 7ea0 | 70 61 72 74 20 6f 66 20 61 20 63 6f 6d 70 6f 73 69 74 65 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f | part.of.a.composite...........// |
| 7ec0 | 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c | /.</remarks>..........///.<seeal |
| 7ee0 | 73 6f 20 63 72 65 66 3d 22 43 61 6c 6c 62 61 63 6b 43 6f 6e 74 65 78 74 2e 63 6f 6e 74 72 6f 6c | so.cref="CallbackContext.control |
| 7f00 | 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 75 6e 73 61 66 65 20 49 6e 70 75 74 | "/>..........public.unsafe.Input |
| 7f20 | 43 6f 6e 74 72 6f 6c 20 61 63 74 69 76 65 43 6f 6e 74 72 6f 6c 0d 0a 20 20 20 20 20 20 20 20 7b | Control.activeControl..........{ |
| 7f40 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b | ..............get..............{ |
| 7f60 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 74 61 74 65 20 3d 20 47 65 | ..................var.state.=.Ge |
| 7f80 | 74 4f 72 43 72 65 61 74 65 41 63 74 69 6f 6e 4d 61 70 28 29 2e 6d 5f 53 74 61 74 65 3b 0d 0a 20 | tOrCreateActionMap().m_State;... |
| 7fa0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 74 61 74 65 20 21 3d 20 6e 75 6c 6c | ...............if.(state.!=.null |
| 7fc0 | 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 | )..................{............ |
| 7fe0 | 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 63 74 69 6f 6e 53 74 61 74 65 50 74 72 20 3d 20 26 | ..........var.actionStatePtr.=.& |
| 8000 | 73 74 61 74 65 2e 61 63 74 69 6f 6e 53 74 61 74 65 73 5b 6d 5f 41 63 74 69 6f 6e 49 6e 64 65 78 | state.actionStates[m_ActionIndex |
| 8020 | 49 6e 53 74 61 74 65 5d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 | InState];......................v |
| 8040 | 61 72 20 63 6f 6e 74 72 6f 6c 49 6e 64 65 78 20 3d 20 61 63 74 69 6f 6e 53 74 61 74 65 50 74 72 | ar.controlIndex.=.actionStatePtr |
| 8060 | 2d 3e 63 6f 6e 74 72 6f 6c 49 6e 64 65 78 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ->controlIndex;................. |
| 8080 | 20 20 20 20 20 69 66 20 28 63 6f 6e 74 72 6f 6c 49 6e 64 65 78 20 21 3d 20 49 6e 70 75 74 41 63 | .....if.(controlIndex.!=.InputAc |
| 80a0 | 74 69 6f 6e 53 74 61 74 65 2e 6b 49 6e 76 61 6c 69 64 49 6e 64 65 78 29 0d 0a 20 20 20 20 20 20 | tionState.kInvalidIndex)........ |
| 80c0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 73 74 61 74 65 2e 63 | ..................return.state.c |
| 80e0 | 6f 6e 74 72 6f 6c 73 5b 63 6f 6e 74 72 6f 6c 49 6e 64 65 78 5d 3b 0d 0a 20 20 20 20 20 20 20 20 | ontrols[controlIndex];.......... |
| 8100 | 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 | ........}..................retur |
| 8120 | 6e 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 | n.null;..............}.......... |
| 8140 | 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 | }............///.<summary>...... |
| 8160 | 20 20 20 20 2f 2f 2f 20 57 68 65 74 68 65 72 20 74 68 65 20 61 63 74 69 6f 6e 20 77 61 6e 74 73 | ....///.Whether.the.action.wants |
| 8180 | 20 61 20 73 74 61 74 65 20 63 68 65 63 6b 20 6f 6e 20 69 74 73 20 62 6f 75 6e 64 20 63 6f 6e 74 | .a.state.check.on.its.bound.cont |
| 81a0 | 72 6f 6c 73 20 61 73 20 73 6f 6f 6e 20 61 73 20 69 74 20 69 73 20 65 6e 61 62 6c 65 64 2e 0d 0a | rols.as.soon.as.it.is.enabled... |
| 81c0 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 | ........///.</summary>.......... |
| 81e0 | 69 6e 74 65 72 6e 61 6c 20 62 6f 6f 6c 20 77 61 6e 74 73 49 6e 69 74 69 61 6c 53 74 61 74 65 43 | internal.bool.wantsInitialStateC |
| 8200 | 68 65 63 6b 20 3d 3e 20 74 79 70 65 20 3d 3d 20 49 6e 70 75 74 41 63 74 69 6f 6e 54 79 70 65 2e | heck.=>.type.==.InputActionType. |
| 8220 | 56 61 6c 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d | Value;............///.<summary>. |
| 8240 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 43 6f 6e 73 74 72 75 63 74 20 61 6e 20 75 6e 6e 61 6d 65 | .........///.Construct.an.unname |
| 8260 | 64 2c 20 66 72 65 65 2d 73 74 61 6e 64 69 6e 67 20 61 63 74 69 6f 6e 20 74 68 61 74 20 69 73 20 | d,.free-standing.action.that.is. |
| 8280 | 6e 6f 74 20 70 61 72 74 20 6f 66 20 61 6e 79 20 6d 61 70 20 6f 72 20 61 73 73 65 74 0d 0a 20 20 | not.part.of.any.map.or.asset.... |
| 82a0 | 20 20 20 20 20 20 2f 2f 2f 20 61 6e 64 20 68 61 73 20 6e 6f 20 62 69 6e 64 69 6e 67 73 2e 20 42 | ......///.and.has.no.bindings..B |
| 82c0 | 69 6e 64 69 6e 67 73 20 63 61 6e 20 62 65 20 61 64 64 65 64 20 77 69 74 68 20 3c 73 65 65 0d 0a | indings.can.be.added.with.<see.. |
| 82e0 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 53 65 74 | ........///.cref="InputActionSet |
| 8300 | 75 70 45 78 74 65 6e 73 69 6f 6e 73 2e 41 64 64 42 69 6e 64 69 6e 67 28 49 6e 70 75 74 41 63 74 | upExtensions.AddBinding(InputAct |
| 8320 | 69 6f 6e 2c 73 74 72 69 6e 67 2c 73 74 72 69 6e 67 2c 73 74 72 69 6e 67 2c 73 74 72 69 6e 67 29 | ion,string,string,string,string) |
| 8340 | 22 2f 3e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 61 63 74 69 6f 6e 20 74 79 70 | "/>...........///.The.action.typ |
| 8360 | 65 20 64 65 66 61 75 6c 74 73 20 74 6f 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 | e.defaults.to.<see.cref="InputAc |
| 8380 | 74 69 6f 6e 54 79 70 65 2e 56 61 6c 75 65 22 2f 3e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | tionType.Value"/>...........///. |
| 83a0 | 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 | </summary>..........///.<remarks |
| 83c0 | 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 61 63 74 69 6f 6e 20 77 69 6c 6c 20 6e | >..........///.The.action.will.n |
| 83e0 | 6f 74 20 68 61 76 65 20 61 6e 20 61 73 73 6f 63 69 61 74 65 64 20 3c 73 65 65 20 63 72 65 66 3d | ot.have.an.associated.<see.cref= |
| 8400 | 22 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 22 2f 3e 20 61 6e 64 20 3c 73 65 65 20 63 72 65 66 | "InputActionMap"/>.and.<see.cref |
| 8420 | 3d 22 61 63 74 69 6f 6e 4d 61 70 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 77 69 6c 6c | ="actionMap"/>..........///.will |
| 8440 | 20 74 68 75 73 20 62 65 20 3c 63 3e 6e 75 6c 6c 3c 2f 63 3e 2e 20 55 73 65 20 3c 73 65 65 20 63 | .thus.be.<c>null</c>..Use.<see.c |
| 8460 | 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 53 65 74 75 70 45 78 74 65 6e 73 69 6f 6e 73 2e | ref="InputActionSetupExtensions. |
| 8480 | 41 64 64 41 63 74 69 6f 6e 22 2f 3e 20 69 6e 73 74 65 61 64 20 69 66 0d 0a 20 20 20 20 20 20 20 | AddAction"/>.instead.if......... |
| 84a0 | 20 2f 2f 2f 20 79 6f 75 20 77 61 6e 74 20 74 6f 20 61 64 64 20 61 20 6e 65 77 20 61 63 74 69 6f | .///.you.want.to.add.a.new.actio |
| 84c0 | 6e 20 74 6f 20 61 6e 20 61 63 74 69 6f 6e 20 6d 61 70 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | n.to.an.action.map.........../// |
| 84e0 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 61 63 74 69 6f 6e 20 77 69 6c 6c 20 72 65 | ..........///.The.action.will.re |
| 8500 | 6d 61 69 6e 20 64 69 73 61 62 6c 65 64 20 61 66 74 65 72 20 63 6f 6e 73 74 72 75 63 74 69 6f 6e | main.disabled.after.construction |
| 8520 | 20 61 6e 64 20 74 68 75 73 20 6e 6f 74 20 6c 69 73 74 65 6e 2f 72 65 61 63 74 20 74 6f 20 69 6e | .and.thus.not.listen/react.to.in |
| 8540 | 70 75 74 20 79 65 74 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 55 73 65 20 3c 73 65 65 20 63 | put.yet...........///.Use.<see.c |
| 8560 | 72 65 66 3d 22 45 6e 61 62 6c 65 22 2f 3e 20 74 6f 20 65 6e 61 62 6c 65 20 74 68 65 20 61 63 74 | ref="Enable"/>.to.enable.the.act |
| 8580 | 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c | ion...........///..........///.< |
| 85a0 | 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 63 6f 64 65 3e 0d 0a 20 20 | example>..........///.<code>.... |
| 85c0 | 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 43 72 65 61 74 65 20 61 6e 20 61 63 74 69 6f 6e 20 77 69 | ......///.//.Create.an.action.wi |
| 85e0 | 74 68 20 74 77 6f 20 62 69 6e 64 69 6e 67 73 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 76 61 | th.two.bindings...........///.va |
| 8600 | 72 20 61 63 74 69 6f 6e 20 3d 20 6e 65 77 20 49 6e 70 75 74 41 63 74 69 6f 6e 28 29 3b 0d 0a 20 | r.action.=.new.InputAction();... |
| 8620 | 20 20 20 20 20 20 20 2f 2f 2f 20 61 63 74 69 6f 6e 2e 41 64 64 42 69 6e 64 69 6e 67 28 22 26 6c | .......///.action.AddBinding("&l |
| 8640 | 74 3b 47 61 6d 65 70 61 64 26 67 74 3b 2f 6c 65 66 74 53 74 69 63 6b 22 29 3b 0d 0a 20 20 20 20 | t;Gamepad>/leftStick");...... |
| 8660 | 20 20 20 20 2f 2f 2f 20 61 63 74 69 6f 6e 2e 41 64 64 42 69 6e 64 69 6e 67 28 22 26 6c 74 3b 4d | ....///.action.AddBinding("<M |
| 8680 | 6f 75 73 65 26 67 74 3b 2f 64 65 6c 74 61 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a | ouse>/delta");..........///.. |
| 86a0 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 63 74 69 6f 6e 2e 70 65 72 66 6f 72 6d 65 64 20 2b 3d 20 | ........///.action.performed.+=. |
| 86c0 | 63 74 78 20 3d 3e 20 44 65 62 75 67 2e 4c 6f 67 28 22 56 61 6c 75 65 3a 20 22 20 2b 20 63 74 78 | ctx.=>.Debug.Log("Value:.".+.ctx |
| 86e0 | 2e 52 65 61 64 56 61 6c 75 65 26 6c 74 3b 56 65 63 74 6f 72 32 26 67 74 3b 28 29 29 3b 0d 0a 20 | .ReadValue<Vector2>());... |
| 8700 | 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 63 74 69 6f 6e 2e 45 | .......///..........///.action.E |
| 8720 | 6e 61 62 6c 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 63 6f 64 65 3e 0d 0a 20 | nable();..........///.</code>... |
| 8740 | 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f | .......///.</example>........../ |
| 8760 | 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 6e | //.</remarks>..........public.In |
| 8780 | 70 75 74 41 63 74 69 6f 6e 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 | putAction()..........{.......... |
| 87a0 | 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 | }............///.<summary>...... |
| 87c0 | 20 20 20 20 2f 2f 2f 20 43 6f 6e 73 74 72 75 63 74 20 61 20 66 72 65 65 2d 73 74 61 6e 64 69 6e | ....///.Construct.a.free-standin |
| 87e0 | 67 20 61 63 74 69 6f 6e 20 74 68 61 74 20 69 73 20 6e 6f 74 20 70 61 72 74 20 6f 66 20 61 6e 20 | g.action.that.is.not.part.of.an. |
| 8800 | 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 22 2f 3e 2e 0d 0a 20 | <see.cref="InputActionMap"/>.... |
| 8820 | 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f | .......///.</summary>........../ |
| 8840 | 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 6e 61 6d 65 22 3e 4e 61 6d 65 20 6f 66 20 74 68 | //.<param.name="name">Name.of.th |
| 8860 | 65 20 61 63 74 69 6f 6e 2e 20 49 66 20 6e 75 6c 6c 20 6f 72 20 65 6d 70 74 79 2c 20 74 68 65 20 | e.action..If.null.or.empty,.the. |
| 8880 | 61 63 74 69 6f 6e 20 77 69 6c 6c 20 62 65 20 75 6e 6e 61 6d 65 64 2e 3c 2f 70 61 72 61 6d 3e 0d | action.will.be.unnamed.</param>. |
| 88a0 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 74 79 70 65 22 3e | .........///.<param.name="type"> |
| 88c0 | 54 79 70 65 20 6f 66 20 61 63 74 69 6f 6e 20 74 6f 20 63 72 65 61 74 65 2e 20 44 65 66 61 75 6c | Type.of.action.to.create..Defaul |
| 88e0 | 74 73 20 74 6f 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 54 79 70 65 | ts.to.<see.cref="InputActionType |
| 8900 | 2e 56 61 6c 75 65 22 2f 3e 2c 20 69 2e 65 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 6e 20 | .Value"/>,.i.e...........///.an. |
| 8920 | 61 63 74 69 6f 6e 20 74 68 61 74 20 70 72 6f 76 69 64 65 73 20 63 6f 6e 74 69 6e 75 6f 75 73 20 | action.that.provides.continuous. |
| 8940 | 76 61 6c 75 65 73 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 | values.</param>..........///.<pa |
| 8960 | 72 61 6d 20 6e 61 6d 65 3d 22 62 69 6e 64 69 6e 67 22 3e 49 66 20 6e 6f 74 20 6e 75 6c 6c 20 6f | ram.name="binding">If.not.null.o |
| 8980 | 72 20 65 6d 70 74 79 2c 20 61 20 62 69 6e 64 69 6e 67 20 77 69 74 68 20 74 68 65 20 67 69 76 65 | r.empty,.a.binding.with.the.give |
| 89a0 | 6e 20 70 61 74 68 20 77 69 6c 6c 20 62 65 20 61 64 64 65 64 20 74 6f 20 74 68 65 20 61 63 74 69 | n.path.will.be.added.to.the.acti |
| 89c0 | 6f 6e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 72 69 67 68 74 20 61 77 61 79 2e 20 54 68 65 20 | on..........///.right.away..The. |
| 89e0 | 66 6f 72 6d 61 74 20 6f 66 20 74 68 65 20 73 74 72 69 6e 67 20 69 73 20 74 68 65 20 61 73 20 66 | format.of.the.string.is.the.as.f |
| 8a00 | 6f 72 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 42 69 6e 64 69 6e 67 2e 70 61 74 68 22 | or.<see.cref="InputBinding.path" |
| 8a20 | 2f 3e 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 | />.</param>..........///.<param. |
| 8a40 | 6e 61 6d 65 3d 22 69 6e 74 65 72 61 63 74 69 6f 6e 73 22 3e 49 66 20 3c 70 61 72 61 6d 72 65 66 | name="interactions">If.<paramref |
| 8a60 | 20 6e 61 6d 65 3d 22 62 69 6e 64 69 6e 67 22 2f 3e 20 69 73 20 6e 6f 74 20 6e 75 6c 6c 20 6f 72 | .name="binding"/>.is.not.null.or |
| 8a80 | 20 65 6d 70 74 79 2c 20 74 68 69 73 20 70 61 72 61 6d 65 74 65 72 20 72 65 70 72 65 73 65 6e 74 | .empty,.this.parameter.represent |
| 8aa0 | 73 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 68 65 20 69 6e 74 65 72 61 63 74 69 6f 6e 20 74 | s..........///.the.interaction.t |
| 8ac0 | 6f 20 61 70 70 6c 79 20 74 6f 20 74 68 65 20 6e 65 77 6c 79 20 63 72 65 61 74 65 64 20 62 69 6e | o.apply.to.the.newly.created.bin |
| 8ae0 | 64 69 6e 67 20 28 69 2e 65 2e 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 42 69 6e 64 69 | ding.(i.e..<see.cref="InputBindi |
| 8b00 | 6e 67 2e 69 6e 74 65 72 61 63 74 69 6f 6e 73 22 2f 3e 29 2e 20 49 66 0d 0a 20 20 20 20 20 20 20 | ng.interactions"/>)..If......... |
| 8b20 | 20 2f 2f 2f 20 3c 70 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d 22 62 69 6e 64 69 6e 67 22 2f 3e 20 | .///.<paramref.name="binding"/>. |
| 8b40 | 69 73 20 6e 6f 74 20 73 75 70 70 6c 69 65 64 2c 20 74 68 69 73 20 70 61 72 61 6d 65 74 65 72 20 | is.not.supplied,.this.parameter. |
| 8b60 | 72 65 70 72 65 73 65 6e 74 73 20 74 68 65 20 69 6e 74 65 72 61 63 74 69 6f 6e 73 20 74 6f 20 61 | represents.the.interactions.to.a |
| 8b80 | 70 70 6c 79 20 74 6f 20 74 68 65 20 61 63 74 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | pply.to.the.action..........///. |
| 8ba0 | 28 69 2e 65 2e 20 74 68 65 20 76 61 6c 75 65 20 6f 66 20 3c 73 65 65 20 63 72 65 66 3d 22 69 6e | (i.e..the.value.of.<see.cref="in |
| 8bc0 | 74 65 72 61 63 74 69 6f 6e 73 22 2f 3e 29 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 | teractions"/>).</param>......... |
| 8be0 | 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 70 72 6f 63 65 73 73 6f 72 73 22 3e 49 66 | .///.<param.name="processors">If |
| 8c00 | 20 3c 70 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d 22 62 69 6e 64 69 6e 67 22 2f 3e 20 69 73 20 6e | .<paramref.name="binding"/>.is.n |
| 8c20 | 6f 74 20 6e 75 6c 6c 20 6f 72 20 65 6d 70 74 79 2c 20 74 68 69 73 20 70 61 72 61 6d 65 74 65 72 | ot.null.or.empty,.this.parameter |
| 8c40 | 20 72 65 70 72 65 73 65 6e 74 73 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 68 65 20 70 72 6f | .represents..........///.the.pro |
| 8c60 | 63 65 73 73 6f 72 73 20 74 6f 20 61 70 70 6c 79 20 74 6f 20 74 68 65 20 6e 65 77 6c 79 20 63 72 | cessors.to.apply.to.the.newly.cr |
| 8c80 | 65 61 74 65 64 20 62 69 6e 64 69 6e 67 20 28 69 2e 65 2e 20 3c 73 65 65 20 63 72 65 66 3d 22 49 | eated.binding.(i.e..<see.cref="I |
| 8ca0 | 6e 70 75 74 42 69 6e 64 69 6e 67 2e 70 72 6f 63 65 73 73 6f 72 73 22 2f 3e 29 2e 20 49 66 0d 0a | nputBinding.processors"/>)..If.. |
| 8cc0 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d 22 62 69 6e 64 | ........///.<paramref.name="bind |
| 8ce0 | 69 6e 67 22 2f 3e 20 69 73 20 6e 6f 74 20 73 75 70 70 6c 69 65 64 2c 20 74 68 69 73 20 70 61 72 | ing"/>.is.not.supplied,.this.par |
| 8d00 | 61 6d 65 74 65 72 20 72 65 70 72 65 73 65 6e 74 73 20 74 68 65 20 70 72 6f 63 65 73 73 6f 72 73 | ameter.represents.the.processors |
| 8d20 | 20 74 6f 20 61 70 70 6c 79 20 74 6f 20 74 68 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 63 | .to.apply.to.the..........///.ac |
| 8d40 | 74 69 6f 6e 20 28 69 2e 65 2e 20 74 68 65 20 76 61 6c 75 65 20 6f 66 20 3c 73 65 65 20 63 72 65 | tion.(i.e..the.value.of.<see.cre |
| 8d60 | 66 3d 22 70 72 6f 63 65 73 73 6f 72 73 22 2f 3e 29 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 | f="processors"/>).</param>...... |
| 8d80 | 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 65 78 70 65 63 74 65 64 43 6f 6e | ....///.<param.name="expectedCon |
| 8da0 | 74 72 6f 6c 54 79 70 65 22 3e 54 68 65 20 6f 70 74 69 6f 6e 61 6c 20 65 78 70 65 63 74 65 64 20 | trolType">The.optional.expected. |
| 8dc0 | 63 6f 6e 74 72 6f 6c 20 74 79 70 65 20 66 6f 72 20 74 68 65 20 61 63 74 69 6f 6e 20 28 69 2e 65 | control.type.for.the.action.(i.e |
| 8de0 | 2e 20 3c 73 65 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 63 72 65 66 3d 22 65 78 70 65 63 74 | ..<see..........///.cref="expect |
| 8e00 | 65 64 43 6f 6e 74 72 6f 6c 54 79 70 65 22 2f 3e 29 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 | edControlType"/>).</param>...... |
| 8e20 | 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 | ....///.<remarks>..........///.T |
| 8e40 | 68 65 20 61 63 74 69 6f 6e 20 77 69 6c 6c 20 6e 6f 74 20 68 61 76 65 20 61 6e 20 61 73 73 6f 63 | he.action.will.not.have.an.assoc |
| 8e60 | 69 61 74 65 64 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 22 | iated.<see.cref="InputActionMap" |
| 8e80 | 2f 3e 20 61 6e 64 20 3c 73 65 65 20 63 72 65 66 3d 22 61 63 74 69 6f 6e 4d 61 70 22 2f 3e 0d 0a | />.and.<see.cref="actionMap"/>.. |
| 8ea0 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 77 69 6c 6c 20 74 68 75 73 20 62 65 20 3c 63 3e 6e 75 6c 6c | ........///.will.thus.be.<c>null |
| 8ec0 | 3c 2f 63 3e 2e 20 55 73 65 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e | </c>..Use.<see.cref="InputAction |
| 8ee0 | 53 65 74 75 70 45 78 74 65 6e 73 69 6f 6e 73 2e 41 64 64 41 63 74 69 6f 6e 22 2f 3e 20 69 6e 73 | SetupExtensions.AddAction"/>.ins |
| 8f00 | 74 65 61 64 20 69 66 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 79 6f 75 20 77 61 6e 74 20 74 6f | tead.if..........///.you.want.to |
| 8f20 | 20 61 64 64 20 61 20 6e 65 77 20 61 63 74 69 6f 6e 20 74 6f 20 61 6e 20 61 63 74 69 6f 6e 20 6d | .add.a.new.action.to.an.action.m |
| 8f40 | 61 70 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 | ap...........///..........///.Th |
| 8f60 | 65 20 61 63 74 69 6f 6e 20 77 69 6c 6c 20 72 65 6d 61 69 6e 20 64 69 73 61 62 6c 65 64 20 61 66 | e.action.will.remain.disabled.af |
| 8f80 | 74 65 72 20 63 6f 6e 73 74 72 75 63 74 69 6f 6e 20 61 6e 64 20 74 68 75 73 20 6e 6f 74 20 6c 69 | ter.construction.and.thus.not.li |
| 8fa0 | 73 74 65 6e 2f 72 65 61 63 74 20 74 6f 20 69 6e 70 75 74 20 79 65 74 2e 0d 0a 20 20 20 20 20 20 | sten/react.to.input.yet......... |
| 8fc0 | 20 20 2f 2f 2f 20 55 73 65 20 3c 73 65 65 20 63 72 65 66 3d 22 45 6e 61 62 6c 65 22 2f 3e 20 74 | ..///.Use.<see.cref="Enable"/>.t |
| 8fe0 | 6f 20 65 6e 61 62 6c 65 20 74 68 65 20 61 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f | o.enable.the.action...........// |
| 9000 | 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 41 64 64 69 74 69 6f 6e 61 6c 20 62 69 6e 64 69 6e | /..........///.Additional.bindin |
| 9020 | 67 73 20 63 61 6e 20 62 65 20 61 64 64 65 64 20 77 69 74 68 20 3c 73 65 65 0d 0a 20 20 20 20 20 | gs.can.be.added.with.<see....... |
| 9040 | 20 20 20 2f 2f 2f 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 53 65 74 75 70 45 78 74 | ...///.cref="InputActionSetupExt |
| 9060 | 65 6e 73 69 6f 6e 73 2e 41 64 64 42 69 6e 64 69 6e 67 28 49 6e 70 75 74 41 63 74 69 6f 6e 2c 73 | ensions.AddBinding(InputAction,s |
| 9080 | 74 72 69 6e 67 2c 73 74 72 69 6e 67 2c 73 74 72 69 6e 67 2c 73 74 72 69 6e 67 29 22 2f 3e 2e 0d | tring,string,string,string)"/>.. |
| 90a0 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 65 78 61 6d 70 | .........///..........///.<examp |
| 90c0 | 6c 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 63 6f 64 65 3e 0d 0a 20 20 20 20 20 20 20 | le>..........///.<code>......... |
| 90e0 | 20 2f 2f 2f 20 2f 2f 20 43 72 65 61 74 65 20 61 20 62 75 74 74 6f 6e 20 61 63 74 69 6f 6e 20 72 | .///.//.Create.a.button.action.r |
| 9100 | 65 73 70 6f 6e 64 69 6e 67 20 74 6f 20 74 68 65 20 67 61 6d 65 70 61 64 20 41 20 62 75 74 74 6f | esponding.to.the.gamepad.A.butto |
| 9120 | 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 76 61 72 20 61 63 74 69 6f 6e 20 3d 20 6e 65 77 | n...........///.var.action.=.new |
| 9140 | 20 49 6e 70 75 74 41 63 74 69 6f 6e 28 74 79 70 65 3a 20 49 6e 70 75 74 41 63 74 69 6f 6e 54 79 | .InputAction(type:.InputActionTy |
| 9160 | 70 65 2e 42 75 74 74 6f 6e 2c 20 62 69 6e 64 69 6e 67 3a 20 22 26 6c 74 3b 47 61 6d 65 70 61 64 | pe.Button,.binding:."<Gamepad |
| 9180 | 26 67 74 3b 2f 62 75 74 74 6f 6e 53 6f 75 74 68 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | >/buttonSouth");........../// |
| 91a0 | 20 61 63 74 69 6f 6e 2e 70 65 72 66 6f 72 6d 65 64 20 2b 3d 20 63 74 78 20 3d 3e 20 44 65 62 75 | .action.performed.+=.ctx.=>.Debu |
| 91c0 | 67 2e 4c 6f 67 28 22 50 72 65 73 73 65 64 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 | g.Log("Pressed");..........///.a |
| 91e0 | 63 74 69 6f 6e 2e 45 6e 61 62 6c 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 63 | ction.Enable();..........///.</c |
| 9200 | 6f 64 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 | ode>..........///.</example>.... |
| 9220 | 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 | ......///.</remarks>..........pu |
| 9240 | 62 6c 69 63 20 49 6e 70 75 74 41 63 74 69 6f 6e 28 73 74 72 69 6e 67 20 6e 61 6d 65 20 3d 20 6e | blic.InputAction(string.name.=.n |
| 9260 | 75 6c 6c 2c 20 49 6e 70 75 74 41 63 74 69 6f 6e 54 79 70 65 20 74 79 70 65 20 3d 20 64 65 66 61 | ull,.InputActionType.type.=.defa |
| 9280 | 75 6c 74 2c 20 73 74 72 69 6e 67 20 62 69 6e 64 69 6e 67 20 3d 20 6e 75 6c 6c 2c 0d 0a 20 20 20 | ult,.string.binding.=.null,..... |
| 92a0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 69 6e 67 20 69 | ........................string.i |
| 92c0 | 6e 74 65 72 61 63 74 69 6f 6e 73 20 3d 20 6e 75 6c 6c 2c 20 73 74 72 69 6e 67 20 70 72 6f 63 65 | nteractions.=.null,.string.proce |
| 92e0 | 73 73 6f 72 73 20 3d 20 6e 75 6c 6c 2c 20 73 74 72 69 6e 67 20 65 78 70 65 63 74 65 64 43 6f 6e | ssors.=.null,.string.expectedCon |
| 9300 | 74 72 6f 6c 54 79 70 65 20 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 | trolType.=.null)..........{..... |
| 9320 | 20 20 20 20 20 20 20 20 20 6d 5f 4e 61 6d 65 20 3d 20 6e 61 6d 65 3b 0d 0a 20 20 20 20 20 20 20 | .........m_Name.=.name;......... |
| 9340 | 20 20 20 20 20 6d 5f 54 79 70 65 20 3d 20 74 79 70 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 | .....m_Type.=.type;............. |
| 9360 | 20 20 20 69 66 20 28 21 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 62 69 6e | ...if.(!string.IsNullOrEmpty(bin |
| 9380 | 64 69 6e 67 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 | ding))..............{........... |
| 93a0 | 20 20 20 20 20 20 20 6d 5f 53 69 6e 67 6c 65 74 6f 6e 41 63 74 69 6f 6e 42 69 6e 64 69 6e 67 73 | .......m_SingletonActionBindings |
| 93c0 | 20 3d 20 6e 65 77 5b 5d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 | .=.new[]..................{..... |
| 93e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6e 65 77 20 49 6e 70 75 74 42 69 6e 64 69 6e | .................new.InputBindin |
| 9400 | 67 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 | g......................{........ |
| 9420 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 61 74 68 20 3d 20 62 69 6e 64 69 6e 67 | ..................path.=.binding |
| 9440 | 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 65 72 | ,..........................inter |
| 9460 | 61 63 74 69 6f 6e 73 20 3d 20 69 6e 74 65 72 61 63 74 69 6f 6e 73 2c 0d 0a 20 20 20 20 20 20 20 | actions.=.interactions,......... |
| 9480 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 63 65 73 73 6f 72 73 20 3d 20 70 72 | .................processors.=.pr |
| 94a0 | 6f 63 65 73 73 6f 72 73 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ocessors,....................... |
| 94c0 | 20 20 20 61 63 74 69 6f 6e 20 3d 20 6d 5f 4e 61 6d 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | ...action.=.m_Name.............. |
| 94e0 | 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 3b 0d 0a 20 | ........}..................};... |
| 9500 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 42 69 6e 64 69 6e 67 73 53 74 61 72 74 49 6e | ...............m_BindingsStartIn |
| 9520 | 64 65 78 20 3d 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 42 69 6e 64 | dex.=.0;..................m_Bind |
| 9540 | 69 6e 67 73 43 6f 75 6e 74 20 3d 20 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 | ingsCount.=.1;..............}... |
| 9560 | 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a | ...........else..............{.. |
| 9580 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 49 6e 74 65 72 61 63 74 69 6f 6e 73 20 3d | ................m_Interactions.= |
| 95a0 | 20 69 6e 74 65 72 61 63 74 69 6f 6e 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .interactions;.................. |
| 95c0 | 6d 5f 50 72 6f 63 65 73 73 6f 72 73 20 3d 20 70 72 6f 63 65 73 73 6f 72 73 3b 0d 0a 20 20 20 20 | m_Processors.=.processors;...... |
| 95e0 | 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 45 78 70 65 63 | ........}................m_Expec |
| 9600 | 74 65 64 43 6f 6e 74 72 6f 6c 54 79 70 65 20 3d 20 65 78 70 65 63 74 65 64 43 6f 6e 74 72 6f 6c | tedControlType.=.expectedControl |
| 9620 | 54 79 70 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | Type;..........}............///. |
| 9640 | 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 52 65 6c 65 61 73 65 20 69 | <summary>..........///.Release.i |
| 9660 | 6e 74 65 72 6e 61 6c 20 73 74 61 74 65 20 68 65 6c 64 20 6f 6e 20 74 6f 20 62 79 20 74 68 65 20 | nternal.state.held.on.to.by.the. |
| 9680 | 61 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d | action...........///.</summary>. |
| 96a0 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 | .........///.<remarks>.......... |
| 96c0 | 2f 2f 2f 20 4f 6e 63 65 20 65 6e 61 62 6c 65 64 2c 20 61 63 74 69 6f 6e 73 20 77 69 6c 6c 20 61 | ///.Once.enabled,.actions.will.a |
| 96e0 | 6c 6c 6f 63 61 74 65 20 61 20 62 6c 6f 63 6b 20 6f 66 20 73 74 61 74 65 20 69 6e 74 65 72 6e 61 | llocate.a.block.of.state.interna |
| 9700 | 6c 6c 79 20 74 68 61 74 20 74 68 65 79 20 77 69 6c 6c 20 68 6f 6c 64 20 6f 6e 20 74 6f 0d 0a 20 | lly.that.they.will.hold.on.to... |
| 9720 | 20 20 20 20 20 20 20 2f 2f 2f 20 75 6e 74 69 6c 20 64 69 73 70 6f 73 65 64 20 6f 66 2e 20 46 6f | .......///.until.disposed.of..Fo |
| 9740 | 72 20 66 72 65 65 2d 73 74 61 6e 64 69 6e 67 20 61 63 74 69 6f 6e 73 2c 20 74 68 61 74 20 73 74 | r.free-standing.actions,.that.st |
| 9760 | 61 74 65 20 69 73 20 70 72 69 76 61 74 65 20 74 6f 20 6a 75 73 74 20 74 68 65 20 61 63 74 69 6f | ate.is.private.to.just.the.actio |
| 9780 | 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 46 6f 72 20 61 63 74 69 6f 6e 73 20 74 68 61 74 | n...........///.For.actions.that |
| 97a0 | 20 61 72 65 20 70 61 72 74 20 6f 66 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 | .are.part.of.<see.cref="InputAct |
| 97c0 | 69 6f 6e 4d 61 70 22 2f 3e 73 2c 20 74 68 65 20 73 74 61 74 65 20 69 73 20 73 68 61 72 65 64 20 | ionMap"/>s,.the.state.is.shared. |
| 97e0 | 62 79 20 61 6c 6c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 63 74 69 6f 6e 73 20 69 6e 20 74 | by.all..........///.actions.in.t |
| 9800 | 68 65 20 6d 61 70 20 61 6e 64 2c 20 69 66 20 74 68 65 20 6d 61 70 20 69 74 73 65 6c 66 20 69 73 | he.map.and,.if.the.map.itself.is |
| 9820 | 20 70 61 72 74 20 6f 66 20 61 6e 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 | .part.of.an.<see.cref="InputActi |
| 9840 | 6f 6e 41 73 73 65 74 22 2f 3e 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 6c 73 6f 20 62 79 | onAsset"/>,..........///.also.by |
| 9860 | 20 61 6c 6c 20 74 68 65 20 6d 61 70 73 20 74 68 61 74 20 61 72 65 20 70 61 72 74 20 6f 66 20 74 | .all.the.maps.that.are.part.of.t |
| 9880 | 68 65 20 61 73 73 65 74 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 | he.asset...........///.......... |
| 98a0 | 2f 2f 2f 20 4e 6f 74 65 20 74 68 61 74 20 74 68 65 20 69 6e 74 65 72 6e 61 6c 20 73 74 61 74 65 | ///.Note.that.the.internal.state |
| 98c0 | 20 68 6f 6c 64 73 20 6f 6e 20 74 6f 20 47 43 20 68 65 61 70 20 6d 65 6d 6f 72 79 20 61 73 20 77 | .holds.on.to.GC.heap.memory.as.w |
| 98e0 | 65 6c 6c 20 61 73 20 6d 65 6d 6f 72 79 20 66 72 6f 6d 20 74 68 65 0d 0a 20 20 20 20 20 20 20 20 | ell.as.memory.from.the.......... |
| 9900 | 2f 2f 2f 20 75 6e 6d 61 6e 61 67 65 64 2c 20 43 2b 2b 20 68 65 61 70 2e 0d 0a 20 20 20 20 20 20 | ///.unmanaged,.C++.heap......... |
| 9920 | 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 | ..///.</remarks>..........public |
| 9940 | 20 76 6f 69 64 20 44 69 73 70 6f 73 65 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 | .void.Dispose()..........{...... |
| 9960 | 20 20 20 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 3f 2e 6d 5f 53 74 61 74 65 3f 2e 44 69 | ........m_ActionMap?.m_State?.Di |
| 9980 | 73 70 6f 73 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f | spose();..........}............/ |
| 99a0 | 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 52 65 74 75 72 6e | //.<summary>..........///.Return |
| 99c0 | 20 61 20 73 74 72 69 6e 67 20 76 65 72 73 69 6f 6e 20 6f 66 20 74 68 65 20 61 63 74 69 6f 6e 2e | .a.string.version.of.the.action. |
| 99e0 | 20 4d 61 69 6e 6c 79 20 75 73 65 66 75 6c 20 66 6f 72 20 64 65 62 75 67 67 69 6e 67 2e 0d 0a 20 | .Mainly.useful.for.debugging.... |
| 9a00 | 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f | .......///.</summary>........../ |
| 9a20 | 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 41 20 73 74 72 69 6e 67 20 76 65 72 73 69 6f 6e 20 6f 66 20 | //.<returns>A.string.version.of. |
| 9a40 | 74 68 65 20 61 63 74 69 6f 6e 2e 3c 2f 72 65 74 75 72 6e 73 3e 0d 0a 20 20 20 20 20 20 20 20 70 | the.action.</returns>..........p |
| 9a60 | 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 73 74 72 69 6e 67 20 54 6f 53 74 72 69 6e 67 28 29 | ublic.override.string.ToString() |
| 9a80 | 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 69 6e 67 20 | ..........{..............string. |
| 9aa0 | 73 74 72 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 4e 61 6d 65 20 3d 3d 20 | str;..............if.(m_Name.==. |
| 9ac0 | 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 20 3d 20 22 3c 55 | null)..................str.=."<U |
| 9ae0 | 6e 6e 61 6d 65 64 3e 22 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 20 69 66 20 28 | nnamed>";..............else.if.( |
| 9b00 | 6d 5f 41 63 74 69 6f 6e 4d 61 70 20 21 3d 20 6e 75 6c 6c 20 26 26 20 21 69 73 53 69 6e 67 6c 65 | m_ActionMap.!=.null.&&.!isSingle |
| 9b20 | 74 6f 6e 41 63 74 69 6f 6e 20 26 26 20 21 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 | tonAction.&&.!string.IsNullOrEmp |
| 9b40 | 74 79 28 6d 5f 41 63 74 69 6f 6e 4d 61 70 2e 6e 61 6d 65 29 29 0d 0a 20 20 20 20 20 20 20 20 20 | ty(m_ActionMap.name))........... |
| 9b60 | 20 20 20 20 20 20 20 73 74 72 20 3d 20 24 22 7b 6d 5f 41 63 74 69 6f 6e 4d 61 70 2e 6e 61 6d 65 | .......str.=.$"{m_ActionMap.name |
| 9b80 | 7d 2f 7b 6d 5f 4e 61 6d 65 7d 22 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0d 0a | }/{m_Name}";..............else.. |
| 9ba0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 20 3d 20 6d 5f 4e 61 6d 65 3b 0d 0a 0d | ................str.=.m_Name;... |
| 9bc0 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 6f 6e 74 72 6f 6c 73 20 3d 20 74 68 69 73 | .............var.controls.=.this |
| 9be0 | 2e 63 6f 6e 74 72 6f 6c 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 6f 6e 74 | .controls;..............if.(cont |
| 9c00 | 72 6f 6c 73 2e 43 6f 75 6e 74 20 3e 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a | rols.Count.>.0)..............{.. |
| 9c20 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 20 2b 3d 20 22 5b 22 3b 0d 0a 20 20 20 | ................str.+=."[";..... |
| 9c40 | 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 69 73 46 69 72 73 74 20 3d 20 74 72 75 65 3b | .............var.isFirst.=.true; |
| 9c60 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 65 61 63 68 20 28 76 61 72 20 63 | ..................foreach.(var.c |
| 9c80 | 6f 6e 74 72 6f 6c 20 69 6e 20 63 6f 6e 74 72 6f 6c 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | ontrol.in.controls)............. |
| 9ca0 | 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 | .....{......................if.( |
| 9cc0 | 21 69 73 46 69 72 73 74 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | !isFirst)....................... |
| 9ce0 | 20 20 20 73 74 72 20 2b 3d 20 22 2c 22 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ...str.+=.",";.................. |
| 9d00 | 20 20 20 20 73 74 72 20 2b 3d 20 63 6f 6e 74 72 6f 6c 2e 70 61 74 68 3b 0d 0a 20 20 20 20 20 20 | ....str.+=.control.path;........ |
| 9d20 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 73 46 69 72 73 74 20 3d 20 66 61 6c 73 65 3b 0d 0a | ..............isFirst.=.false;.. |
| 9d40 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | ................}............... |
| 9d60 | 20 20 20 73 74 72 20 2b 3d 20 22 5d 22 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d | ...str.+=."]";..............}... |
| 9d80 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 73 74 72 3b 0d 0a 20 20 20 20 20 20 | .............return.str;........ |
| 9da0 | 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 | ..}............///.<summary>.... |
| 9dc0 | 20 20 20 20 20 20 2f 2f 2f 20 45 6e 61 62 6c 65 20 74 68 65 20 61 63 74 69 6f 6e 20 73 75 63 68 | ......///.Enable.the.action.such |
| 9de0 | 20 74 68 61 74 20 69 74 20 61 63 74 69 76 65 6c 79 20 6c 69 73 74 65 6e 73 20 66 6f 72 20 69 6e | .that.it.actively.listens.for.in |
| 9e00 | 70 75 74 20 61 6e 64 20 72 75 6e 73 20 63 61 6c 6c 62 61 63 6b 73 0d 0a 20 20 20 20 20 20 20 20 | put.and.runs.callbacks.......... |
| 9e20 | 2f 2f 2f 20 69 6e 20 72 65 73 70 6f 6e 73 65 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f | ///.in.response...........///.</ |
| 9e40 | 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d | summary>..........///.<remarks>. |
| 9e60 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 66 20 74 68 65 20 61 63 74 69 6f 6e 20 69 73 20 61 6c | .........///.If.the.action.is.al |
| 9e80 | 72 65 61 64 79 20 65 6e 61 62 6c 65 64 2c 20 74 68 69 73 20 6d 65 74 68 6f 64 20 64 6f 65 73 20 | ready.enabled,.this.method.does. |
| 9ea0 | 6e 6f 74 68 69 6e 67 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f | nothing...........///........../ |
| 9ec0 | 2f 2f 20 42 79 20 64 65 66 61 75 6c 74 2c 20 61 63 74 69 6f 6e 73 20 73 74 61 72 74 20 6f 75 74 | //.By.default,.actions.start.out |
| 9ee0 | 20 64 69 73 61 62 6c 65 64 2c 20 69 2e 65 2e 20 77 69 74 68 20 3c 73 65 65 20 63 72 65 66 3d 22 | .disabled,.i.e..with.<see.cref=" |
| 9f00 | 65 6e 61 62 6c 65 64 22 2f 3e 20 62 65 69 6e 67 20 66 61 6c 73 65 2e 0d 0a 20 20 20 20 20 20 20 | enabled"/>.being.false.......... |
| 9f20 | 20 2f 2f 2f 20 57 68 65 6e 20 65 6e 61 62 6c 65 64 2c 20 74 77 6f 20 74 68 69 6e 67 73 20 68 61 | .///.When.enabled,.two.things.ha |
| 9f40 | 70 70 65 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | ppen...........///..........///. |
| 9f60 | 46 69 72 73 74 2c 20 69 66 20 69 74 20 68 61 73 6e 27 74 20 61 6c 72 65 61 64 79 20 68 61 70 70 | First,.if.it.hasn't.already.happ |
| 9f80 | 65 6e 65 64 2c 20 61 6e 20 61 63 74 69 6f 6e 20 77 69 6c 6c 20 72 65 73 6f 6c 76 65 20 61 6c 6c | ened,.an.action.will.resolve.all |
| 9fa0 | 20 6f 66 20 69 74 73 20 62 69 6e 64 69 6e 67 73 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 6f | .of.its.bindings..........///.to |
| 9fc0 | 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 22 2f 3e 73 2e 20 54 68 | .<see.cref="InputControl"/>s..Th |
| 9fe0 | 69 73 20 61 6c 73 6f 20 68 61 70 70 65 6e 73 20 69 66 2c 20 73 69 6e 63 65 20 74 68 65 20 61 63 | is.also.happens.if,.since.the.ac |
| a000 | 74 69 6f 6e 20 77 61 73 20 6c 61 73 74 20 65 6e 61 62 6c 65 64 2c 0d 0a 20 20 20 20 20 20 20 20 | tion.was.last.enabled,.......... |
| a020 | 2f 2f 2f 20 74 68 65 20 73 65 74 75 70 20 6f 66 20 64 65 76 69 63 65 73 20 69 6e 20 74 68 65 20 | ///.the.setup.of.devices.in.the. |
| a040 | 73 79 73 74 65 6d 20 68 61 73 20 63 68 61 6e 67 65 64 20 73 75 63 68 20 74 68 61 74 20 69 74 20 | system.has.changed.such.that.it. |
| a060 | 6d 61 79 20 69 6d 70 61 63 74 20 74 68 65 20 61 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 | may.impact.the.action........... |
| a080 | 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 53 65 63 6f 6e 64 2c 20 66 6f 72 20 61 6c 6c | ///..........///.Second,.for.all |
| a0a0 | 20 74 68 65 20 3c 73 65 65 20 63 72 65 66 3d 22 63 6f 6e 74 72 6f 6c 73 22 2f 3e 20 62 6f 75 6e | .the.<see.cref="controls"/>.boun |
| a0c0 | 64 20 74 6f 20 61 6e 20 61 63 74 69 6f 6e 2c 20 63 68 61 6e 67 65 20 6d 6f 6e 69 74 6f 72 73 20 | d.to.an.action,.change.monitors. |
| a0e0 | 28 73 65 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 20 63 72 65 66 3d 22 49 49 6e | (see..........///.<see.cref="IIn |
| a100 | 70 75 74 53 74 61 74 65 43 68 61 6e 67 65 4d 6f 6e 69 74 6f 72 22 2f 3e 29 20 77 69 6c 6c 20 62 | putStateChangeMonitor"/>).will.b |
| a120 | 65 20 61 64 64 65 64 20 74 6f 20 74 68 65 20 73 79 73 74 65 6d 2e 20 49 66 20 61 6e 79 20 6f 66 | e.added.to.the.system..If.any.of |
| a140 | 20 74 68 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 63 6f 6e 74 72 6f 6c 73 20 63 68 61 6e 67 | .the..........///.controls.chang |
| a160 | 65 73 20 73 74 61 74 65 20 69 6e 20 74 68 65 20 66 75 74 75 72 65 2c 20 74 68 65 20 61 63 74 69 | es.state.in.the.future,.the.acti |
| a180 | 6f 6e 20 77 69 6c 6c 20 67 65 74 20 6e 6f 74 69 66 69 65 64 20 61 6e 64 20 72 65 73 70 6f 6e 64 | on.will.get.notified.and.respond |
| a1a0 | 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 | ...........///..........///.<see |
| a1c0 | 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 54 79 70 65 2e 56 61 6c 75 65 22 2f 3e 20 | .cref="InputActionType.Value"/>. |
| a1e0 | 74 79 70 65 20 61 63 74 69 6f 6e 73 20 77 69 6c 6c 20 61 6c 73 6f 20 70 65 72 66 6f 72 6d 20 61 | type.actions.will.also.perform.a |
| a200 | 6e 20 69 6e 69 74 69 61 6c 20 73 74 61 74 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 63 68 65 | n.initial.state..........///.che |
| a220 | 63 6b 20 69 6e 20 74 68 65 20 69 6e 70 75 74 20 73 79 73 74 65 6d 20 75 70 64 61 74 65 20 66 6f | ck.in.the.input.system.update.fo |
| a240 | 6c 6c 6f 77 69 6e 67 20 74 68 65 20 63 61 6c 6c 20 74 6f 20 45 6e 61 62 6c 65 2e 20 54 68 69 73 | llowing.the.call.to.Enable..This |
| a260 | 20 6d 65 61 6e 73 20 74 68 61 74 20 69 66 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 6e 79 20 | .means.that.if..........///.any. |
| a280 | 6f 66 20 74 68 65 20 62 6f 75 6e 64 20 63 6f 6e 74 72 6f 6c 73 20 61 72 65 20 61 6c 72 65 61 64 | of.the.bound.controls.are.alread |
| a2a0 | 79 20 61 63 74 75 61 74 65 64 20 61 6e 64 20 70 72 6f 64 75 63 65 20 61 20 6e 6f 6e 2d 3c 63 3e | y.actuated.and.produce.a.non-<c> |
| a2c0 | 64 65 66 61 75 6c 74 3c 2f 63 3e 20 76 61 6c 75 65 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | default</c>.value,..........///. |
| a2e0 | 74 68 65 20 61 63 74 69 6f 6e 20 77 69 6c 6c 20 69 6d 6d 65 64 69 61 74 65 6c 79 20 74 72 69 67 | the.action.will.immediately.trig |
| a300 | 67 65 72 20 69 6e 20 72 65 73 70 6f 6e 73 65 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 | ger.in.response...........///... |
| a320 | 20 20 20 20 20 20 20 2f 2f 2f 20 4e 6f 74 65 20 74 68 61 74 20 74 68 69 73 20 6d 65 74 68 6f 64 | .......///.Note.that.this.method |
| a340 | 20 6f 6e 6c 79 20 65 6e 61 62 6c 65 73 20 61 20 73 69 6e 67 6c 65 20 61 63 74 69 6f 6e 2e 20 54 | .only.enables.a.single.action..T |
| a360 | 68 69 73 20 69 73 20 61 6c 73 6f 20 61 6c 6c 6f 77 65 64 20 66 6f 72 20 61 63 74 69 6f 6e 0d 0a | his.is.also.allowed.for.action.. |
| a380 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 68 61 74 20 61 72 65 20 70 61 72 74 20 6f 66 20 61 6e 20 | ........///.that.are.part.of.an. |
| a3a0 | 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 22 2f 3e 2e 20 54 6f | <see.cref="InputActionMap"/>..To |
| a3c0 | 20 65 6e 61 62 6c 65 20 61 6c 6c 20 61 63 74 69 6f 6e 73 20 69 6e 20 61 20 6d 61 70 2c 0d 0a 20 | .enable.all.actions.in.a.map,... |
| a3e0 | 20 20 20 20 20 20 20 2f 2f 2f 20 63 61 6c 6c 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 | .......///.call.<see.cref="Input |
| a400 | 41 63 74 69 6f 6e 4d 61 70 2e 45 6e 61 62 6c 65 22 2f 3e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f | ActionMap.Enable"/>...........// |
| a420 | 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e | /..........///.The.<see.cref="In |
| a440 | 70 75 74 41 63 74 69 6f 6e 4d 61 70 22 2f 3e 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 | putActionMap"/>.associated.with. |
| a460 | 61 6e 20 61 63 74 69 6f 6e 20 28 69 66 20 61 6e 79 29 2c 20 77 69 6c 6c 20 69 6d 6d 65 64 69 61 | an.action.(if.any),.will.immedia |
| a480 | 74 65 6c 79 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 6f 67 67 6c 65 20 74 6f 20 62 65 69 6e | tely..........///.toggle.to.bein |
| a4a0 | 67 20 65 6e 61 62 6c 65 64 20 28 73 65 65 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 | g.enabled.(see.<see.cref="InputA |
| a4c0 | 63 74 69 6f 6e 4d 61 70 2e 65 6e 61 62 6c 65 64 22 2f 3e 29 20 61 73 20 73 6f 6f 6e 20 61 73 20 | ctionMap.enabled"/>).as.soon.as. |
| a4e0 | 74 68 65 20 66 69 72 73 74 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 63 74 69 6f 6e 20 69 6e | the.first..........///.action.in |
| a500 | 20 74 68 65 20 6d 61 70 20 69 73 20 65 6e 61 62 6c 65 64 20 61 6e 64 20 66 6f 72 20 61 73 20 6c | .the.map.is.enabled.and.for.as.l |
| a520 | 6f 6e 67 20 61 73 20 61 6e 79 20 61 63 74 69 6f 6e 20 69 6e 20 74 68 65 20 6d 61 70 20 69 73 20 | ong.as.any.action.in.the.map.is. |
| a540 | 73 74 69 6c 6c 20 65 6e 61 62 6c 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 | still.enabled...........///..... |
| a560 | 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 66 69 72 73 74 20 74 69 6d 65 20 61 6e 20 61 63 74 69 6f | .....///.The.first.time.an.actio |
| a580 | 6e 20 69 73 20 65 6e 61 62 6c 65 64 2c 20 69 74 20 77 69 6c 6c 20 61 6c 6c 6f 63 61 74 65 20 61 | n.is.enabled,.it.will.allocate.a |
| a5a0 | 20 62 6c 6f 63 6b 20 6f 66 20 73 74 61 74 65 20 69 6e 74 65 72 6e 61 6c 6c 79 20 74 68 61 74 20 | .block.of.state.internally.that. |
| a5c0 | 69 74 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 77 69 6c 6c 20 68 6f 6c 64 20 6f 6e 20 74 6f 20 | it..........///.will.hold.on.to. |
| a5e0 | 75 6e 74 69 6c 20 64 69 73 70 6f 73 65 64 20 6f 66 2e 20 46 6f 72 20 66 72 65 65 2d 73 74 61 6e | until.disposed.of..For.free-stan |
| a600 | 64 69 6e 67 20 61 63 74 69 6f 6e 73 2c 20 74 68 61 74 20 73 74 61 74 65 20 69 73 20 70 72 69 76 | ding.actions,.that.state.is.priv |
| a620 | 61 74 65 20 74 6f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 6a 75 73 74 20 74 68 65 20 61 63 74 | ate.to..........///.just.the.act |
| a640 | 69 6f 6e 2e 20 46 6f 72 20 61 63 74 69 6f 6e 73 20 74 68 61 74 20 61 72 65 20 70 61 72 74 20 6f | ion..For.actions.that.are.part.o |
| a660 | 66 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 22 2f 3e 73 2c | f.<see.cref="InputActionMap"/>s, |
| a680 | 20 74 68 65 20 73 74 61 74 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 69 73 20 73 68 61 72 65 | .the.state..........///.is.share |
| a6a0 | 64 20 62 79 20 61 6c 6c 20 61 63 74 69 6f 6e 73 20 69 6e 20 74 68 65 20 6d 61 70 20 61 6e 64 2c | d.by.all.actions.in.the.map.and, |
| a6c0 | 20 69 66 20 74 68 65 20 6d 61 70 20 69 74 73 65 6c 66 20 69 73 20 70 61 72 74 20 6f 66 20 61 6e | .if.the.map.itself.is.part.of.an |
| a6e0 | 20 3c 73 65 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 | .<see..........///.cref="InputAc |
| a700 | 74 69 6f 6e 41 73 73 65 74 22 2f 3e 2c 20 61 6c 73 6f 20 62 79 20 61 6c 6c 20 74 68 65 20 6d 61 | tionAsset"/>,.also.by.all.the.ma |
| a720 | 70 73 20 74 68 61 74 20 61 72 65 20 70 61 72 74 20 6f 66 20 74 68 65 20 61 73 73 65 74 2e 0d 0a | ps.that.are.part.of.the.asset... |
| a740 | 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 6f 20 64 69 73 70 | ........///..........///.To.disp |
| a760 | 6f 73 65 20 6f 66 20 74 68 65 20 73 74 61 74 65 2c 20 63 61 6c 6c 20 3c 73 65 65 20 63 72 65 66 | ose.of.the.state,.call.<see.cref |
| a780 | 3d 22 44 69 73 70 6f 73 65 22 2f 3e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 | ="Dispose"/>...........///...... |
| a7a0 | 20 20 20 20 2f 2f 2f 20 3c 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c | ....///.<example>..........///.< |
| a7c0 | 63 6f 64 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 76 61 72 20 67 61 6d 65 70 61 64 20 3d | code>..........///.var.gamepad.= |
| a7e0 | 20 49 6e 70 75 74 53 79 73 74 65 6d 2e 41 64 64 44 65 76 69 63 65 26 6c 74 3b 47 61 6d 65 70 61 | .InputSystem.AddDevice<Gamepa |
| a800 | 64 26 67 74 3b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f | d>();..........///........../ |
| a820 | 2f 2f 20 76 61 72 20 61 63 74 69 6f 6e 20 3d 20 6e 65 77 20 49 6e 70 75 74 41 63 74 69 6f 6e 28 | //.var.action.=.new.InputAction( |
| a840 | 74 79 70 65 3a 20 49 6e 70 75 74 41 63 74 69 6f 6e 54 79 70 65 2e 56 61 6c 75 65 2c 20 62 69 6e | type:.InputActionType.Value,.bin |
| a860 | 64 69 6e 67 3a 20 22 26 6c 74 3b 47 61 6d 65 70 61 64 26 67 74 3b 2f 6c 65 66 74 54 72 69 67 67 | ding:."<Gamepad>/leftTrigg |
| a880 | 65 72 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 63 74 69 6f 6e 2e 70 65 72 66 6f 72 | er");..........///.action.perfor |
| a8a0 | 6d 65 64 20 3d 20 63 74 78 20 3d 3e 20 44 65 62 75 67 2e 4c 6f 67 28 22 41 63 74 69 6f 6e 20 74 | med.=.ctx.=>.Debug.Log("Action.t |
| a8c0 | 72 69 67 67 65 72 65 64 21 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 | riggered!");..........///....... |
| a8e0 | 20 20 20 2f 2f 2f 20 2f 2f 20 50 65 72 66 6f 72 6d 20 73 6f 6d 65 20 66 61 6b 65 20 69 6e 70 75 | ...///.//.Perform.some.fake.inpu |
| a900 | 74 20 6f 6e 20 74 68 65 20 67 61 6d 65 70 61 64 2e 20 4e 6f 74 65 20 74 68 61 74 20 74 68 65 20 | t.on.the.gamepad..Note.that.the. |
| a920 | 61 63 74 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 77 69 6c 6c 20 2a 4e 4f 54 | action..........///.//.will.*NOT |
| a940 | 2a 20 67 65 74 20 74 72 69 67 67 65 72 65 64 20 61 73 20 69 74 20 69 73 20 6e 6f 74 20 65 6e 61 | *.get.triggered.as.it.is.not.ena |
| a960 | 62 6c 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 4e 4f 54 45 3a 20 57 65 20 75 | bled...........///.//.NOTE:.We.u |
| a980 | 73 65 20 55 70 64 61 74 65 28 29 20 68 65 72 65 20 6f 6e 6c 79 20 66 6f 72 20 64 65 6d 6f 6e 73 | se.Update().here.only.for.demons |
| a9a0 | 74 72 61 74 69 6f 6e 20 70 75 72 70 6f 73 65 73 2e 20 49 6e 20 6d 6f 73 74 20 63 61 73 65 73 2c | tration.purposes..In.most.cases, |
| a9c0 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 20 20 20 20 20 20 69 74 27 73 20 6e 6f 74 20 | ..........///.//.......it's.not. |
| a9e0 | 61 20 67 6f 6f 64 20 6d 65 74 68 6f 64 20 74 6f 20 63 61 6c 6c 20 64 69 72 65 63 74 6c 79 20 61 | a.good.method.to.call.directly.a |
| aa00 | 73 20 69 74 20 62 61 73 69 63 61 6c 6c 79 20 69 6e 6a 65 63 74 73 20 61 72 74 69 66 69 63 69 61 | s.it.basically.injects.artificia |
| aa20 | 6c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 20 20 20 20 20 20 69 6e 70 75 74 20 66 72 | l..........///.//.......input.fr |
| aa40 | 61 6d 65 73 20 69 6e 74 6f 20 74 68 65 20 70 6c 61 79 65 72 20 6c 6f 6f 70 2e 20 55 73 75 61 6c | ames.into.the.player.loop..Usual |
| aa60 | 6c 79 20 61 20 72 65 63 69 70 65 20 66 6f 72 20 62 72 65 61 6b 61 67 65 2e 0d 0a 20 20 20 20 20 | ly.a.recipe.for.breakage........ |
| aa80 | 20 20 20 2f 2f 2f 20 49 6e 70 75 74 53 79 73 74 65 6d 2e 51 75 65 75 65 53 74 61 74 65 45 76 65 | ...///.InputSystem.QueueStateEve |
| aaa0 | 6e 74 28 67 61 6d 65 70 61 64 2c 20 6e 65 77 20 47 61 6d 65 70 61 64 53 74 61 74 65 20 7b 20 6c | nt(gamepad,.new.GamepadState.{.l |
| aac0 | 65 66 74 54 72 69 67 67 65 72 20 3d 20 30 2e 35 66 20 7d 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f | eftTrigger.=.0.5f.});........../ |
| aae0 | 2f 2f 20 49 6e 70 75 74 53 79 73 74 65 6d 2e 55 70 64 61 74 65 28 29 3b 0d 0a 20 20 20 20 20 20 | //.InputSystem.Update();........ |
| ab00 | 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 63 74 69 6f 6e 2e 45 6e 61 62 6c 65 | ..///..........///.action.Enable |
| ab20 | 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f | ();..........///..........///.// |
| ab40 | 20 4e 6f 77 2c 20 77 69 74 68 20 74 68 65 20 6c 65 66 74 20 74 72 69 67 67 65 72 20 61 6c 72 65 | .Now,.with.the.left.trigger.alre |
| ab60 | 61 64 79 20 62 65 69 6e 67 20 64 6f 77 6e 20 61 6e 64 20 74 68 65 20 61 63 74 69 6f 6e 20 65 6e | ady.being.down.and.the.action.en |
| ab80 | 61 62 6c 65 64 2c 20 69 74 20 77 69 6c 6c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 74 | abled,.it.will..........///.//.t |
| aba0 | 72 69 67 67 65 72 20 69 6e 20 74 68 65 20 6e 65 78 74 20 66 72 61 6d 65 2e 0d 0a 20 20 20 20 20 | rigger.in.the.next.frame........ |
| abc0 | 20 20 20 2f 2f 2f 20 49 6e 70 75 74 53 79 73 74 65 6d 2e 55 70 64 61 74 65 28 29 3b 0d 0a 20 20 | ...///.InputSystem.Update();.... |
| abe0 | 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 63 6f 64 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c | ......///.</code>..........///.< |
| ac00 | 2f 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 | /example>..........///.</remarks |
| ac20 | 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 44 69 | >..........///.<seealso.cref="Di |
| ac40 | 73 61 62 6c 65 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 | sable"/>..........///.<seealso.c |
| ac60 | 72 65 66 3d 22 65 6e 61 62 6c 65 64 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 | ref="enabled"/>..........public. |
| ac80 | 76 6f 69 64 20 45 6e 61 62 6c 65 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 | void.Enable()..........{........ |
| aca0 | 20 20 20 20 20 20 69 66 20 28 65 6e 61 62 6c 65 64 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | ......if.(enabled).............. |
| acc0 | 20 20 20 20 72 65 74 75 72 6e 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 46 6f | ....return;................//.Fo |
| ace0 | 72 20 73 69 6e 67 6c 65 74 6f 6e 20 61 63 74 69 6f 6e 73 2c 20 77 65 20 63 72 65 61 74 65 20 61 | r.singleton.actions,.we.create.a |
| ad00 | 6e 20 69 6e 74 65 72 6e 61 6c 2d 6f 6e 6c 79 20 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 0d 0a | n.internal-only.InputActionMap.. |
| ad20 | 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 70 72 69 76 61 74 65 20 74 6f 20 74 68 65 20 61 63 | ............//.private.to.the.ac |
| ad40 | 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6d 61 70 20 3d 20 47 65 74 | tion...............var.map.=.Get |
| ad60 | 4f 72 43 72 65 61 74 65 41 63 74 69 6f 6e 4d 61 70 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 | OrCreateActionMap();............ |
| ad80 | 20 20 20 20 2f 2f 20 46 69 72 73 74 20 74 69 6d 65 20 77 65 27 72 65 20 65 6e 61 62 6c 65 64 2c | ....//.First.time.we're.enabled, |
| ada0 | 20 66 69 6e 64 20 61 6c 6c 20 63 6f 6e 74 72 6f 6c 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | .find.all.controls.............. |
| adc0 | 20 6d 61 70 2e 52 65 73 6f 6c 76 65 42 69 6e 64 69 6e 67 73 49 66 4e 65 63 65 73 73 61 72 79 28 | .map.ResolveBindingsIfNecessary( |
| ade0 | 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 47 6f 20 6c 69 76 65 2e 0d 0a 20 | );................//.Go.live.... |
| ae00 | 20 20 20 20 20 20 20 20 20 20 20 6d 61 70 2e 6d 5f 53 74 61 74 65 2e 45 6e 61 62 6c 65 53 69 6e | ...........map.m_State.EnableSin |
| ae20 | 67 6c 65 41 63 74 69 6f 6e 28 74 68 69 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 | gleAction(this);..........}..... |
| ae40 | 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f | .......///.<summary>..........// |
| ae60 | 2f 20 44 69 73 61 62 6c 65 20 74 68 65 20 61 63 74 69 6f 6e 20 73 75 63 68 20 74 68 61 74 20 69 | /.Disable.the.action.such.that.i |
| ae80 | 73 20 73 74 6f 70 20 6c 69 73 74 65 6e 69 6e 67 2f 72 65 73 70 6f 6e 64 69 6e 67 20 74 6f 20 69 | s.stop.listening/responding.to.i |
| aea0 | 6e 70 75 74 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 | nput...........///.</summary>... |
| aec0 | 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f | .......///.<remarks>..........// |
| aee0 | 2f 20 49 66 20 74 68 65 20 61 63 74 69 6f 6e 20 69 73 20 61 6c 72 65 61 64 79 20 64 69 73 61 62 | /.If.the.action.is.already.disab |
| af00 | 6c 65 64 2c 20 74 68 69 73 20 6d 65 74 68 6f 64 20 64 6f 65 73 20 6e 6f 74 68 69 6e 67 2e 0d 0a | led,.this.method.does.nothing... |
| af20 | 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 66 20 74 68 65 20 | ........///..........///.If.the. |
| af40 | 61 63 74 69 6f 6e 20 69 73 20 63 75 72 72 65 6e 74 6c 79 20 69 6e 20 70 72 6f 67 72 65 73 73 2c | action.is.currently.in.progress, |
| af60 | 20 69 2e 65 2e 20 69 66 20 3c 73 65 65 20 63 72 65 66 3d 22 70 68 61 73 65 22 2f 3e 20 69 73 0d | .i.e..if.<see.cref="phase"/>.is. |
| af80 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 | .........///.<see.cref="InputAct |
| afa0 | 69 6f 6e 50 68 61 73 65 2e 53 74 61 72 74 65 64 22 2f 3e 2c 20 74 68 65 20 61 63 74 69 6f 6e 20 | ionPhase.Started"/>,.the.action. |
| afc0 | 77 69 6c 6c 20 62 65 20 63 61 6e 63 65 6c 65 64 20 61 73 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | will.be.canceled.as........../// |
| afe0 | 20 70 61 72 74 20 6f 66 20 62 65 69 6e 67 20 64 69 73 61 62 6c 65 64 2e 20 54 68 69 73 20 6d 65 | .part.of.being.disabled..This.me |
| b000 | 61 6e 73 20 74 68 61 74 20 79 6f 75 20 77 69 6c 6c 20 73 65 65 20 61 20 63 61 6c 6c 20 6f 6e 20 | ans.that.you.will.see.a.call.on. |
| b020 | 3c 73 65 65 20 63 72 65 66 3d 22 63 61 6e 63 65 6c 65 64 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 | <see.cref="canceled"/>.......... |
| b040 | 2f 2f 2f 20 66 72 6f 6d 20 77 69 74 68 69 6e 20 74 68 65 20 63 61 6c 6c 20 74 6f 20 3c 63 3e 44 | ///.from.within.the.call.to.<c>D |
| b060 | 69 73 61 62 6c 65 28 29 3c 2f 63 3e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d | isable()</c>...........///.</rem |
| b080 | 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 | arks>..........///.<seealso.cref |
| b0a0 | 3d 22 65 6e 61 62 6c 65 64 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c | ="enabled"/>..........///.<seeal |
| b0c0 | 73 6f 20 63 72 65 66 3d 22 45 6e 61 62 6c 65 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c | so.cref="Enable"/>..........publ |
| b0e0 | 69 63 20 76 6f 69 64 20 44 69 73 61 62 6c 65 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 | ic.void.Disable()..........{.... |
| b100 | 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 65 6e 61 62 6c 65 64 29 0d 0a 20 20 20 20 20 20 20 | ..........if.(!enabled)......... |
| b120 | 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | .........return;................ |
| b140 | 6d 5f 41 63 74 69 6f 6e 4d 61 70 2e 6d 5f 53 74 61 74 65 2e 44 69 73 61 62 6c 65 53 69 6e 67 6c | m_ActionMap.m_State.DisableSingl |
| b160 | 65 41 63 74 69 6f 6e 28 74 68 69 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 | eAction(this);..........}....... |
| b180 | 20 20 20 20 20 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 69 73 20 2a 6e 6f 74 2a 20 63 6c 6f 6e 69 6e | .....////REVIEW:.is.*not*.clonin |
| b1a0 | 67 20 49 44 73 20 68 65 72 65 20 72 65 61 6c 6c 79 20 74 68 65 20 72 69 67 68 74 20 74 68 69 6e | g.IDs.here.really.the.right.thin |
| b1c0 | 67 20 74 6f 20 64 6f 3f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d | g.to.do?..........///.<summary>. |
| b1e0 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 52 65 74 75 72 6e 20 61 6e 20 69 64 65 6e 74 69 63 61 6c | .........///.Return.an.identical |
| b200 | 20 69 6e 73 74 61 6e 63 65 20 6f 66 20 74 68 65 20 61 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 | .instance.of.the.action......... |
| b220 | 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 | ..///.</summary>..........///.<r |
| b240 | 65 74 75 72 6e 73 3e 41 6e 20 69 64 65 6e 74 69 63 61 6c 20 63 6c 6f 6e 65 20 6f 66 20 74 68 65 | eturns>An.identical.clone.of.the |
| b260 | 20 61 63 74 69 6f 6e 3c 2f 72 65 74 75 72 6e 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c | .action</returns>..........///.< |
| b280 | 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 4e 6f 74 65 20 74 68 61 74 20 | remarks>..........///.Note.that. |
| b2a0 | 69 66 20 79 6f 75 20 63 6c 6f 6e 65 20 61 6e 20 61 63 74 69 6f 6e 20 74 68 61 74 20 69 73 20 70 | if.you.clone.an.action.that.is.p |
| b2c0 | 61 72 74 20 6f 66 20 61 6e 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e | art.of.an.<see.cref="InputAction |
| b2e0 | 4d 61 70 22 2f 3e 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 79 6f 75 20 77 69 6c 6c 20 6e 6f | Map"/>,..........///.you.will.no |
| b300 | 74 20 67 65 74 20 61 20 6e 65 77 20 61 63 74 69 6f 6e 20 74 68 61 74 20 69 73 20 70 61 72 74 20 | t.get.a.new.action.that.is.part. |
| b320 | 6f 66 20 74 68 65 20 73 61 6d 65 20 6d 61 70 2e 20 49 6e 73 74 65 61 64 2c 20 79 6f 75 20 77 69 | of.the.same.map..Instead,.you.wi |
| b340 | 6c 6c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 67 65 74 20 61 20 66 72 65 65 2d 73 74 61 6e 64 | ll..........///.get.a.free-stand |
| b360 | 69 6e 67 20 61 63 74 69 6f 6e 20 6e 6f 74 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 61 | ing.action.not.associated.with.a |
| b380 | 6e 79 20 61 63 74 69 6f 6e 20 6d 61 70 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 | ny.action.map...........///..... |
| b3a0 | 20 20 20 20 20 2f 2f 2f 20 41 6c 73 6f 2c 20 6e 6f 74 65 20 74 68 61 74 20 74 68 65 20 3c 73 65 | .....///.Also,.note.that.the.<se |
| b3c0 | 65 20 63 72 65 66 3d 22 69 64 22 2f 3e 20 6f 66 20 74 68 65 20 61 63 74 69 6f 6e 20 69 73 20 6e | e.cref="id"/>.of.the.action.is.n |
| b3e0 | 6f 74 20 63 6c 6f 6e 65 64 2e 20 49 6e 73 74 65 61 64 2c 20 74 68 65 0d 0a 20 20 20 20 20 20 20 | ot.cloned..Instead,.the......... |
| b400 | 20 2f 2f 2f 20 63 6c 6f 6e 65 20 77 69 6c 6c 20 72 65 63 65 69 76 65 20 61 20 6e 65 77 20 75 6e | .///.clone.will.receive.a.new.un |
| b420 | 69 71 75 65 20 49 44 2e 20 41 6c 73 6f 2c 20 63 61 6c 6c 62 61 63 6b 73 20 69 6e 73 74 61 6c 6c | ique.ID..Also,.callbacks.install |
| b440 | 20 6f 6e 20 65 76 65 6e 74 73 20 73 75 63 68 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 73 20 | .on.events.such..........///.as. |
| b460 | 3c 73 65 65 20 63 72 65 66 3d 22 73 74 61 72 74 65 64 22 2f 3e 20 77 69 6c 6c 20 6e 6f 74 20 62 | <see.cref="started"/>.will.not.b |
| b480 | 65 20 63 6f 70 69 65 64 20 6f 76 65 72 20 74 6f 20 74 68 65 20 63 6c 6f 6e 65 2e 0d 0a 20 20 20 | e.copied.over.to.the.clone...... |
| b4a0 | 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 | .....///.</remarks>..........pub |
| b4c0 | 6c 69 63 20 49 6e 70 75 74 41 63 74 69 6f 6e 20 43 6c 6f 6e 65 28 29 0d 0a 20 20 20 20 20 20 20 | lic.InputAction.Clone()......... |
| b4e0 | 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 6c 6f 6e 65 20 3d 20 6e 65 77 20 | .{..............var.clone.=.new. |
| b500 | 49 6e 70 75 74 41 63 74 69 6f 6e 28 6e 61 6d 65 3a 20 6d 5f 4e 61 6d 65 2c 20 74 79 70 65 3a 20 | InputAction(name:.m_Name,.type:. |
| b520 | 6d 5f 54 79 70 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 | m_Type)..............{.......... |
| b540 | 20 20 20 20 20 20 20 20 6d 5f 53 69 6e 67 6c 65 74 6f 6e 41 63 74 69 6f 6e 42 69 6e 64 69 6e 67 | ........m_SingletonActionBinding |
| b560 | 73 20 3d 20 62 69 6e 64 69 6e 67 73 2e 54 6f 41 72 72 61 79 28 29 2c 0d 0a 20 20 20 20 20 20 20 | s.=.bindings.ToArray(),......... |
| b580 | 20 20 20 20 20 20 20 20 20 6d 5f 42 69 6e 64 69 6e 67 73 43 6f 75 6e 74 20 3d 20 6d 5f 42 69 6e | .........m_BindingsCount.=.m_Bin |
| b5a0 | 64 69 6e 67 73 43 6f 75 6e 74 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 45 | dingsCount,..................m_E |
| b5c0 | 78 70 65 63 74 65 64 43 6f 6e 74 72 6f 6c 54 79 70 65 20 3d 20 6d 5f 45 78 70 65 63 74 65 64 43 | xpectedControlType.=.m_ExpectedC |
| b5e0 | 6f 6e 74 72 6f 6c 54 79 70 65 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 49 | ontrolType,..................m_I |
| b600 | 6e 74 65 72 61 63 74 69 6f 6e 73 20 3d 20 6d 5f 49 6e 74 65 72 61 63 74 69 6f 6e 73 2c 0d 0a 20 | nteractions.=.m_Interactions,... |
| b620 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 50 72 6f 63 65 73 73 6f 72 73 20 3d 20 6d 5f | ...............m_Processors.=.m_ |
| b640 | 50 72 6f 63 65 73 73 6f 72 73 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 3b 0d 0a 20 20 20 | Processors,..............};..... |
| b660 | 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 63 6c 6f 6e 65 3b 0d 0a 20 20 20 20 20 20 20 20 | .........return.clone;.......... |
| b680 | 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 6f 62 6a 65 63 74 20 49 43 6c 6f 6e 65 61 62 6c 65 2e 43 | }............object.ICloneable.C |
| b6a0 | 6c 6f 6e 65 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 | lone()..........{..............r |
| b6c0 | 65 74 75 72 6e 20 43 6c 6f 6e 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 | eturn.Clone();..........}....... |
| b6e0 | 20 20 20 20 20 2f 2f 2f 2f 54 4f 44 4f 3a 20 52 65 61 64 56 61 6c 75 65 28 76 6f 69 64 2a 2c 20 | .....////TODO:.ReadValue(void*,. |
| b700 | 69 6e 74 29 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 | int)............///.<summary>... |
| b720 | 20 20 20 20 20 20 20 2f 2f 2f 20 52 65 61 64 20 74 68 65 20 63 75 72 72 65 6e 74 20 76 61 6c 75 | .......///.Read.the.current.valu |
| b740 | 65 20 6f 66 20 74 68 65 20 61 63 74 69 6f 6e 2e 20 54 68 69 73 20 69 73 20 74 68 65 20 6c 61 73 | e.of.the.action..This.is.the.las |
| b760 | 74 20 76 61 6c 75 65 20 72 65 63 65 69 76 65 64 20 6f 6e 20 3c 73 65 65 20 63 72 65 66 3d 22 73 | t.value.received.on.<see.cref="s |
| b780 | 74 61 72 74 65 64 22 2f 3e 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 6f 72 20 3c 73 65 65 20 | tarted"/>,..........///.or.<see. |
| b7a0 | 63 72 65 66 3d 22 70 65 72 66 6f 72 6d 65 64 22 2f 3e 2e 20 49 66 20 74 68 65 20 61 63 74 69 6f | cref="performed"/>..If.the.actio |
| b7c0 | 6e 20 69 73 20 69 6e 20 63 61 6e 63 65 6c 65 64 20 6f 72 20 77 61 69 74 69 6e 67 20 70 68 61 73 | n.is.in.canceled.or.waiting.phas |
| b7e0 | 65 2c 20 72 65 74 75 72 6e 73 20 64 65 66 61 75 6c 74 28 54 56 61 6c 75 65 29 2e 0d 0a 20 20 20 | e,.returns.default(TValue)...... |
| b800 | 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | .....///.</summary>........../// |
| b820 | 20 3c 74 79 70 65 70 61 72 61 6d 20 6e 61 6d 65 3d 22 54 56 61 6c 75 65 22 3e 56 61 6c 75 65 20 | .<typeparam.name="TValue">Value. |
| b840 | 74 79 70 65 20 74 6f 20 72 65 61 64 2e 20 4d 75 73 74 20 6d 61 74 63 68 20 74 68 65 20 76 61 6c | type.to.read..Must.match.the.val |
| b860 | 75 65 20 74 79 70 65 20 6f 66 20 74 68 65 20 62 69 6e 64 69 6e 67 2f 63 6f 6e 74 72 6f 6c 20 74 | ue.type.of.the.binding/control.t |
| b880 | 68 61 74 20 74 72 69 67 67 65 72 65 64 2e 3c 2f 74 79 70 65 70 61 72 61 6d 3e 0d 0a 20 20 20 20 | hat.triggered.</typeparam>...... |
| b8a0 | 20 20 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 54 68 65 20 63 75 72 72 65 6e 74 20 76 61 6c | ....///.<returns>The.current.val |
| b8c0 | 75 65 20 6f 66 20 74 68 65 20 61 63 74 69 6f 6e 20 6f 72 20 3c 63 3e 64 65 66 61 75 6c 74 28 54 | ue.of.the.action.or.<c>default(T |
| b8e0 | 56 61 6c 75 65 29 3c 2f 63 3e 20 69 66 20 74 68 65 20 61 63 74 69 6f 6e 20 69 73 20 6e 6f 74 20 | Value)</c>.if.the.action.is.not. |
| b900 | 63 75 72 72 65 6e 74 6c 79 20 69 6e 2d 70 72 6f 67 72 65 73 73 2e 3c 2f 72 65 74 75 72 6e 73 3e | currently.in-progress.</returns> |
| b920 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 | ..........///.<remarks>......... |
| b940 | 20 2f 2f 2f 20 54 68 69 73 20 6d 65 74 68 6f 64 20 63 61 6e 20 62 65 20 75 73 65 64 20 61 73 20 | .///.This.method.can.be.used.as. |
| b960 | 61 6e 20 61 6c 74 65 72 6e 61 74 69 76 65 20 74 6f 20 68 6f 6f 6b 69 6e 67 20 69 6e 74 6f 20 3c | an.alternative.to.hooking.into.< |
| b980 | 73 65 65 20 63 72 65 66 3d 22 73 74 61 72 74 65 64 22 2f 3e 2c 20 3c 73 65 65 20 63 72 65 66 3d | see.cref="started"/>,.<see.cref= |
| b9a0 | 22 70 65 72 66 6f 72 6d 65 64 22 2f 3e 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 6e 64 2f | "performed"/>,..........///.and/ |
| b9c0 | 6f 72 20 3c 73 65 65 20 63 72 65 66 3d 22 63 61 6e 63 65 6c 65 64 22 2f 3e 20 61 6e 64 20 72 65 | or.<see.cref="canceled"/>.and.re |
| b9e0 | 61 64 69 6e 67 20 6f 75 74 20 74 68 65 20 76 61 6c 75 65 20 75 73 69 6e 67 20 3c 73 65 65 20 63 | ading.out.the.value.using.<see.c |
| ba00 | 72 65 66 3d 22 43 61 6c 6c 62 61 63 6b 43 6f 6e 74 65 78 74 2e 52 65 61 64 56 61 6c 75 65 7b 54 | ref="CallbackContext.ReadValue{T |
| ba20 | 56 61 6c 75 65 7d 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 68 65 72 65 2e 20 49 6e | Value}"/>..........///.there..In |
| ba40 | 73 74 65 61 64 2c 20 74 68 69 73 20 41 50 49 20 61 63 74 73 20 6d 6f 72 65 20 6c 69 6b 65 20 61 | stead,.this.API.acts.more.like.a |
| ba60 | 20 70 6f 6c 6c 69 6e 67 20 41 50 49 20 74 68 61 74 20 63 61 6e 20 62 65 20 63 61 6c 6c 65 64 2c | .polling.API.that.can.be.called, |
| ba80 | 20 66 6f 72 20 65 78 61 6d 70 6c 65 2c 20 61 73 20 70 61 72 74 20 6f 66 0d 0a 20 20 20 20 20 20 | .for.example,.as.part.of........ |
| baa0 | 20 20 2f 2f 2f 20 3c 63 3e 4d 6f 6e 6f 42 65 68 61 76 69 6f 75 72 2e 55 70 64 61 74 65 3c 2f 63 | ..///.<c>MonoBehaviour.Update</c |
| bac0 | 3e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 65 78 | >...........///..........///.<ex |
| bae0 | 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 63 6f 64 65 3e 0d 0a 20 20 20 20 | ample>..........///.<code>...... |
| bb00 | 20 20 20 20 2f 2f 2f 20 2f 2f 20 4c 65 74 27 73 20 73 61 79 20 79 6f 75 20 68 61 76 65 20 61 20 | ....///.//.Let's.say.you.have.a. |
| bb20 | 4d 79 43 6f 6e 74 72 6f 6c 73 2e 69 6e 70 75 74 61 63 74 69 6f 6e 73 20 66 69 6c 65 20 77 69 74 | MyControls.inputactions.file.wit |
| bb40 | 68 20 22 47 65 6e 65 72 61 74 65 20 43 23 20 43 6c 61 73 73 22 20 65 6e 61 62 6c 65 64 0d 0a 20 | h."Generate.C#.Class".enabled... |
| bb60 | 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 61 6e 64 20 69 74 20 68 61 73 20 61 6e 20 61 63 74 69 | .......///.//.and.it.has.an.acti |
| bb80 | 6f 6e 20 6d 61 70 20 63 61 6c 6c 65 64 20 22 67 61 6d 65 70 6c 61 79 22 20 77 69 74 68 20 61 20 | on.map.called."gameplay".with.a. |
| bba0 | 22 6d 6f 76 65 22 20 61 63 74 69 6f 6e 20 6f 66 20 74 79 70 65 20 56 65 63 74 6f 72 32 2e 0d 0a | "move".action.of.type.Vector2... |
| bbc0 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 70 75 62 6c 69 63 20 63 6c 61 73 73 20 4d 79 42 65 68 61 76 | ........///.public.class.MyBehav |
| bbe0 | 69 6f 72 20 3a 20 4d 6f 6e 6f 42 65 68 61 76 69 6f 75 72 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | ior.:.MonoBehaviour........../// |
| bc00 | 20 7b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 70 75 62 6c 69 63 20 4d 79 43 6f 6e | .{..........///.....public.MyCon |
| bc20 | 74 72 6f 6c 73 20 63 6f 6e 74 72 6f 6c 73 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 | trols.controls;..........///.... |
| bc40 | 20 70 75 62 6c 69 63 20 66 6c 6f 61 74 20 6d 6f 76 65 53 70 65 65 64 20 3d 20 34 3b 0d 0a 20 20 | .public.float.moveSpeed.=.4;.... |
| bc60 | 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 70 72 6f 74 65 | ......///..........///.....prote |
| bc80 | 63 74 65 64 20 76 6f 69 64 20 41 77 61 6b 65 28 29 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 | cted.void.Awake()..........///.. |
| bca0 | 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 63 6f 6e 74 72 6f | ...{..........///.........contro |
| bcc0 | 6c 73 20 3d 20 6e 65 77 20 4d 79 43 6f 6e 74 72 6f 6c 73 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 | ls.=.new.MyControls();.......... |
| bce0 | 2f 2f 2f 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 | ///.....}..........///.......... |
| bd00 | 2f 2f 2f 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 76 6f 69 64 20 4f 6e 45 6e 61 62 6c 65 28 | ///.....protected.void.OnEnable( |
| bd20 | 29 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 2f 2f | )..........///.....{..........// |
| bd40 | 2f 20 20 20 20 20 20 20 20 20 63 6f 6e 74 72 6f 6c 73 2e 67 61 6d 65 70 6c 61 79 2e 45 6e 61 62 | /.........controls.gameplay.Enab |
| bd60 | 6c 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 | le();..........///.....}........ |
| bd80 | 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 | ..///..........///.....protected |
| bda0 | 20 76 6f 69 64 20 4f 6e 44 69 73 61 62 6c 65 28 29 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 | .void.OnDisable()..........///.. |
| bdc0 | 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 63 6f 6e 74 72 6f | ...{..........///.........contro |
| bde0 | 6c 73 2e 67 61 6d 65 70 6c 61 79 2e 44 69 73 61 62 6c 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 | ls.gameplay.Disable();.......... |
| be00 | 2f 2f 2f 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 | ///.....}..........///.......... |
| be20 | 2f 2f 2f 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 76 6f 69 64 20 55 70 64 61 74 65 28 29 0d | ///.....protected.void.Update(). |
| be40 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | .........///.....{..........///. |
| be60 | 20 20 20 20 20 20 20 20 76 61 72 20 6d 6f 76 65 56 65 63 74 6f 72 20 3d 20 63 6f 6e 74 72 6f 6c | ........var.moveVector.=.control |
| be80 | 73 2e 67 61 6d 65 70 6c 61 79 2e 6d 6f 76 65 2e 52 65 61 64 56 61 6c 75 65 26 6c 74 3b 56 65 63 | s.gameplay.move.ReadValue<Vec |
| bea0 | 74 6f 72 32 26 67 74 3b 28 29 20 2a 20 28 6d 6f 76 65 53 70 65 65 64 20 2a 20 54 69 6d 65 2e 64 | tor2>().*.(moveSpeed.*.Time.d |
| bec0 | 65 6c 74 61 54 69 6d 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 | eltaTime);..........///......... |
| bee0 | 2f 2f 2e 2e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 | //.............///.....}........ |
| bf00 | 20 20 2f 2f 2f 20 7d 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 63 6f 64 65 3e 0d 0a 20 20 | ..///.}..........///.</code>.... |
| bf20 | 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f | ......///.</example>..........// |
| bf40 | 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 66 20 74 68 65 20 61 63 74 69 6f 6e 20 68 61 73 | /..........///.If.the.action.has |
| bf60 | 20 62 75 74 74 6f 6e 2d 6c 69 6b 65 20 62 65 68 61 76 69 6f 72 2c 20 74 68 65 6e 20 3c 73 65 65 | .button-like.behavior,.then.<see |
| bf80 | 20 63 72 65 66 3d 22 74 72 69 67 67 65 72 65 64 22 2f 3e 20 69 73 20 75 73 75 61 6c 6c 79 20 61 | .cref="triggered"/>.is.usually.a |
| bfa0 | 20 62 65 74 74 65 72 20 61 6c 74 65 72 6e 61 74 69 76 65 20 74 6f 0d 0a 20 20 20 20 20 20 20 20 | .better.alternative.to.......... |
| bfc0 | 2f 2f 2f 20 72 65 61 64 69 6e 67 20 6f 75 74 20 61 20 66 6c 6f 61 74 20 61 6e 64 20 63 68 65 63 | ///.reading.out.a.float.and.chec |
| bfe0 | 6b 69 6e 67 20 69 66 20 69 74 20 69 73 20 61 62 6f 76 65 20 74 68 65 20 62 75 74 74 6f 6e 20 70 | king.if.it.is.above.the.button.p |
| c000 | 72 65 73 73 20 70 6f 69 6e 74 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 | ress.point...........///.</remar |
| c020 | 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 65 78 63 65 70 74 69 6f 6e 20 63 72 65 66 | ks>..........///.<exception.cref |
| c040 | 3d 22 49 6e 76 61 6c 69 64 4f 70 65 72 61 74 69 6f 6e 45 78 63 65 70 74 69 6f 6e 22 3e 54 68 65 | ="InvalidOperationException">The |
| c060 | 20 67 69 76 65 6e 20 3c 74 79 70 65 70 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d 22 54 56 61 6c 75 | .given.<typeparamref.name="TValu |
| c080 | 65 22 2f 3e 20 74 79 70 65 20 64 6f 65 73 20 6e 6f 74 20 6d 61 74 63 68 0d 0a 20 20 20 20 20 20 | e"/>.type.does.not.match........ |
| c0a0 | 20 20 2f 2f 2f 20 74 68 65 20 76 61 6c 75 65 20 74 79 70 65 20 6f 66 20 74 68 65 20 63 6f 6e 74 | ..///.the.value.type.of.the.cont |
| c0c0 | 72 6f 6c 20 6f 72 20 63 6f 6d 70 6f 73 69 74 65 20 63 75 72 72 65 6e 74 6c 79 20 64 72 69 76 69 | rol.or.composite.currently.drivi |
| c0e0 | 6e 67 20 74 68 65 20 61 63 74 69 6f 6e 2e 3c 2f 65 78 63 65 70 74 69 6f 6e 3e 0d 0a 20 20 20 20 | ng.the.action.</exception>...... |
| c100 | 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 74 72 69 67 67 65 72 65 64 | ....///.<seealso.cref="triggered |
| c120 | 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 | "/>..........///.<seealso.cref=" |
| c140 | 52 65 61 64 56 61 6c 75 65 41 73 4f 62 6a 65 63 74 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f | ReadValueAsObject"/>..........// |
| c160 | 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 43 61 6c 6c 62 61 63 6b 43 6f 6e 74 65 78 74 | /.<seealso.cref="CallbackContext |
| c180 | 2e 52 65 61 64 56 61 6c 75 65 7b 54 56 61 6c 75 65 7d 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 | .ReadValue{TValue}"/>..........p |
| c1a0 | 75 62 6c 69 63 20 75 6e 73 61 66 65 20 54 56 61 6c 75 65 20 52 65 61 64 56 61 6c 75 65 3c 54 56 | ublic.unsafe.TValue.ReadValue<TV |
| c1c0 | 61 6c 75 65 3e 28 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 68 65 72 65 20 54 56 61 6c 75 | alue>()..............where.TValu |
| c1e0 | 65 20 3a 20 73 74 72 75 63 74 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 | e.:.struct..........{........... |
| c200 | 20 20 20 76 61 72 20 72 65 73 75 6c 74 20 3d 20 64 65 66 61 75 6c 74 28 54 56 61 6c 75 65 29 3b | ...var.result.=.default(TValue); |
| c220 | 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 74 61 74 65 20 3d 20 47 65 74 4f | ................var.state.=.GetO |
| c240 | 72 43 72 65 61 74 65 41 63 74 69 6f 6e 4d 61 70 28 29 2e 6d 5f 53 74 61 74 65 3b 0d 0a 20 20 20 | rCreateActionMap().m_State;..... |
| c260 | 20 20 20 20 20 20 20 20 20 69 66 20 28 73 74 61 74 65 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 | .........if.(state.!=.null)..... |
| c280 | 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 | .........{..................var. |
| c2a0 | 61 63 74 69 6f 6e 53 74 61 74 65 50 74 72 20 3d 20 26 73 74 61 74 65 2e 61 63 74 69 6f 6e 53 74 | actionStatePtr.=.&state.actionSt |
| c2c0 | 61 74 65 73 5b 6d 5f 41 63 74 69 6f 6e 49 6e 64 65 78 49 6e 53 74 61 74 65 5d 3b 0d 0a 20 20 20 | ates[m_ActionIndexInState];..... |
| c2e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 6f 6e 74 72 6f 6c 49 6e 64 65 78 20 3d 20 | .............var.controlIndex.=. |
| c300 | 61 63 74 69 6f 6e 53 74 61 74 65 50 74 72 2d 3e 63 6f 6e 74 72 6f 6c 49 6e 64 65 78 3b 0d 0a 20 | actionStatePtr->controlIndex;... |
| c320 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 6f 6e 74 72 6f 6c 49 6e 64 65 78 20 | ...............if.(controlIndex. |
| c340 | 21 3d 20 49 6e 70 75 74 41 63 74 69 6f 6e 53 74 61 74 65 2e 6b 49 6e 76 61 6c 69 64 49 6e 64 65 | !=.InputActionState.kInvalidInde |
| c360 | 78 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 73 75 6c 74 20 3d | x)......................result.= |
| c380 | 20 73 74 61 74 65 2e 52 65 61 64 56 61 6c 75 65 3c 54 56 61 6c 75 65 3e 28 61 63 74 69 6f 6e 53 | .state.ReadValue<TValue>(actionS |
| c3a0 | 74 61 74 65 50 74 72 2d 3e 62 69 6e 64 69 6e 67 49 6e 64 65 78 2c 20 63 6f 6e 74 72 6f 6c 49 6e | tatePtr->bindingIndex,.controlIn |
| c3c0 | 64 65 78 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 | dex);..............}............ |
| c3e0 | 20 20 20 20 72 65 74 75 72 6e 20 72 65 73 75 6c 74 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d | ....return.result;..........}... |
| c400 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 | .........///.<summary>.......... |
| c420 | 2f 2f 2f 20 53 61 6d 65 20 61 73 20 3c 73 65 65 20 63 72 65 66 3d 22 52 65 61 64 56 61 6c 75 65 | ///.Same.as.<see.cref="ReadValue |
| c440 | 7b 54 56 61 6c 75 65 7d 22 2f 3e 20 62 75 74 20 72 65 61 64 20 74 68 65 20 76 61 6c 75 65 20 77 | {TValue}"/>.but.read.the.value.w |
| c460 | 69 74 68 6f 75 74 20 68 61 76 69 6e 67 20 74 6f 20 6b 6e 6f 77 20 74 68 65 20 76 61 6c 75 65 20 | ithout.having.to.know.the.value. |
| c480 | 74 79 70 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 6f 66 20 74 68 65 20 61 63 74 69 6f 6e 2e | type..........///.of.the.action. |
| c4a0 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 | ..........///.</summary>........ |
| c4c0 | 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 54 68 65 20 63 75 72 72 65 6e 74 20 76 61 6c 75 65 | ..///.<returns>The.current.value |
| c4e0 | 20 6f 66 20 74 68 65 20 61 63 74 69 6f 6e 20 6f 72 20 6e 75 6c 6c 20 69 66 20 74 68 65 20 61 63 | .of.the.action.or.null.if.the.ac |
| c500 | 74 69 6f 6e 20 69 73 20 6e 6f 74 20 63 75 72 72 65 6e 74 6c 79 20 69 6e 20 3c 73 65 65 20 63 72 | tion.is.not.currently.in.<see.cr |
| c520 | 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 50 68 61 73 65 2e 53 74 61 72 74 65 64 22 2f 3e 0d | ef="InputActionPhase.Started"/>. |
| c540 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 6f 72 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 | .........///.or.<see.cref="Input |
| c560 | 41 63 74 69 6f 6e 50 68 61 73 65 2e 50 65 72 66 6f 72 6d 65 64 22 2f 3e 20 70 68 61 73 65 2e 3c | ActionPhase.Performed"/>.phase.< |
| c580 | 2f 72 65 74 75 72 6e 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e | /returns>..........///.<remarks> |
| c5a0 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 69 73 20 6d 65 74 68 6f 64 20 61 6c 6c 6f 63 61 | ..........///.This.method.alloca |
| c5c0 | 74 65 73 20 47 43 20 6d 65 6d 6f 72 79 20 61 6e 64 20 69 73 20 74 68 75 73 20 6e 6f 74 20 61 20 | tes.GC.memory.and.is.thus.not.a. |
| c5e0 | 67 6f 6f 64 20 63 68 6f 69 63 65 20 66 6f 72 20 67 65 74 74 69 6e 67 20 63 61 6c 6c 65 64 20 61 | good.choice.for.getting.called.a |
| c600 | 73 20 70 61 72 74 20 6f 66 20 67 61 6d 65 70 6c 61 79 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | s.part.of.gameplay..........///. |
| c620 | 6c 6f 67 69 63 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a | logic...........///.</remarks>.. |
| c640 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 52 65 61 64 56 | ........///.<seealso.cref="ReadV |
| c660 | 61 6c 75 65 7b 54 56 61 6c 75 65 7d 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 | alue{TValue}"/>..........public. |
| c680 | 75 6e 73 61 66 65 20 6f 62 6a 65 63 74 20 52 65 61 64 56 61 6c 75 65 41 73 4f 62 6a 65 63 74 28 | unsafe.object.ReadValueAsObject( |
| c6a0 | 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 74 | )..........{..............var.st |
| c6c0 | 61 74 65 20 3d 20 47 65 74 4f 72 43 72 65 61 74 65 41 63 74 69 6f 6e 4d 61 70 28 29 2e 6d 5f 53 | ate.=.GetOrCreateActionMap().m_S |
| c6e0 | 74 61 74 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 74 61 74 65 20 3d 3d 20 | tate;..............if.(state.==. |
| c700 | 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6e 75 | null)..................return.nu |
| c720 | 6c 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 63 74 69 6f 6e 53 74 61 | ll;................var.actionSta |
| c740 | 74 65 50 74 72 20 3d 20 26 73 74 61 74 65 2e 61 63 74 69 6f 6e 53 74 61 74 65 73 5b 6d 5f 41 63 | tePtr.=.&state.actionStates[m_Ac |
| c760 | 74 69 6f 6e 49 6e 64 65 78 49 6e 53 74 61 74 65 5d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | tionIndexInState];.............. |
| c780 | 76 61 72 20 63 6f 6e 74 72 6f 6c 49 6e 64 65 78 20 3d 20 61 63 74 69 6f 6e 53 74 61 74 65 50 74 | var.controlIndex.=.actionStatePt |
| c7a0 | 72 2d 3e 63 6f 6e 74 72 6f 6c 49 6e 64 65 78 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 | r->controlIndex;..............if |
| c7c0 | 20 28 63 6f 6e 74 72 6f 6c 49 6e 64 65 78 20 21 3d 20 49 6e 70 75 74 41 63 74 69 6f 6e 53 74 61 | .(controlIndex.!=.InputActionSta |
| c7e0 | 74 65 2e 6b 49 6e 76 61 6c 69 64 49 6e 64 65 78 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | te.kInvalidIndex)............... |
| c800 | 20 20 20 72 65 74 75 72 6e 20 73 74 61 74 65 2e 52 65 61 64 56 61 6c 75 65 41 73 4f 62 6a 65 63 | ...return.state.ReadValueAsObjec |
| c820 | 74 28 61 63 74 69 6f 6e 53 74 61 74 65 50 74 72 2d 3e 62 69 6e 64 69 6e 67 49 6e 64 65 78 2c 20 | t(actionStatePtr->bindingIndex,. |
| c840 | 63 6f 6e 74 72 6f 6c 49 6e 64 65 78 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 | controlIndex);................re |
| c860 | 74 75 72 6e 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 | turn.null;..........}........... |
| c880 | 20 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 69 74 20 77 6f 75 6c 64 20 62 65 20 62 65 73 74 20 69 66 | .////REVIEW:.it.would.be.best.if |
| c8a0 | 20 74 68 65 73 65 20 77 65 72 65 20 49 6e 74 65 72 6e 65 64 53 74 72 69 6e 67 73 3b 20 68 6f 77 | .these.were.InternedStrings;.how |
| c8c0 | 65 76 65 72 2c 20 66 6f 72 20 73 65 72 69 61 6c 69 7a 61 74 69 6f 6e 2c 20 69 74 20 68 61 73 20 | ever,.for.serialization,.it.has. |
| c8e0 | 74 6f 20 62 65 20 73 74 72 69 6e 67 73 0d 0a 20 20 20 20 20 20 20 20 5b 54 6f 6f 6c 74 69 70 28 | to.be.strings..........[Tooltip( |
| c900 | 22 48 75 6d 61 6e 20 72 65 61 64 61 62 6c 65 20 6e 61 6d 65 20 6f 66 20 74 68 65 20 61 63 74 69 | "Human.readable.name.of.the.acti |
| c920 | 6f 6e 2e 20 4d 75 73 74 20 62 65 20 75 6e 69 71 75 65 20 77 69 74 68 69 6e 20 69 74 73 20 61 63 | on..Must.be.unique.within.its.ac |
| c940 | 74 69 6f 6e 20 6d 61 70 20 28 63 61 73 65 20 69 73 20 69 67 6e 6f 72 65 64 29 2e 20 43 61 6e 20 | tion.map.(case.is.ignored)..Can. |
| c960 | 62 65 20 63 68 61 6e 67 65 64 20 22 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2b 20 22 77 69 74 | be.changed."..............+."wit |
| c980 | 68 6f 75 74 20 62 72 65 61 6b 69 6e 67 20 72 65 66 65 72 65 6e 63 65 73 20 74 6f 20 74 68 65 20 | hout.breaking.references.to.the. |
| c9a0 | 61 63 74 69 6f 6e 2e 22 29 5d 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 | action.")]..........[SerializeFi |
| c9c0 | 65 6c 64 5d 20 69 6e 74 65 72 6e 61 6c 20 73 74 72 69 6e 67 20 6d 5f 4e 61 6d 65 3b 0d 0a 20 20 | eld].internal.string.m_Name;.... |
| c9e0 | 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 69 6e 74 65 72 6e 61 6c 20 | ......[SerializeField].internal. |
| ca00 | 49 6e 70 75 74 41 63 74 69 6f 6e 54 79 70 65 20 6d 5f 54 79 70 65 3b 0d 0a 20 20 20 20 20 20 20 | InputActionType.m_Type;......... |
| ca20 | 20 5b 46 6f 72 6d 65 72 6c 79 53 65 72 69 61 6c 69 7a 65 64 41 73 28 22 6d 5f 45 78 70 65 63 74 | .[FormerlySerializedAs("m_Expect |
| ca40 | 65 64 43 6f 6e 74 72 6f 6c 4c 61 79 6f 75 74 22 29 5d 0d 0a 20 20 20 20 20 20 20 20 5b 54 6f 6f | edControlLayout")]..........[Too |
| ca60 | 6c 74 69 70 28 22 54 79 70 65 20 6f 66 20 63 6f 6e 74 72 6f 6c 20 65 78 70 65 63 74 65 64 20 62 | ltip("Type.of.control.expected.b |
| ca80 | 79 20 74 68 65 20 61 63 74 69 6f 6e 20 28 65 2e 67 2e 20 5c 22 42 75 74 74 6f 6e 5c 22 20 6f 72 | y.the.action.(e.g..\"Button\".or |
| caa0 | 20 5c 22 53 74 69 63 6b 5c 22 29 2e 20 54 68 69 73 20 77 69 6c 6c 20 6c 69 6d 69 74 20 74 68 65 | .\"Stick\")..This.will.limit.the |
| cac0 | 20 63 6f 6e 74 72 6f 6c 73 20 73 68 6f 77 6e 20 22 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2b | .controls.shown."..............+ |
| cae0 | 20 22 77 68 65 6e 20 73 65 74 74 69 6e 67 20 75 70 20 62 69 6e 64 69 6e 67 73 20 69 6e 20 74 68 | ."when.setting.up.bindings.in.th |
| cb00 | 65 20 55 49 20 61 6e 64 20 77 69 6c 6c 20 61 6c 73 6f 20 6c 69 6d 69 74 20 77 68 69 63 68 20 63 | e.UI.and.will.also.limit.which.c |
| cb20 | 6f 6e 74 72 6f 6c 73 20 63 61 6e 20 62 65 20 62 6f 75 6e 64 20 69 6e 74 65 72 61 63 74 69 76 65 | ontrols.can.be.bound.interactive |
| cb40 | 6c 79 20 74 6f 20 74 68 65 20 61 63 74 69 6f 6e 2e 22 29 5d 0d 0a 20 20 20 20 20 20 20 20 5b 53 | ly.to.the.action.")]..........[S |
| cb60 | 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 69 6e 74 65 72 6e 61 6c 20 73 74 72 69 6e 67 20 6d | erializeField].internal.string.m |
| cb80 | 5f 45 78 70 65 63 74 65 64 43 6f 6e 74 72 6f 6c 54 79 70 65 3b 0d 0a 20 20 20 20 20 20 20 20 5b | _ExpectedControlType;..........[ |
| cba0 | 54 6f 6f 6c 74 69 70 28 22 55 6e 69 71 75 65 20 49 44 20 6f 66 20 74 68 65 20 61 63 74 69 6f 6e | Tooltip("Unique.ID.of.the.action |
| cbc0 | 20 28 47 55 49 44 29 2e 20 55 73 65 64 20 74 6f 20 72 65 66 65 72 65 6e 63 65 20 74 68 65 20 61 | .(GUID)..Used.to.reference.the.a |
| cbe0 | 63 74 69 6f 6e 20 66 72 6f 6d 20 62 69 6e 64 69 6e 67 73 20 73 75 63 68 20 74 68 61 74 20 61 63 | ction.from.bindings.such.that.ac |
| cc00 | 74 69 6f 6e 73 20 63 61 6e 20 62 65 20 72 65 6e 61 6d 65 64 20 22 0d 0a 20 20 20 20 20 20 20 20 | tions.can.be.renamed.".......... |
| cc20 | 20 20 20 20 2b 20 22 77 69 74 68 6f 75 74 20 62 72 65 61 6b 69 6e 67 20 72 65 66 65 72 65 6e 63 | ....+."without.breaking.referenc |
| cc40 | 65 73 2e 22 29 5d 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d | es.")]..........[SerializeField] |
| cc60 | 20 69 6e 74 65 72 6e 61 6c 20 73 74 72 69 6e 67 20 6d 5f 49 64 3b 20 2f 2f 20 43 61 6e 27 74 20 | .internal.string.m_Id;.//.Can't. |
| cc80 | 73 65 72 69 61 6c 69 7a 65 20 53 79 73 74 65 6d 2e 47 75 69 64 20 61 6e 64 20 55 6e 69 74 79 27 | serialize.System.Guid.and.Unity' |
| cca0 | 73 20 47 55 49 44 20 69 73 20 65 64 69 74 6f 72 20 6f 6e 6c 79 2e 0d 0a 20 20 20 20 20 20 20 20 | s.GUID.is.editor.only........... |
| ccc0 | 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 69 6e 74 65 72 6e 61 6c 20 73 74 72 69 6e 67 | [SerializeField].internal.string |
| cce0 | 20 6d 5f 50 72 6f 63 65 73 73 6f 72 73 3b 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 | .m_Processors;..........[Seriali |
| cd00 | 7a 65 46 69 65 6c 64 5d 20 69 6e 74 65 72 6e 61 6c 20 73 74 72 69 6e 67 20 6d 5f 49 6e 74 65 72 | zeField].internal.string.m_Inter |
| cd20 | 61 63 74 69 6f 6e 73 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 46 6f 72 20 73 69 6e 67 6c | actions;............//.For.singl |
| cd40 | 65 74 6f 6e 20 61 63 74 69 6f 6e 73 2c 20 77 65 20 73 65 72 69 61 6c 69 7a 65 20 74 68 65 20 62 | eton.actions,.we.serialize.the.b |
| cd60 | 69 6e 64 69 6e 67 73 20 64 69 72 65 63 74 6c 79 20 61 73 20 70 61 72 74 20 6f 66 20 74 68 65 20 | indings.directly.as.part.of.the. |
| cd80 | 61 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 46 6f 72 20 61 6e 79 20 6f 74 68 65 | action...........//.For.any.othe |
| cda0 | 72 20 74 79 70 65 20 6f 66 20 61 63 74 69 6f 6e 2c 20 74 68 69 73 20 69 73 20 6e 75 6c 6c 2e 0d | r.type.of.action,.this.is.null.. |
| cdc0 | 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 69 6e 74 65 72 6e | .........[SerializeField].intern |
| cde0 | 61 6c 20 49 6e 70 75 74 42 69 6e 64 69 6e 67 5b 5d 20 6d 5f 53 69 6e 67 6c 65 74 6f 6e 41 63 74 | al.InputBinding[].m_SingletonAct |
| ce00 | 69 6f 6e 42 69 6e 64 69 6e 67 73 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 | ionBindings;............[NonSeri |
| ce20 | 61 6c 69 7a 65 64 5d 20 69 6e 74 65 72 6e 61 6c 20 49 6e 70 75 74 42 69 6e 64 69 6e 67 3f 20 6d | alized].internal.InputBinding?.m |
| ce40 | 5f 42 69 6e 64 69 6e 67 4d 61 73 6b 3b 0d 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 | _BindingMask;..........[NonSeria |
| ce60 | 6c 69 7a 65 64 5d 20 69 6e 74 65 72 6e 61 6c 20 69 6e 74 20 6d 5f 42 69 6e 64 69 6e 67 73 53 74 | lized].internal.int.m_BindingsSt |
| ce80 | 61 72 74 49 6e 64 65 78 3b 0d 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 | artIndex;..........[NonSerialize |
| cea0 | 64 5d 20 69 6e 74 65 72 6e 61 6c 20 69 6e 74 20 6d 5f 42 69 6e 64 69 6e 67 73 43 6f 75 6e 74 3b | d].internal.int.m_BindingsCount; |
| cec0 | 0d 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 69 6e 74 65 72 6e | ..........[NonSerialized].intern |
| cee0 | 61 6c 20 69 6e 74 20 6d 5f 43 6f 6e 74 72 6f 6c 53 74 61 72 74 49 6e 64 65 78 3b 0d 0a 20 20 20 | al.int.m_ControlStartIndex;..... |
| cf00 | 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 69 6e 74 65 72 6e 61 6c 20 69 6e | .....[NonSerialized].internal.in |
| cf20 | 74 20 6d 5f 43 6f 6e 74 72 6f 6c 43 6f 75 6e 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | t.m_ControlCount;............/// |
| cf40 | 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 6e 64 65 78 20 6f 66 | .<summary>..........///.Index.of |
| cf60 | 20 74 68 65 20 61 63 74 69 6f 6e 20 69 6e 20 74 68 65 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e | .the.action.in.the.<see.cref="In |
| cf80 | 70 75 74 41 63 74 69 6f 6e 53 74 61 74 65 22 2f 3e 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 | putActionState"/>.associated.wit |
| cfa0 | 68 20 74 68 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 63 74 69 6f 6e 27 73 20 3c 73 65 65 | h.the..........///.action's.<see |
| cfc0 | 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 22 2f 3e 2e 0d 0a 20 20 20 20 20 | .cref="InputActionMap"/>........ |
| cfe0 | 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c | ...///.</summary>..........///.< |
| d000 | 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 69 73 20 69 73 20 6e 6f | remarks>..........///.This.is.no |
| d020 | 74 20 6e 65 63 65 73 73 61 72 69 6c 79 20 74 68 65 20 73 61 6d 65 20 61 73 20 74 68 65 20 69 6e | t.necessarily.the.same.as.the.in |
| d040 | 64 65 78 20 6f 66 20 74 68 65 20 61 63 74 69 6f 6e 20 69 6e 20 69 74 73 20 6d 61 70 2e 0d 0a 20 | dex.of.the.action.in.its.map.... |
| d060 | 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f | .......///.</remarks>........../ |
| d080 | 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 61 63 74 69 6f 6e 4d 61 70 22 2f 3e 0d 0a | //.<seealso.cref="actionMap"/>.. |
| d0a0 | 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 69 6e 74 65 72 6e 61 6c | ........[NonSerialized].internal |
| d0c0 | 20 69 6e 74 20 6d 5f 41 63 74 69 6f 6e 49 6e 64 65 78 49 6e 53 74 61 74 65 20 3d 20 49 6e 70 75 | .int.m_ActionIndexInState.=.Inpu |
| d0e0 | 74 41 63 74 69 6f 6e 53 74 61 74 65 2e 6b 49 6e 76 61 6c 69 64 49 6e 64 65 78 3b 0d 0a 0d 0a 20 | tActionState.kInvalidIndex;..... |
| d100 | 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f | .......///.<summary>..........// |
| d120 | 2f 20 54 68 65 20 61 63 74 69 6f 6e 20 6d 61 70 20 74 68 61 74 20 6f 77 6e 73 20 74 68 65 20 61 | /.The.action.map.that.owns.the.a |
| d140 | 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a | ction...........///.</summary>.. |
| d160 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f | ........///.<remarks>........../ |
| d180 | 2f 2f 20 54 68 69 73 20 69 73 20 6e 6f 74 20 73 65 72 69 61 6c 69 7a 65 64 2e 20 54 68 65 20 61 | //.This.is.not.serialized..The.a |
| d1a0 | 63 74 69 6f 6e 20 6d 61 70 20 77 69 6c 6c 20 72 65 73 74 6f 72 65 20 74 68 69 73 20 62 61 63 6b | ction.map.will.restore.this.back |
| d1c0 | 20 72 65 66 65 72 65 6e 63 65 73 20 61 66 74 65 72 20 64 65 73 65 72 69 61 6c 69 7a 61 74 69 6f | .references.after.deserializatio |
| d1e0 | 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 | n...........///.</remarks>...... |
| d200 | 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 69 6e 74 65 72 6e 61 6c 20 49 6e 70 | ....[NonSerialized].internal.Inp |
| d220 | 75 74 41 63 74 69 6f 6e 4d 61 70 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 3b 0d 0a 0d 0a 20 20 20 20 | utActionMap.m_ActionMap;........ |
| d240 | 20 20 20 20 2f 2f 20 4c 69 73 74 65 6e 65 72 73 2e 20 4e 6f 20 61 72 72 61 79 20 61 6c 6c 6f 63 | ....//.Listeners..No.array.alloc |
| d260 | 61 74 69 6f 6e 73 20 69 66 20 6f 6e 6c 79 20 61 20 73 69 6e 67 6c 65 20 6c 69 73 74 65 6e 65 72 | ations.if.only.a.single.listener |
| d280 | 2e 0d 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 69 6e 74 65 72 | ...........[NonSerialized].inter |
| d2a0 | 6e 61 6c 20 49 6e 6c 69 6e 65 64 41 72 72 61 79 3c 41 63 74 69 6f 6e 3c 43 61 6c 6c 62 61 63 6b | nal.InlinedArray<Action<Callback |
| d2c0 | 43 6f 6e 74 65 78 74 3e 3e 20 6d 5f 4f 6e 53 74 61 72 74 65 64 3b 0d 0a 20 20 20 20 20 20 20 20 | Context>>.m_OnStarted;.......... |
| d2e0 | 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 69 6e 74 65 72 6e 61 6c 20 49 6e 6c 69 6e 65 64 | [NonSerialized].internal.Inlined |
| d300 | 41 72 72 61 79 3c 41 63 74 69 6f 6e 3c 43 61 6c 6c 62 61 63 6b 43 6f 6e 74 65 78 74 3e 3e 20 6d | Array<Action<CallbackContext>>.m |
| d320 | 5f 4f 6e 43 61 6e 63 65 6c 65 64 3b 0d 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c | _OnCanceled;..........[NonSerial |
| d340 | 69 7a 65 64 5d 20 69 6e 74 65 72 6e 61 6c 20 49 6e 6c 69 6e 65 64 41 72 72 61 79 3c 41 63 74 69 | ized].internal.InlinedArray<Acti |
| d360 | 6f 6e 3c 43 61 6c 6c 62 61 63 6b 43 6f 6e 74 65 78 74 3e 3e 20 6d 5f 4f 6e 50 65 72 66 6f 72 6d | on<CallbackContext>>.m_OnPerform |
| d380 | 65 64 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 | ed;............///.<summary>.... |
| d3a0 | 20 20 20 20 20 20 2f 2f 2f 20 57 68 65 74 68 65 72 20 74 68 65 20 61 63 74 69 6f 6e 20 69 73 20 | ......///.Whether.the.action.is. |
| d3c0 | 61 20 6c 6f 6f 73 65 20 61 63 74 69 6f 6e 20 63 72 65 61 74 65 64 20 69 6e 20 63 6f 64 65 20 28 | a.loose.action.created.in.code.( |
| d3e0 | 65 2e 67 2e 20 61 73 20 61 20 70 72 6f 70 65 72 74 79 20 6f 6e 20 61 20 63 6f 6d 70 6f 6e 65 6e | e.g..as.a.property.on.a.componen |
| d400 | 74 29 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 | t)...........///.</summary>..... |
| d420 | 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | .....///.<remarks>..........///. |
| d440 | 53 69 6e 67 6c 65 74 6f 6e 20 61 63 74 69 6f 6e 73 20 61 72 65 20 6e 6f 74 20 63 6f 6e 74 61 69 | Singleton.actions.are.not.contai |
| d460 | 6e 65 64 20 69 6e 20 6d 61 70 73 20 76 69 73 69 62 6c 65 20 74 6f 20 74 68 65 20 75 73 65 72 2e | ned.in.maps.visible.to.the.user. |
| d480 | 20 49 6e 74 65 72 6e 61 6c 6c 79 2c 20 77 65 20 64 6f 20 63 72 65 61 74 65 0d 0a 20 20 20 20 20 | .Internally,.we.do.create....... |
| d4a0 | 20 20 20 2f 2f 2f 20 61 20 6d 61 70 20 66 6f 72 20 74 68 65 6d 20 74 68 61 74 20 63 6f 6e 74 61 | ...///.a.map.for.them.that.conta |
| d4c0 | 69 6e 73 20 6a 75 73 74 20 74 68 65 20 73 69 6e 67 6c 65 74 6f 6e 20 61 63 74 69 6f 6e 2e 20 54 | ins.just.the.singleton.action..T |
| d4e0 | 6f 20 74 68 65 20 61 63 74 69 6f 6e 20 73 79 73 74 65 6d 2c 20 74 68 65 72 65 20 61 72 65 20 6e | o.the.action.system,.there.are.n |
| d500 | 6f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 63 74 69 6f 6e 73 20 77 69 74 68 6f 75 74 20 61 | o..........///.actions.without.a |
| d520 | 63 74 69 6f 6e 20 6d 61 70 73 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 | ction.maps...........///.</remar |
| d540 | 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 62 6f 6f 6c 20 69 73 53 69 6e | ks>..........internal.bool.isSin |
| d560 | 67 6c 65 74 6f 6e 41 63 74 69 6f 6e 20 3d 3e 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 20 3d 3d 20 6e | gletonAction.=>.m_ActionMap.==.n |
| d580 | 75 6c 6c 20 7c 7c 20 52 65 66 65 72 65 6e 63 65 45 71 75 61 6c 73 28 6d 5f 41 63 74 69 6f 6e 4d | ull.||.ReferenceEquals(m_ActionM |
| d5a0 | 61 70 2e 6d 5f 53 69 6e 67 6c 65 74 6f 6e 41 63 74 69 6f 6e 2c 20 74 68 69 73 29 3b 0d 0a 0d 0a | ap.m_SingletonAction,.this);.... |
| d5c0 | 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 49 6e 70 75 74 41 63 74 69 6f 6e 53 74 61 74 65 | ........private.InputActionState |
| d5e0 | 2e 54 72 69 67 67 65 72 53 74 61 74 65 20 63 75 72 72 65 6e 74 53 74 61 74 65 0d 0a 20 20 20 20 | .TriggerState.currentState...... |
| d600 | 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 0d 0a 20 20 20 20 20 20 20 20 | ....{..............get.......... |
| d620 | 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 41 63 74 | ....{..................if.(m_Act |
| d640 | 69 6f 6e 49 6e 64 65 78 49 6e 53 74 61 74 65 20 3d 3d 20 49 6e 70 75 74 41 63 74 69 6f 6e 53 74 | ionIndexInState.==.InputActionSt |
| d660 | 61 74 65 2e 6b 49 6e 76 61 6c 69 64 49 6e 64 65 78 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | ate.kInvalidIndex).............. |
| d680 | 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6e 65 77 20 49 6e 70 75 74 41 63 74 69 6f 6e 53 74 | ........return.new.InputActionSt |
| d6a0 | 61 74 65 2e 54 72 69 67 67 65 72 53 74 61 74 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | ate.TriggerState();............. |
| d6c0 | 20 20 20 20 20 44 65 62 75 67 2e 41 73 73 65 72 74 28 6d 5f 41 63 74 69 6f 6e 4d 61 70 20 21 3d | .....Debug.Assert(m_ActionMap.!= |
| d6e0 | 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 65 62 75 67 2e 41 | .null);..................Debug.A |
| d700 | 73 73 65 72 74 28 6d 5f 41 63 74 69 6f 6e 4d 61 70 2e 6d 5f 53 74 61 74 65 20 21 3d 20 6e 75 6c | ssert(m_ActionMap.m_State.!=.nul |
| d720 | 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6d 5f 41 63 | l);..................return.m_Ac |
| d740 | 74 69 6f 6e 4d 61 70 2e 6d 5f 53 74 61 74 65 2e 46 65 74 63 68 41 63 74 69 6f 6e 53 74 61 74 65 | tionMap.m_State.FetchActionState |
| d760 | 28 74 68 69 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 | (this);..............}.......... |
| d780 | 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 73 74 72 69 6e 67 20 4d 61 6b | }............internal.string.Mak |
| d7a0 | 65 53 75 72 65 49 64 49 73 49 6e 50 6c 61 63 65 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 | eSureIdIsInPlace()..........{... |
| d7c0 | 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d | ...........if.(string.IsNullOrEm |
| d7e0 | 70 74 79 28 6d 5f 49 64 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 65 6e 65 | pty(m_Id))..................Gene |
| d800 | 72 61 74 65 49 64 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6d 5f | rateId();..............return.m_ |
| d820 | 49 64 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e | Id;..........}............intern |
| d840 | 61 6c 20 76 6f 69 64 20 47 65 6e 65 72 61 74 65 49 64 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d | al.void.GenerateId()..........{. |
| d860 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 49 64 20 3d 20 47 75 69 64 2e 4e 65 77 47 75 69 64 | .............m_Id.=.Guid.NewGuid |
| d880 | 28 29 2e 54 6f 53 74 72 69 6e 67 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 | ().ToString();..........}....... |
| d8a0 | 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 20 47 65 74 | .....internal.InputActionMap.Get |
| d8c0 | 4f 72 43 72 65 61 74 65 41 63 74 69 6f 6e 4d 61 70 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a | OrCreateActionMap()..........{.. |
| d8e0 | 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 41 63 74 69 6f 6e 4d 61 70 20 3d 3d 20 6e | ............if.(m_ActionMap.==.n |
| d900 | 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 43 72 65 61 74 65 49 6e 74 65 | ull)..................CreateInte |
| d920 | 72 6e 61 6c 41 63 74 69 6f 6e 4d 61 70 46 6f 72 53 69 6e 67 6c 65 74 6f 6e 41 63 74 69 6f 6e 28 | rnalActionMapForSingletonAction( |
| d940 | 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6d 5f 41 63 74 69 6f 6e 4d | );..............return.m_ActionM |
| d960 | 61 70 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 | ap;..........}............privat |
| d980 | 65 20 76 6f 69 64 20 43 72 65 61 74 65 49 6e 74 65 72 6e 61 6c 41 63 74 69 6f 6e 4d 61 70 46 6f | e.void.CreateInternalActionMapFo |
| d9a0 | 72 53 69 6e 67 6c 65 74 6f 6e 41 63 74 69 6f 6e 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 | rSingletonAction()..........{... |
| d9c0 | 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 20 3d 20 6e 65 77 20 49 6e 70 | ...........m_ActionMap.=.new.Inp |
| d9e0 | 75 74 41 63 74 69 6f 6e 4d 61 70 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 | utActionMap..............{...... |
| da00 | 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e 73 20 3d 20 6e 65 77 5b 5d 20 7b 20 | ............m_Actions.=.new[].{. |
| da20 | 74 68 69 73 20 7d 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 69 6e 67 6c | this.},..................m_Singl |
| da40 | 65 74 6f 6e 41 63 74 69 6f 6e 20 3d 20 74 68 69 73 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | etonAction.=.this,.............. |
| da60 | 20 20 20 20 6d 5f 42 69 6e 64 69 6e 67 73 20 3d 20 6d 5f 53 69 6e 67 6c 65 74 6f 6e 41 63 74 69 | ....m_Bindings.=.m_SingletonActi |
| da80 | 6f 6e 42 69 6e 64 69 6e 67 73 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 3b 0d 0a 20 20 20 20 | onBindings..............};...... |
| daa0 | 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 49 6e 70 75 74 42 | ....}............internal.InputB |
| dac0 | 69 6e 64 69 6e 67 3f 20 46 69 6e 64 45 66 66 65 63 74 69 76 65 42 69 6e 64 69 6e 67 4d 61 73 6b | inding?.FindEffectiveBindingMask |
| dae0 | 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d | ()..........{..............if.(m |
| db00 | 5f 42 69 6e 64 69 6e 67 4d 61 73 6b 2e 48 61 73 56 61 6c 75 65 29 0d 0a 20 20 20 20 20 20 20 20 | _BindingMask.HasValue).......... |
| db20 | 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6d 5f 42 69 6e 64 69 6e 67 4d 61 73 6b 3b 0d 0a 0d | ........return.m_BindingMask;... |
| db40 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 41 63 74 69 6f 6e 4d 61 70 3f 2e 6d 5f | .............if.(m_ActionMap?.m_ |
| db60 | 42 69 6e 64 69 6e 67 4d 61 73 6b 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 | BindingMask.!=.null)............ |
| db80 | 20 20 20 20 20 20 72 65 74 75 72 6e 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 2e 6d 5f 42 69 6e 64 69 | ......return.m_ActionMap.m_Bindi |
| dba0 | 6e 67 4d 61 73 6b 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6d 5f | ngMask;................return.m_ |
| dbc0 | 41 63 74 69 6f 6e 4d 61 70 3f 2e 6d 5f 41 73 73 65 74 3f 2e 6d 5f 42 69 6e 64 69 6e 67 4d 61 73 | ActionMap?.m_Asset?.m_BindingMas |
| dbe0 | 6b 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 | k;..........}............interna |
| dc00 | 6c 20 69 6e 74 20 42 69 6e 64 69 6e 67 49 6e 64 65 78 4f 6e 41 63 74 69 6f 6e 54 6f 42 69 6e 64 | l.int.BindingIndexOnActionToBind |
| dc20 | 69 6e 67 49 6e 64 65 78 4f 6e 4d 61 70 28 69 6e 74 20 69 6e 64 65 78 4f 66 42 69 6e 64 69 6e 67 | ingIndexOnMap(int.indexOfBinding |
| dc40 | 4f 6e 41 63 74 69 6f 6e 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 | OnAction)..........{............ |
| dc60 | 20 20 2f 2f 20 57 65 20 64 6f 6e 27 74 20 77 61 6e 74 20 74 6f 20 68 69 74 20 49 6e 70 75 74 41 | ..//.We.don't.want.to.hit.InputA |
| dc80 | 63 74 69 6f 6e 2e 62 69 6e 64 69 6e 67 73 20 68 65 72 65 20 61 73 20 74 68 69 73 20 72 65 71 75 | ction.bindings.here.as.this.requ |
| dca0 | 69 72 65 73 20 73 65 74 74 69 6e 67 20 75 70 20 70 65 72 2d 61 63 74 69 6f 6e 0d 0a 20 20 20 20 | ires.setting.up.per-action...... |
| dcc0 | 20 20 20 20 20 20 20 20 2f 2f 20 62 69 6e 64 69 6e 67 20 69 6e 66 6f 20 77 68 69 63 68 20 77 65 | ........//.binding.info.which.we |
| dce0 | 20 74 68 65 6e 20 6e 75 6b 65 20 61 73 20 70 61 72 74 20 6f 66 20 74 68 65 20 6f 76 65 72 72 69 | .then.nuke.as.part.of.the.overri |
| dd00 | 64 65 20 70 72 6f 63 65 73 73 2e 20 43 61 6c 6c 69 6e 67 20 41 70 70 6c 79 42 69 6e 64 69 6e 67 | de.process..Calling.ApplyBinding |
| dd20 | 4f 76 65 72 72 69 64 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 72 65 70 65 61 74 65 | Override..............//.repeate |
| dd40 | 64 6c 79 20 77 69 74 68 20 61 6e 20 69 6e 64 65 78 20 77 6f 75 6c 64 20 74 68 75 73 20 63 61 75 | dly.with.an.index.would.thus.cau |
| dd60 | 73 65 20 74 68 65 20 73 61 6d 65 20 64 61 74 61 20 74 6f 20 62 65 20 63 6f 6d 70 75 74 65 64 20 | se.the.same.data.to.be.computed. |
| dd80 | 61 6e 64 20 74 68 72 6f 77 6e 20 61 77 61 79 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 | and.thrown.away..............//. |
| dda0 | 6f 76 65 72 20 61 6e 64 20 6f 76 65 72 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 49 | over.and.over...............//.I |
| ddc0 | 6e 73 74 65 61 64 20 77 65 20 6d 61 6e 75 61 6c 6c 79 20 73 65 61 72 63 68 20 74 68 72 6f 75 67 | nstead.we.manually.search.throug |
| dde0 | 68 20 74 68 65 20 6d 61 70 27 73 20 62 69 6e 64 69 6e 67 73 20 74 6f 20 66 69 6e 64 20 74 68 65 | h.the.map's.bindings.to.find.the |
| de00 | 20 72 69 67 68 74 20 62 69 6e 64 69 6e 67 20 69 6e 64 65 78 0d 0a 20 20 20 20 20 20 20 20 20 20 | .right.binding.index............ |
| de20 | 20 20 2f 2f 20 69 6e 20 74 68 65 20 6d 61 70 2e 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | ..//.in.the.map................. |
| de40 | 76 61 72 20 61 63 74 69 6f 6e 4d 61 70 20 3d 20 47 65 74 4f 72 43 72 65 61 74 65 41 63 74 69 6f | var.actionMap.=.GetOrCreateActio |
| de60 | 6e 4d 61 70 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 62 69 6e 64 69 6e 67 | nMap();..............var.binding |
| de80 | 73 49 6e 4d 61 70 20 3d 20 61 63 74 69 6f 6e 4d 61 70 2e 6d 5f 42 69 6e 64 69 6e 67 73 3b 0d 0a | sInMap.=.actionMap.m_Bindings;.. |
| dea0 | 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 62 69 6e 64 69 6e 67 43 6f 75 6e 74 49 6e 4d 61 | ............var.bindingCountInMa |
| dec0 | 70 20 3d 20 62 69 6e 64 69 6e 67 73 49 6e 4d 61 70 2e 4c 65 6e 67 74 68 53 61 66 65 28 29 3b 0d | p.=.bindingsInMap.LengthSafe();. |
| dee0 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 63 74 69 6f 6e 4e 61 6d 65 20 3d 20 6e 61 | .............var.actionName.=.na |
| df00 | 6d 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 75 72 72 65 6e 74 42 69 | me;................var.currentBi |
| df20 | 6e 64 69 6e 67 49 6e 64 65 78 4f 6e 41 63 74 69 6f 6e 20 3d 20 2d 31 3b 0d 0a 20 20 20 20 20 20 | ndingIndexOnAction.=.-1;........ |
| df40 | 20 20 20 20 20 20 66 6f 72 20 28 76 61 72 20 69 20 3d 20 30 3b 20 69 20 3c 20 62 69 6e 64 69 6e | ......for.(var.i.=.0;.i.<.bindin |
| df60 | 67 43 6f 75 6e 74 49 6e 4d 61 70 3b 20 2b 2b 69 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b | gCountInMap;.++i)..............{ |
| df80 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 66 20 76 61 72 20 62 69 6e 64 69 6e | ..................ref.var.bindin |
| dfa0 | 67 20 3d 20 72 65 66 20 62 69 6e 64 69 6e 67 73 49 6e 4d 61 70 5b 69 5d 3b 0d 0a 0d 0a 20 20 20 | g.=.ref.bindingsInMap[i];....... |
| dfc0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4d 61 74 63 68 20 62 6f 74 68 20 6e 61 6d 65 20 | .............//.Match.both.name. |
| dfe0 | 61 6e 64 20 49 44 20 6f 6e 20 62 69 6e 64 69 6e 67 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | and.ID.on.binding............... |
| e000 | 20 20 20 20 69 66 20 28 73 74 72 69 6e 67 2e 43 6f 6d 70 61 72 65 28 62 69 6e 64 69 6e 67 2e 61 | ....if.(string.Compare(binding.a |
| e020 | 63 74 69 6f 6e 2c 20 61 63 74 69 6f 6e 4e 61 6d 65 2c 20 53 74 72 69 6e 67 43 6f 6d 70 61 72 69 | ction,.actionName,.StringCompari |
| e040 | 73 6f 6e 2e 49 6e 76 61 72 69 61 6e 74 43 75 6c 74 75 72 65 49 67 6e 6f 72 65 43 61 73 65 29 20 | son.InvariantCultureIgnoreCase). |
| e060 | 21 3d 20 30 20 26 26 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 69 6e | !=.0.&&......................bin |
| e080 | 64 69 6e 67 2e 61 63 74 69 6f 6e 20 21 3d 20 6d 5f 49 64 29 0d 0a 20 20 20 20 20 20 20 20 20 20 | ding.action.!=.m_Id)............ |
| e0a0 | 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 69 6e 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 | ..........continue;............. |
| e0c0 | 20 20 20 20 20 20 20 2b 2b 63 75 72 72 65 6e 74 42 69 6e 64 69 6e 67 49 6e 64 65 78 4f 6e 41 63 | .......++currentBindingIndexOnAc |
| e0e0 | 74 69 6f 6e 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 75 72 72 65 | tion;..................if.(curre |
| e100 | 6e 74 42 69 6e 64 69 6e 67 49 6e 64 65 78 4f 6e 41 63 74 69 6f 6e 20 3d 3d 20 69 6e 64 65 78 4f | ntBindingIndexOnAction.==.indexO |
| e120 | 66 42 69 6e 64 69 6e 67 4f 6e 41 63 74 69 6f 6e 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | fBindingOnAction)............... |
| e140 | 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 69 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d | .......return.i;..............}. |
| e160 | 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 68 72 6f 77 20 6e 65 77 20 41 72 67 75 6d 65 6e | ...............throw.new.Argumen |
| e180 | 74 4f 75 74 4f 66 52 61 6e 67 65 45 78 63 65 70 74 69 6f 6e 28 6e 61 6d 65 6f 66 28 69 6e 64 65 | tOutOfRangeException(nameof(inde |
| e1a0 | 78 4f 66 42 69 6e 64 69 6e 67 4f 6e 41 63 74 69 6f 6e 29 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 | xOfBindingOnAction),............ |
| e1c0 | 20 20 20 20 20 20 24 22 42 69 6e 64 69 6e 67 20 69 6e 64 65 78 20 7b 69 6e 64 65 78 4f 66 42 69 | ......$"Binding.index.{indexOfBi |
| e1e0 | 6e 64 69 6e 67 4f 6e 41 63 74 69 6f 6e 7d 20 69 73 20 6f 75 74 20 6f 66 20 72 61 6e 67 65 20 66 | ndingOnAction}.is.out.of.range.f |
| e200 | 6f 72 20 61 63 74 69 6f 6e 20 27 7b 74 68 69 73 7d 27 20 77 69 74 68 20 7b 63 75 72 72 65 6e 74 | or.action.'{this}'.with.{current |
| e220 | 42 69 6e 64 69 6e 67 49 6e 64 65 78 4f 6e 41 63 74 69 6f 6e 20 2b 20 31 7d 20 62 69 6e 64 69 6e | BindingIndexOnAction.+.1}.bindin |
| e240 | 67 73 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 | gs");..........}............inte |
| e260 | 72 6e 61 6c 20 69 6e 74 20 42 69 6e 64 69 6e 67 49 6e 64 65 78 4f 6e 4d 61 70 54 6f 42 69 6e 64 | rnal.int.BindingIndexOnMapToBind |
| e280 | 69 6e 67 49 6e 64 65 78 4f 6e 41 63 74 69 6f 6e 28 69 6e 74 20 69 6e 64 65 78 4f 66 42 69 6e 64 | ingIndexOnAction(int.indexOfBind |
| e2a0 | 69 6e 67 4f 6e 4d 61 70 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 | ingOnMap)..........{............ |
| e2c0 | 20 20 76 61 72 20 61 63 74 69 6f 6e 4d 61 70 20 3d 20 47 65 74 4f 72 43 72 65 61 74 65 41 63 74 | ..var.actionMap.=.GetOrCreateAct |
| e2e0 | 69 6f 6e 4d 61 70 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 62 69 6e 64 69 | ionMap();..............var.bindi |
| e300 | 6e 67 73 49 6e 4d 61 70 20 3d 20 61 63 74 69 6f 6e 4d 61 70 2e 6d 5f 42 69 6e 64 69 6e 67 73 3b | ngsInMap.=.actionMap.m_Bindings; |
| e320 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 63 74 69 6f 6e 4e 61 6d 65 20 3d 20 6e | ..............var.actionName.=.n |
| e340 | 61 6d 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 62 69 6e 64 69 6e 67 49 | ame;................var.bindingI |
| e360 | 6e 64 65 78 4f 6e 41 63 74 69 6f 6e 20 3d 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 | ndexOnAction.=.0;..............f |
| e380 | 6f 72 20 28 76 61 72 20 69 20 3d 20 69 6e 64 65 78 4f 66 42 69 6e 64 69 6e 67 4f 6e 4d 61 70 20 | or.(var.i.=.indexOfBindingOnMap. |
| e3a0 | 2d 20 31 3b 20 69 20 3e 3d 20 30 3b 20 2d 2d 69 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b | -.1;.i.>=.0;.--i)..............{ |
| e3c0 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 66 20 76 61 72 20 62 69 6e 64 69 6e | ..................ref.var.bindin |
| e3e0 | 67 20 3d 20 72 65 66 20 62 69 6e 64 69 6e 67 73 49 6e 4d 61 70 5b 69 5d 3b 0d 0a 0d 0a 20 20 20 | g.=.ref.bindingsInMap[i];....... |
| e400 | 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 74 72 69 6e 67 2e 43 6f 6d 70 61 72 65 28 | .............if.(string.Compare( |
| e420 | 62 69 6e 64 69 6e 67 2e 61 63 74 69 6f 6e 2c 20 61 63 74 69 6f 6e 4e 61 6d 65 2c 20 53 74 72 69 | binding.action,.actionName,.Stri |
| e440 | 6e 67 43 6f 6d 70 61 72 69 73 6f 6e 2e 49 6e 76 61 72 69 61 6e 74 43 75 6c 74 75 72 65 49 67 6e | ngComparison.InvariantCultureIgn |
| e460 | 6f 72 65 43 61 73 65 29 20 3d 3d 20 30 20 7c 7c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | oreCase).==.0.||................ |
| e480 | 20 20 20 20 20 20 62 69 6e 64 69 6e 67 2e 61 63 74 69 6f 6e 20 3d 3d 20 6d 5f 49 64 29 0d 0a 20 | ......binding.action.==.m_Id)... |
| e4a0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2b 2b 62 69 6e 64 69 6e 67 49 6e 64 65 | ...................++bindingInde |
| e4c0 | 78 4f 6e 41 63 74 69 6f 6e 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 | xOnAction;..............}....... |
| e4e0 | 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 62 69 6e 64 69 6e 67 49 6e 64 65 78 4f 6e 41 63 | .........return.bindingIndexOnAc |
| e500 | 74 69 6f 6e 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 2f | tion;..........}............//// |
| e520 | 54 4f 44 4f 3a 20 6d 61 6b 65 20 63 75 72 72 65 6e 74 20 65 76 65 6e 74 20 61 76 61 69 6c 61 62 | TODO:.make.current.event.availab |
| e540 | 6c 65 20 69 6e 20 73 6f 6d 65 20 66 6f 72 6d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c | le.in.some.form............///.< |
| e560 | 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 6e 66 6f 72 6d 61 74 69 6f | summary>..........///.Informatio |
| e580 | 6e 20 70 72 6f 76 69 64 65 64 20 74 6f 20 61 63 74 69 6f 6e 20 63 61 6c 6c 62 61 63 6b 73 20 61 | n.provided.to.action.callbacks.a |
| e5a0 | 62 6f 75 74 20 77 68 61 74 20 74 72 69 67 67 65 72 65 64 20 61 6e 20 61 63 74 69 6f 6e 2e 0d 0a | bout.what.triggered.an.action... |
| e5c0 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 | ........///.</summary>.......... |
| e5e0 | 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 69 73 20 | ///.<remarks>..........///.This. |
| e600 | 73 74 72 75 63 74 20 73 68 6f 75 6c 64 20 6e 6f 74 20 62 65 20 68 65 6c 64 20 6f 6e 20 74 6f 20 | struct.should.not.be.held.on.to. |
| e620 | 70 61 73 74 20 74 68 65 20 64 75 72 61 74 69 6f 6e 20 6f 66 20 74 68 65 20 63 61 6c 6c 62 61 63 | past.the.duration.of.the.callbac |
| e640 | 6b 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 | k...........///.</remarks>...... |
| e660 | 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 70 65 72 66 6f 72 6d 65 64 | ....///.<seealso.cref="performed |
| e680 | 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 | "/>..........///.<seealso.cref=" |
| e6a0 | 73 74 61 72 74 65 64 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f | started"/>..........///.<seealso |
| e6c0 | 20 63 72 65 66 3d 22 63 61 6e 63 65 6c 65 64 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | .cref="canceled"/>..........///. |
| e6e0 | 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 2e 61 63 | <seealso.cref="InputActionMap.ac |
| e700 | 74 69 6f 6e 54 72 69 67 67 65 72 65 64 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 | tionTriggered"/>..........public |
| e720 | 20 73 74 72 75 63 74 20 43 61 6c 6c 62 61 63 6b 43 6f 6e 74 65 78 74 20 2f 2f 20 49 64 65 61 6c | .struct.CallbackContext.//.Ideal |
| e740 | 6c 79 20 77 6f 75 6c 64 20 62 65 20 61 20 72 65 66 20 73 74 72 75 63 74 20 62 75 74 20 63 6f 75 | ly.would.be.a.ref.struct.but.cou |
| e760 | 6c 64 6e 27 74 20 75 73 65 20 69 74 20 69 6e 20 6c 61 6d 62 64 61 73 20 74 68 65 6e 2e 0d 0a 20 | ldn't.use.it.in.lambdas.then.... |
| e780 | 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 49 | .......{..............internal.I |
| e7a0 | 6e 70 75 74 41 63 74 69 6f 6e 53 74 61 74 65 20 6d 5f 53 74 61 74 65 3b 0d 0a 20 20 20 20 20 20 | nputActionState.m_State;........ |
| e7c0 | 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 69 6e 74 20 6d 5f 41 63 74 69 6f 6e 49 6e 64 65 78 | ......internal.int.m_ActionIndex |
| e7e0 | 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 74 68 65 | ;................////REVIEW:.the |
| e800 | 72 65 20 73 68 6f 75 6c 64 20 70 72 6f 62 61 62 6c 79 20 62 65 20 61 20 6d 65 63 68 61 6e 69 73 | re.should.probably.be.a.mechanis |
| e820 | 6d 20 66 6f 72 20 74 68 65 20 75 73 65 72 20 74 6f 20 62 65 20 61 62 6c 65 20 74 6f 20 63 6f 72 | m.for.the.user.to.be.able.to.cor |
| e840 | 72 65 6c 61 74 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 20 20 20 20 20 20 20 20 | relate..............////........ |
| e860 | 74 68 65 20 63 61 6c 6c 62 61 63 6b 20 74 6f 20 61 20 73 70 65 63 69 66 69 63 20 62 69 6e 64 69 | the.callback.to.a.specific.bindi |
| e880 | 6e 67 20 6f 6e 20 74 68 65 20 61 63 74 69 6f 6e 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | ng.on.the.action................ |
| e8a0 | 70 72 69 76 61 74 65 20 69 6e 74 20 61 63 74 69 6f 6e 49 6e 64 65 78 20 3d 3e 20 6d 5f 41 63 74 | private.int.actionIndex.=>.m_Act |
| e8c0 | 69 6f 6e 49 6e 64 65 78 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 75 | ionIndex;..............private.u |
| e8e0 | 6e 73 61 66 65 20 69 6e 74 20 62 69 6e 64 69 6e 67 49 6e 64 65 78 20 3d 3e 20 6d 5f 53 74 61 74 | nsafe.int.bindingIndex.=>.m_Stat |
| e900 | 65 2e 61 63 74 69 6f 6e 53 74 61 74 65 73 5b 61 63 74 69 6f 6e 49 6e 64 65 78 5d 2e 62 69 6e 64 | e.actionStates[actionIndex].bind |
| e920 | 69 6e 67 49 6e 64 65 78 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 75 | ingIndex;..............private.u |
| e940 | 6e 73 61 66 65 20 69 6e 74 20 63 6f 6e 74 72 6f 6c 49 6e 64 65 78 20 3d 3e 20 6d 5f 53 74 61 74 | nsafe.int.controlIndex.=>.m_Stat |
| e960 | 65 2e 61 63 74 69 6f 6e 53 74 61 74 65 73 5b 61 63 74 69 6f 6e 49 6e 64 65 78 5d 2e 63 6f 6e 74 | e.actionStates[actionIndex].cont |
| e980 | 72 6f 6c 49 6e 64 65 78 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 75 | rolIndex;..............private.u |
| e9a0 | 6e 73 61 66 65 20 69 6e 74 20 69 6e 74 65 72 61 63 74 69 6f 6e 49 6e 64 65 78 20 3d 3e 20 6d 5f | nsafe.int.interactionIndex.=>.m_ |
| e9c0 | 53 74 61 74 65 2e 61 63 74 69 6f 6e 53 74 61 74 65 73 5b 61 63 74 69 6f 6e 49 6e 64 65 78 5d 2e | State.actionStates[actionIndex]. |
| e9e0 | 69 6e 74 65 72 61 63 74 69 6f 6e 49 6e 64 65 78 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | interactionIndex;............... |
| ea00 | 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 | .///.<summary>..............///. |
| ea20 | 43 75 72 72 65 6e 74 20 70 68 61 73 65 20 6f 66 20 74 68 65 20 61 63 74 69 6f 6e 2e 20 45 71 75 | Current.phase.of.the.action..Equ |
| ea40 | 69 76 61 6c 65 6e 74 20 74 6f 20 61 63 63 65 73 73 69 6e 67 20 3c 73 65 65 20 63 72 65 66 3d 22 | ivalent.to.accessing.<see.cref=" |
| ea60 | 49 6e 70 75 74 41 63 74 69 6f 6e 2e 70 68 61 73 65 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 | InputAction.phase"/>............ |
| ea80 | 20 20 2f 2f 2f 20 6f 6e 20 3c 73 65 65 20 63 72 65 66 3d 22 61 63 74 69 6f 6e 22 2f 3e 2e 0d 0a | ..///.on.<see.cref="action"/>... |
| eaa0 | 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 | ............///.</summary>...... |
| eac0 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 43 75 72 72 65 6e 74 20 70 68 61 73 65 | ........///.<value>Current.phase |
| eae0 | 20 6f 66 20 74 68 65 20 61 63 74 69 6f 6e 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 | .of.the.action.</value>......... |
| eb00 | 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 73 74 61 72 74 65 64 22 | .....///.<seealso.cref="started" |
| eb20 | 2f 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 | />..............///.<seealso.cre |
| eb40 | 66 3d 22 70 65 72 66 6f 72 6d 65 64 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f | f="performed"/>............../// |
| eb60 | 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 63 61 6e 63 65 6c 65 64 22 2f 3e 0d 0a 20 20 20 | .<seealso.cref="canceled"/>..... |
| eb80 | 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 | .........///.<seealso.cref="Inpu |
| eba0 | 74 41 63 74 69 6f 6e 2e 70 68 61 73 65 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 | tAction.phase"/>..............pu |
| ebc0 | 62 6c 69 63 20 75 6e 73 61 66 65 20 49 6e 70 75 74 41 63 74 69 6f 6e 50 68 61 73 65 20 70 68 61 | blic.unsafe.InputActionPhase.pha |
| ebe0 | 73 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | se..............{............... |
| ec00 | 20 20 20 67 65 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 | ...get..................{....... |
| ec20 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 53 74 61 74 65 20 3d 3d 20 6e 75 | ...............if.(m_State.==.nu |
| ec40 | 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 | ll)..........................ret |
| ec60 | 75 72 6e 20 49 6e 70 75 74 41 63 74 69 6f 6e 50 68 61 73 65 2e 44 69 73 61 62 6c 65 64 3b 0d 0a | urn.InputActionPhase.Disabled;.. |
| ec80 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6d 5f 53 74 61 | ....................return.m_Sta |
| eca0 | 74 65 2e 61 63 74 69 6f 6e 53 74 61 74 65 73 5b 61 63 74 69 6f 6e 49 6e 64 65 78 5d 2e 70 68 61 | te.actionStates[actionIndex].pha |
| ecc0 | 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 | se;..................}.......... |
| ece0 | 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 | ....}................///.<summar |
| ed00 | 79 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 57 68 65 74 68 65 72 20 74 68 65 20 | y>..............///.Whether.the. |
| ed20 | 3c 73 65 65 20 63 72 65 66 3d 22 61 63 74 69 6f 6e 22 2f 3e 20 68 61 73 20 6a 75 73 74 20 62 65 | <see.cref="action"/>.has.just.be |
| ed40 | 65 6e 20 73 74 61 72 74 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 | en.started...............///.</s |
| ed60 | 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e | ummary>..............///.<value> |
| ed80 | 49 66 20 74 72 75 65 2c 20 74 68 65 20 61 63 74 69 6f 6e 20 77 61 73 20 6a 75 73 74 20 73 74 61 | If.true,.the.action.was.just.sta |
| eda0 | 72 74 65 64 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c | rted.</value>..............///.< |
| edc0 | 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 2e 73 74 61 72 74 65 | seealso.cref="InputAction.starte |
| ede0 | 64 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 73 74 | d"/>..............public.bool.st |
| ee00 | 61 72 74 65 64 20 3d 3e 20 70 68 61 73 65 20 3d 3d 20 49 6e 70 75 74 41 63 74 69 6f 6e 50 68 61 | arted.=>.phase.==.InputActionPha |
| ee20 | 73 65 2e 53 74 61 72 74 65 64 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c | se.Started;................///.< |
| ee40 | 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 57 68 65 74 68 65 | summary>..............///.Whethe |
| ee60 | 72 20 74 68 65 20 3c 73 65 65 20 63 72 65 66 3d 22 61 63 74 69 6f 6e 22 2f 3e 20 68 61 73 20 6a | r.the.<see.cref="action"/>.has.j |
| ee80 | 75 73 74 20 62 65 65 6e 20 70 65 72 66 6f 72 6d 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | ust.been.performed.............. |
| eea0 | 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f | .///.</summary>............../// |
| eec0 | 20 3c 76 61 6c 75 65 3e 49 66 20 74 72 75 65 2c 20 74 68 65 20 61 63 74 69 6f 6e 20 77 61 73 20 | .<value>If.true,.the.action.was. |
| eee0 | 6a 75 73 74 20 70 65 72 66 6f 72 6d 65 64 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 | just.performed.</value>......... |
| ef00 | 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 | .....///.<seealso.cref="InputAct |
| ef20 | 69 6f 6e 2e 70 65 72 66 6f 72 6d 65 64 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 | ion.performed"/>..............pu |
| ef40 | 62 6c 69 63 20 62 6f 6f 6c 20 70 65 72 66 6f 72 6d 65 64 20 3d 3e 20 70 68 61 73 65 20 3d 3d 20 | blic.bool.performed.=>.phase.==. |
| ef60 | 49 6e 70 75 74 41 63 74 69 6f 6e 50 68 61 73 65 2e 50 65 72 66 6f 72 6d 65 64 3b 0d 0a 0d 0a 20 | InputActionPhase.Performed;..... |
| ef80 | 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 | ...........///.<summary>........ |
| efa0 | 20 20 20 20 20 20 2f 2f 2f 20 57 68 65 74 68 65 72 20 74 68 65 20 3c 73 65 65 20 63 72 65 66 3d | ......///.Whether.the.<see.cref= |
| efc0 | 22 61 63 74 69 6f 6e 22 2f 3e 20 68 61 73 20 6a 75 73 74 20 62 65 65 6e 20 63 61 6e 63 65 6c 65 | "action"/>.has.just.been.cancele |
| efe0 | 64 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a | d...............///.</summary>.. |
| f000 | 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 49 66 20 74 72 75 65 2c 20 | ............///.<value>If.true,. |
| f020 | 74 68 65 20 61 63 74 69 6f 6e 20 77 61 73 20 6a 75 73 74 20 63 61 6e 63 65 6c 65 64 2e 3c 2f 76 | the.action.was.just.canceled.</v |
| f040 | 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 | alue>..............///.<seealso. |
| f060 | 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 2e 63 61 6e 63 65 6c 65 64 22 2f 3e 0d 0a 20 | cref="InputAction.canceled"/>... |
| f080 | 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 63 61 6e 63 65 6c 65 64 20 | ...........public.bool.canceled. |
| f0a0 | 3d 3e 20 70 68 61 73 65 20 3d 3d 20 49 6e 70 75 74 41 63 74 69 6f 6e 50 68 61 73 65 2e 43 61 6e | =>.phase.==.InputActionPhase.Can |
| f0c0 | 63 65 6c 65 64 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 | celed;................///.<summa |
| f0e0 | 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 61 63 74 69 6f 6e 20 | ry>..............///.The.action. |
| f100 | 74 68 61 74 20 67 6f 74 20 74 72 69 67 67 65 72 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | that.got.triggered.............. |
| f120 | 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f | .///.</summary>............../// |
| f140 | 20 3c 76 61 6c 75 65 3e 41 63 74 69 6f 6e 20 74 68 61 74 20 67 6f 74 20 74 72 69 67 67 65 72 65 | .<value>Action.that.got.triggere |
| f160 | 64 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 | d.</value>..............public.I |
| f180 | 6e 70 75 74 41 63 74 69 6f 6e 20 61 63 74 69 6f 6e 20 3d 3e 20 6d 5f 53 74 61 74 65 3f 2e 47 65 | nputAction.action.=>.m_State?.Ge |
| f1a0 | 74 41 63 74 69 6f 6e 4f 72 4e 75 6c 6c 28 62 69 6e 64 69 6e 67 49 6e 64 65 78 29 3b 0d 0a 0d 0a | tActionOrNull(bindingIndex);.... |
| f1c0 | 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 | ............///.<summary>....... |
| f1e0 | 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 63 6f 6e 74 72 6f 6c 20 74 68 61 74 20 74 72 69 67 | .......///.The.control.that.trig |
| f200 | 67 65 72 65 64 20 74 68 65 20 61 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f | gered.the.action.............../ |
| f220 | 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c | //.</summary>..............///.< |
| f240 | 76 61 6c 75 65 3e 43 6f 6e 74 72 6f 6c 20 74 68 61 74 20 74 72 69 67 67 65 72 65 64 20 74 68 65 | value>Control.that.triggered.the |
| f260 | 20 61 63 74 69 6f 6e 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f | .action.</value>..............// |
| f280 | 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 6e 20 | /.<remarks>..............///.In. |
| f2a0 | 63 61 73 65 20 6f 66 20 61 20 63 6f 6d 70 6f 73 69 74 65 20 62 69 6e 64 69 6e 67 2c 20 74 68 69 | case.of.a.composite.binding,.thi |
| f2c0 | 73 20 69 73 20 74 68 65 20 63 6f 6e 74 72 6f 6c 20 6f 66 20 74 68 65 20 63 6f 6d 70 6f 73 69 74 | s.is.the.control.of.the.composit |
| f2e0 | 65 20 74 68 61 74 20 61 63 74 69 76 61 74 65 64 20 74 68 65 0d 0a 20 20 20 20 20 20 20 20 20 20 | e.that.activated.the............ |
| f300 | 20 20 2f 2f 2f 20 63 6f 6d 70 6f 73 69 74 65 20 61 73 20 61 20 77 68 6f 6c 65 2e 20 46 6f 72 20 | ..///.composite.as.a.whole..For. |
| f320 | 65 78 61 6d 70 6c 65 2c 20 69 6e 20 63 61 73 65 20 6f 66 20 61 20 57 41 53 44 2d 73 74 79 6c 65 | example,.in.case.of.a.WASD-style |
| f340 | 20 62 69 6e 64 69 6e 67 2c 20 69 74 20 63 6f 75 6c 64 20 62 65 20 74 68 65 20 57 20 6b 65 79 2e | .binding,.it.could.be.the.W.key. |
| f360 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f | ..............///............../ |
| f380 | 2f 2f 20 4e 6f 74 65 20 74 68 61 74 20 61 6e 20 61 63 74 69 6f 6e 20 6d 61 79 20 61 6c 73 6f 20 | //.Note.that.an.action.may.also. |
| f3a0 | 63 68 61 6e 67 65 20 69 74 73 20 3c 73 65 65 20 63 72 65 66 3d 22 70 68 61 73 65 22 2f 3e 20 69 | change.its.<see.cref="phase"/>.i |
| f3c0 | 6e 20 72 65 73 70 6f 6e 73 65 20 74 6f 20 61 20 74 69 6d 65 6f 75 74 2e 0d 0a 20 20 20 20 20 20 | n.response.to.a.timeout......... |
| f3e0 | 20 20 20 20 20 20 2f 2f 2f 20 46 6f 72 20 65 78 61 6d 70 6c 65 2c 20 61 20 3c 73 65 65 20 63 72 | ......///.For.example,.a.<see.cr |
| f400 | 65 66 3d 22 49 6e 74 65 72 61 63 74 69 6f 6e 73 2e 54 61 70 49 6e 74 65 72 61 63 74 69 6f 6e 22 | ef="Interactions.TapInteraction" |
| f420 | 2f 3e 20 77 69 6c 6c 20 63 61 6e 63 65 6c 20 69 74 73 65 6c 66 20 69 66 20 74 68 65 0d 0a 20 20 | />.will.cancel.itself.if.the.... |
| f440 | 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 62 75 74 74 6f 6e 20 63 6f 6e 74 72 6f 6c 20 69 73 20 | ..........///.button.control.is. |
| f460 | 6e 6f 74 20 72 65 6c 65 61 73 65 64 20 77 69 74 68 69 6e 20 61 20 63 65 72 74 61 69 6e 20 74 69 | not.released.within.a.certain.ti |
| f480 | 6d 65 2e 20 57 68 65 6e 20 74 68 69 73 20 68 61 70 70 65 6e 73 2c 20 74 68 65 20 3c 63 3e 63 6f | me..When.this.happens,.the.<c>co |
| f4a0 | 6e 74 72 6f 6c 3c 2f 63 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 70 72 6f 70 65 | ntrol</c>..............///.prope |
| f4c0 | 72 74 79 20 77 69 6c 6c 20 62 65 20 74 68 65 20 63 6f 6e 74 72 6f 6c 20 74 68 61 74 20 6c 61 73 | rty.will.be.the.control.that.las |
| f4e0 | 74 20 66 65 64 20 69 6e 70 75 74 20 69 6e 74 6f 20 74 68 65 20 61 63 74 69 6f 6e 2e 0d 0a 20 20 | t.fed.input.into.the.action..... |
| f500 | 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 | ..........///.</remarks>........ |
| f520 | 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 | ......///.<seealso.cref="InputAc |
| f540 | 74 69 6f 6e 2e 63 6f 6e 74 72 6f 6c 73 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f | tion.controls"/>..............// |
| f560 | 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 42 69 6e 64 69 6e 67 2e 70 61 | /.<seealso.cref="InputBinding.pa |
| f580 | 74 68 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 6e 70 75 74 43 | th"/>..............public.InputC |
| f5a0 | 6f 6e 74 72 6f 6c 20 63 6f 6e 74 72 6f 6c 20 3d 3e 20 6d 5f 53 74 61 74 65 3f 2e 63 6f 6e 74 72 | ontrol.control.=>.m_State?.contr |
| f5c0 | 6f 6c 73 5b 63 6f 6e 74 72 6f 6c 49 6e 64 65 78 5d 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 | ols[controlIndex];.............. |
| f5e0 | 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f | ..///.<summary>............../// |
| f600 | 20 54 68 65 20 69 6e 74 65 72 61 63 74 69 6f 6e 20 74 68 61 74 20 74 72 69 67 67 65 72 65 64 20 | .The.interaction.that.triggered. |
| f620 | 74 68 65 20 61 63 74 69 6f 6e 20 6f 72 20 3c 63 3e 6e 75 6c 6c 3c 2f 63 3e 20 69 66 20 74 68 65 | the.action.or.<c>null</c>.if.the |
| f640 | 20 62 69 6e 64 69 6e 67 20 74 68 61 74 20 74 72 69 67 67 65 72 65 64 20 64 6f 65 73 20 6e 6f 74 | .binding.that.triggered.does.not |
| f660 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 68 61 76 65 20 61 6e 79 20 70 61 72 74 69 | ..............///.have.any.parti |
| f680 | 63 75 6c 61 72 20 69 6e 74 65 72 61 63 74 69 6f 6e 20 73 65 74 20 6f 6e 20 69 74 2e 0d 0a 20 20 | cular.interaction.set.on.it..... |
| f6a0 | 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 | ..........///.</summary>........ |
| f6c0 | 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 49 6e 74 65 72 61 63 74 69 6f 6e 20 74 68 61 | ......///.<value>Interaction.tha |
| f6e0 | 74 20 74 72 69 67 67 65 72 65 64 20 74 68 65 20 63 61 6c 6c 62 61 63 6b 2e 3c 2f 76 61 6c 75 65 | t.triggered.the.callback.</value |
| f700 | 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 | >..............///.<remarks>.... |
| f720 | 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 20 20 20 | ..........///.<example>......... |
| f740 | 20 20 20 20 20 2f 2f 2f 20 3c 63 6f 64 65 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f | .....///.<code>............../// |
| f760 | 20 76 6f 69 64 20 46 69 72 65 50 65 72 66 6f 72 6d 65 64 28 49 6e 70 75 74 41 63 74 69 6f 6e 2e | .void.FirePerformed(InputAction. |
| f780 | 43 61 6c 6c 62 61 63 6b 43 6f 6e 74 65 78 74 20 63 6f 6e 74 65 78 74 29 0d 0a 20 20 20 20 20 20 | CallbackContext.context)........ |
| f7a0 | 20 20 20 20 20 20 2f 2f 2f 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 | ......///.{..............///.... |
| f7c0 | 20 2f 2f 20 49 66 20 53 6c 6f 77 54 61 70 20 69 6e 74 65 72 61 63 74 69 6f 6e 20 77 61 73 20 70 | .//.If.SlowTap.interaction.was.p |
| f7e0 | 65 72 66 6f 72 6d 65 64 2c 20 70 65 72 66 6f 72 6d 20 61 20 63 68 61 72 67 65 64 0d 0a 20 20 20 | erformed,.perform.a.charged..... |
| f800 | 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 2f 2f 20 66 69 72 69 6e 67 2e 20 4f 74 68 65 | .........///.....//.firing..Othe |
| f820 | 72 77 69 73 65 2c 20 66 69 72 65 20 6e 6f 72 6d 61 6c 6c 79 2e 0d 0a 20 20 20 20 20 20 20 20 20 | rwise,.fire.normally............ |
| f840 | 20 20 20 2f 2f 2f 20 20 20 20 20 69 66 20 28 63 6f 6e 74 65 78 74 2e 69 6e 74 65 72 61 63 74 69 | ...///.....if.(context.interacti |
| f860 | 6f 6e 20 69 73 20 53 6c 6f 77 54 61 70 49 6e 74 65 72 61 63 74 69 6f 6e 29 0d 0a 20 20 20 20 20 | on.is.SlowTapInteraction)....... |
| f880 | 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 46 69 72 65 43 68 61 72 67 65 64 50 72 | .......///.........FireChargedPr |
| f8a0 | 6f 6a 65 63 74 69 6c 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 | ojectile();..............///.... |
| f8c0 | 20 65 6c 73 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 46 | .else..............///.........F |
| f8e0 | 69 72 65 4e 6f 72 6d 61 6c 50 72 6f 6a 65 63 74 69 6c 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 | ireNormalProjectile();.......... |
| f900 | 20 20 20 20 2f 2f 2f 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 63 6f 64 | ....///.}..............///.</cod |
| f920 | 65 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 65 78 61 6d 70 6c 65 3e 0d 0a | e>..............///.</example>.. |
| f940 | 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 | ............///.</remarks>...... |
| f960 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 | ........///.<seealso.cref="Input |
| f980 | 42 69 6e 64 69 6e 67 2e 69 6e 74 65 72 61 63 74 69 6f 6e 73 22 2f 3e 0d 0a 20 20 20 20 20 20 20 | Binding.interactions"/>......... |
| f9a0 | 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 | .....///.<seealso.cref="InputAct |
| f9c0 | 69 6f 6e 2e 69 6e 74 65 72 61 63 74 69 6f 6e 73 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | ion.interactions"/>............. |
| f9e0 | 20 70 75 62 6c 69 63 20 49 49 6e 70 75 74 49 6e 74 65 72 61 63 74 69 6f 6e 20 69 6e 74 65 72 61 | .public.IInputInteraction.intera |
| fa00 | 63 74 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 | ction..............{............ |
| fa20 | 20 20 20 20 20 20 67 65 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 | ......get..................{.... |
| fa40 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 53 74 61 74 65 20 3d 3d | ..................if.(m_State.== |
| fa60 | 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .null).......................... |
| fa80 | 72 65 74 75 72 6e 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | return.null;.................... |
| faa0 | 20 20 76 61 72 20 69 6e 64 65 78 20 3d 20 69 6e 74 65 72 61 63 74 69 6f 6e 49 6e 64 65 78 3b 0d | ..var.index.=.interactionIndex;. |
| fac0 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 6e 64 65 78 20 3d | .....................if.(index.= |
| fae0 | 3d 20 49 6e 70 75 74 41 63 74 69 6f 6e 53 74 61 74 65 2e 6b 49 6e 76 61 6c 69 64 49 6e 64 65 78 | =.InputActionState.kInvalidIndex |
| fb00 | 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 | )..........................retur |
| fb20 | 6e 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 | n.null;......................ret |
| fb40 | 75 72 6e 20 6d 5f 53 74 61 74 65 2e 69 6e 74 65 72 61 63 74 69 6f 6e 73 5b 69 6e 64 65 78 5d 3b | urn.m_State.interactions[index]; |
| fb60 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | ..................}............. |
| fb80 | 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d | .}................///.<summary>. |
| fba0 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 74 69 6d 65 20 61 74 20 77 68 69 | .............///.The.time.at.whi |
| fbc0 | 63 68 20 74 68 65 20 61 63 74 69 6f 6e 20 67 6f 74 20 74 72 69 67 67 65 72 65 64 2e 0d 0a 20 20 | ch.the.action.got.triggered..... |
| fbe0 | 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 | ..........///.</summary>........ |
| fc00 | 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 54 69 6d 65 20 72 65 6c 61 74 69 76 65 20 74 | ......///.<value>Time.relative.t |
| fc20 | 6f 20 3c 63 3e 54 69 6d 65 2e 72 65 61 6c 74 69 6d 65 53 69 6e 63 65 53 74 61 72 74 75 70 3c 2f | o.<c>Time.realtimeSinceStartup</ |
| fc40 | 63 3e 20 61 74 20 77 68 69 63 68 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 68 65 | c>.at.which..............///.the |
| fc60 | 20 61 63 74 69 6f 6e 20 67 6f 74 20 74 72 69 67 67 65 72 65 64 2e 3c 2f 76 61 6c 75 65 3e 0d 0a | .action.got.triggered.</value>.. |
| fc80 | 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 | ............///.<remarks>....... |
| fca0 | 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 69 73 20 69 73 20 75 73 75 61 6c 6c 79 20 64 65 74 65 72 | .......///.This.is.usually.deter |
| fcc0 | 6d 69 6e 65 64 20 62 79 20 74 68 65 20 74 69 6d 65 73 74 61 6d 70 20 6f 66 20 74 68 65 20 69 6e | mined.by.the.timestamp.of.the.in |
| fce0 | 70 75 74 20 65 76 65 6e 74 20 74 68 61 74 20 61 63 74 69 76 61 74 65 64 20 61 20 63 6f 6e 74 72 | put.event.that.activated.a.contr |
| fd00 | 6f 6c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 62 6f 75 6e 64 20 74 6f 20 74 68 65 | ol..............///.bound.to.the |
| fd20 | 20 61 63 74 69 6f 6e 2e 20 57 68 61 74 20 74 68 69 73 20 6d 65 61 6e 73 20 69 73 20 74 68 61 74 | .action..What.this.means.is.that |
| fd40 | 20 74 68 69 73 20 69 73 20 6e 6f 72 6d 61 6c 6c 79 20 3c 65 6d 3e 6e 6f 74 3c 2f 65 6d 3e 20 74 | .this.is.normally.<em>not</em>.t |
| fd60 | 68 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 76 61 6c 75 65 20 6f 66 20 3c 63 3e | he..............///.value.of.<c> |
| fd80 | 54 69 6d 65 2e 72 65 61 6c 74 69 6d 65 53 69 6e 63 65 53 74 61 72 74 75 70 3c 2f 63 3e 20 77 68 | Time.realtimeSinceStartup</c>.wh |
| fda0 | 65 6e 20 74 68 65 20 69 6e 70 75 74 20 73 79 73 74 65 6d 20 63 61 6c 6c 73 20 74 68 65 0d 0a 20 | en.the.input.system.calls.the... |
| fdc0 | 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 63 61 6c 6c 62 61 63 6b 20 62 75 74 20 72 61 74 68 | ...........///.callback.but.rath |
| fde0 | 65 72 20 74 68 65 20 74 69 6d 65 20 61 74 20 77 68 69 63 68 20 74 68 65 20 69 6e 70 75 74 20 77 | er.the.time.at.which.the.input.w |
| fe00 | 61 73 20 67 65 6e 65 72 61 74 65 64 20 74 68 61 74 20 74 72 69 67 67 65 72 65 64 0d 0a 20 20 20 | as.generated.that.triggered..... |
| fe20 | 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 68 65 20 61 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 | .........///.the.action......... |
| fe40 | 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 | ......///.</remarks>............ |
| fe60 | 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 45 76 65 6e 74 2e | ..///.<seealso.cref="InputEvent. |
| fe80 | 74 69 6d 65 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 75 6e 73 61 | time"/>..............public.unsa |
| fea0 | 66 65 20 64 6f 75 62 6c 65 20 74 69 6d 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 | fe.double.time..............{... |
| fec0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | ...............get.............. |
| fee0 | 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d | ....{......................if.(m |
| ff00 | 5f 53 74 61 74 65 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | _State.==.null)................. |
| ff20 | 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | .........return.0;.............. |
| ff40 | 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6d 5f 53 74 61 74 65 2e 61 63 74 69 6f 6e 53 74 61 | ........return.m_State.actionSta |
| ff60 | 74 65 73 5b 61 63 74 69 6f 6e 49 6e 64 65 78 5d 2e 74 69 6d 65 3b 0d 0a 20 20 20 20 20 20 20 20 | tes[actionIndex].time;.......... |
| ff80 | 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 | ........}..............}........ |
| ffa0 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 20 | ........///.<summary>........... |
| ffc0 | 20 20 20 2f 2f 2f 20 54 69 6d 65 20 61 74 20 77 68 69 63 68 20 74 68 65 20 61 63 74 69 6f 6e 20 | ...///.Time.at.which.the.action. |
| ffe0 | 77 61 73 20 73 74 61 72 74 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f | was.started...............///.</ |
| 10000 | 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 | summary>..............///.<value |
| 10020 | 3e 56 61 6c 75 65 20 72 65 6c 61 74 69 76 65 20 74 6f 20 3c 63 3e 54 69 6d 65 2e 72 65 61 6c 74 | >Value.relative.to.<c>Time.realt |
| 10040 | 69 6d 65 53 69 6e 63 65 53 74 61 72 74 75 70 3c 2f 63 3e 20 77 68 65 6e 20 74 68 65 20 61 63 74 | imeSinceStartup</c>.when.the.act |
| 10060 | 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 63 68 61 6e 67 65 64 20 74 6f 20 | ion..............///.changed.to. |
| 10080 | 3c 73 65 65 20 63 72 65 66 3d 22 73 74 61 72 74 65 64 22 2f 3e 2e 3c 2f 76 61 6c 75 65 3e 0d 0a | <see.cref="started"/>.</value>.. |
| 100a0 | 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 | ............///.<remarks>....... |
| 100c0 | 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 69 73 20 69 73 20 6f 6e 6c 79 20 72 65 6c 65 76 61 6e 74 | .......///.This.is.only.relevant |
| 100e0 | 20 66 6f 72 20 61 63 74 69 6f 6e 73 20 74 68 61 74 20 67 6f 20 74 68 72 6f 75 67 68 20 64 69 73 | .for.actions.that.go.through.dis |
| 10100 | 74 69 6e 63 74 20 61 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 50 68 | tinct.a.<see.cref="InputActionPh |
| 10120 | 61 73 65 2e 53 74 61 72 74 65 64 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 | ase.Started"/>..............///. |
| 10140 | 63 79 63 6c 65 20 61 73 20 64 72 69 76 65 6e 20 62 79 20 3c 73 65 65 20 63 72 65 66 3d 22 49 49 | cycle.as.driven.by.<see.cref="II |
| 10160 | 6e 70 75 74 49 6e 74 65 72 61 63 74 69 6f 6e 22 3e 69 6e 74 65 72 61 63 74 69 6f 6e 73 3c 2f 73 | nputInteraction">interactions</s |
| 10180 | 65 65 3e 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 20 | ee>...............///........... |
| 101a0 | 20 20 20 2f 2f 2f 20 54 68 65 20 76 61 6c 75 65 20 6f 66 20 74 68 69 73 20 70 72 6f 70 65 72 74 | ...///.The.value.of.this.propert |
| 101c0 | 79 20 69 73 20 74 68 61 74 20 6f 66 20 3c 73 65 65 20 63 72 65 66 3d 22 74 69 6d 65 22 2f 3e 20 | y.is.that.of.<see.cref="time"/>. |
| 101e0 | 77 68 65 6e 20 3c 73 65 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 63 72 65 66 3d | when.<see..............///.cref= |
| 10200 | 22 49 6e 70 75 74 41 63 74 69 6f 6e 2e 73 74 61 72 74 65 64 22 2f 3e 20 77 61 73 20 63 61 6c 6c | "InputAction.started"/>.was.call |
| 10220 | 65 64 2e 20 53 65 65 20 74 68 65 20 3c 73 65 65 20 63 72 65 66 3d 22 74 69 6d 65 22 2f 3e 0d 0a | ed..See.the.<see.cref="time"/>.. |
| 10240 | 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 70 72 6f 70 65 72 74 79 20 66 6f 72 20 68 6f 77 | ............///.property.for.how |
| 10260 | 20 74 68 65 20 74 69 6d 65 73 74 61 6d 70 20 77 6f 72 6b 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 | .the.timestamp.works............ |
| 10280 | 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 | ...///.</remarks>..............p |
| 102a0 | 75 62 6c 69 63 20 75 6e 73 61 66 65 20 64 6f 75 62 6c 65 20 73 74 61 72 74 54 69 6d 65 0d 0a 20 | ublic.unsafe.double.startTime... |
| 102c0 | 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 67 65 | ...........{..................ge |
| 102e0 | 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 | t..................{............ |
| 10300 | 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 53 74 61 74 65 20 3d 3d 20 6e 75 6c 6c 29 0d 0a | ..........if.(m_State.==.null).. |
| 10320 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 30 | ........................return.0 |
| 10340 | 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6d 5f | ;......................return.m_ |
| 10360 | 53 74 61 74 65 2e 61 63 74 69 6f 6e 53 74 61 74 65 73 5b 61 63 74 69 6f 6e 49 6e 64 65 78 5d 2e | State.actionStates[actionIndex]. |
| 10380 | 73 74 61 72 74 54 69 6d 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 | startTime;..................}... |
| 103a0 | 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 | ...........}................///. |
| 103c0 | 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 69 6d 65 20 | <summary>..............///.Time. |
| 103e0 | 64 69 66 66 65 72 65 6e 63 65 20 62 65 74 77 65 65 6e 20 3c 73 65 65 20 63 72 65 66 3d 22 74 69 | difference.between.<see.cref="ti |
| 10400 | 6d 65 22 2f 3e 20 61 6e 64 20 3c 73 65 65 20 63 72 65 66 3d 22 73 74 61 72 74 54 69 6d 65 22 2f | me"/>.and.<see.cref="startTime"/ |
| 10420 | 3e 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a | >...............///.</summary>.. |
| 10440 | 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 44 69 66 66 65 72 65 6e 63 | ............///.<value>Differenc |
| 10460 | 65 20 62 65 74 77 65 65 6e 20 3c 73 65 65 20 63 72 65 66 3d 22 74 69 6d 65 22 2f 3e 20 61 6e 64 | e.between.<see.cref="time"/>.and |
| 10480 | 20 3c 73 65 65 20 63 72 65 66 3d 22 73 74 61 72 74 54 69 6d 65 22 2f 3e 2e 3c 2f 76 61 6c 75 65 | .<see.cref="startTime"/>.</value |
| 104a0 | 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 | >..............///.<remarks>.... |
| 104c0 | 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 69 73 20 70 72 6f 70 65 72 74 79 20 63 61 6e 20 | ..........///.This.property.can. |
| 104e0 | 62 65 20 75 73 65 64 2c 20 66 6f 72 20 65 78 61 6d 70 6c 65 2c 20 74 6f 20 64 65 74 65 72 6d 69 | be.used,.for.example,.to.determi |
| 10500 | 6e 65 20 68 6f 77 20 6c 6f 6e 67 20 61 20 62 75 74 74 6f 6e 0d 0a 20 20 20 20 20 20 20 20 20 20 | ne.how.long.a.button............ |
| 10520 | 20 20 2f 2f 2f 20 77 61 73 20 68 65 6c 64 20 64 6f 77 6e 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 | ..///.was.held.down............. |
| 10540 | 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 65 78 61 6d 70 6c 65 3e | ..///..............///.<example> |
| 10560 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 63 6f 64 65 3e 0d 0a 20 20 20 20 20 20 | ..............///.<code>........ |
| 10580 | 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 4c 65 74 27 73 20 63 72 65 61 74 65 20 61 20 62 75 74 74 | ......///.//.Let's.create.a.butt |
| 105a0 | 6f 6e 20 61 63 74 69 6f 6e 20 62 6f 75 6e 64 20 74 6f 20 74 68 65 20 41 20 62 75 74 74 6f 6e 0d | on.action.bound.to.the.A.button. |
| 105c0 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 6f 6e 20 74 68 65 20 67 61 6d 65 70 | .............///.//.on.the.gamep |
| 105e0 | 61 64 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 76 61 72 20 61 63 74 69 6f 6e 20 | ad...............///.var.action. |
| 10600 | 3d 20 6e 65 77 20 49 6e 70 75 74 41 63 74 69 6f 6e 28 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | =.new.InputAction(.............. |
| 10620 | 2f 2f 2f 20 20 20 20 20 74 79 70 65 3a 20 49 6e 70 75 74 41 63 74 69 6f 6e 54 79 70 65 2e 42 75 | ///.....type:.InputActionType.Bu |
| 10640 | 74 74 6f 6e 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 62 69 6e 64 69 | tton,..............///.....bindi |
| 10660 | 6e 67 3a 20 22 26 6c 74 3b 47 61 6d 65 70 61 64 26 67 74 3b 2f 62 75 74 74 6f 6e 53 6f 75 74 68 | ng:."<Gamepad>/buttonSouth |
| 10680 | 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 20 20 | ");..............///............ |
| 106a0 | 20 20 2f 2f 2f 20 2f 2f 20 57 68 65 6e 20 74 68 65 20 61 63 74 69 6f 6e 20 69 73 20 70 65 72 66 | ..///.//.When.the.action.is.perf |
| 106c0 | 6f 72 6d 65 64 20 28 77 68 69 63 68 20 77 69 6c 6c 20 68 61 70 70 65 6e 20 77 68 65 6e 20 74 68 | ormed.(which.will.happen.when.th |
| 106e0 | 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 62 75 74 74 6f 6e 20 69 73 20 | e..............///.//.button.is. |
| 10700 | 70 72 65 73 73 65 64 20 61 6e 64 20 74 68 65 6e 20 72 65 6c 65 61 73 65 64 29 20 77 65 20 74 61 | pressed.and.then.released).we.ta |
| 10720 | 6b 65 20 74 68 65 20 64 75 72 61 74 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f | ke.the.duration............../// |
| 10740 | 20 2f 2f 20 6f 66 20 74 68 65 20 70 72 65 73 73 20 74 6f 20 64 65 74 65 72 6d 69 6e 65 20 68 6f | .//.of.the.press.to.determine.ho |
| 10760 | 77 20 6d 61 6e 79 20 70 72 6f 6a 65 63 74 69 6c 65 73 20 74 6f 20 73 70 61 77 6e 2e 0d 0a 20 20 | w.many.projectiles.to.spawn..... |
| 10780 | 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 63 74 69 6f 6e 2e 70 65 72 66 6f 72 6d 65 64 20 2b | ..........///.action.performed.+ |
| 107a0 | 3d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 63 6f 6e 74 65 78 74 20 3d | =..............///.....context.= |
| 107c0 | 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 | >..............///.....{........ |
| 107e0 | 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 63 6f 6e 73 74 20 66 6c 6f 61 74 20 6b 53 | ......///.........const.float.kS |
| 10800 | 70 61 77 6e 52 61 74 65 20 3d 20 33 3b 20 2f 2f 20 33 20 70 72 6f 6a 65 63 74 69 6c 65 73 20 70 | pawnRate.=.3;.//.3.projectiles.p |
| 10820 | 65 72 20 73 65 63 6f 6e 64 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 | er.second..............///...... |
| 10840 | 20 20 20 76 61 72 20 70 72 6f 6a 65 63 74 69 6c 65 43 6f 75 6e 74 20 3d 20 6b 53 70 61 77 6e 52 | ...var.projectileCount.=.kSpawnR |
| 10860 | 61 74 65 20 2a 20 63 6f 6e 74 65 78 74 2e 64 75 72 61 74 69 6f 6e 3b 0d 0a 20 20 20 20 20 20 20 | ate.*.context.duration;......... |
| 10880 | 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 76 61 72 20 69 20 3d 20 30 3b | .....///.........for.(var.i.=.0; |
| 108a0 | 20 69 20 26 6c 74 3b 20 70 72 6f 6a 65 63 74 69 6c 65 43 6f 75 6e 74 3b 20 2b 2b 69 29 0d 0a 20 | .i.<.projectileCount;.++i)... |
| 108c0 | 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 | ...........///.........{........ |
| 108e0 | 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 70 72 6f 6a 65 63 | ......///.............var.projec |
| 10900 | 74 69 6c 65 20 3d 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 4f 62 6a 65 63 74 2e 49 6e 73 74 61 6e | tile.=.UnityEngine.Object.Instan |
| 10920 | 74 69 61 74 65 28 70 72 6f 6a 65 63 74 69 6c 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | tiate(projectile);.............. |
| 10940 | 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 70 70 6c 79 20 6f 74 68 65 72 20 63 | ///.............//.Apply.other.c |
| 10960 | 68 61 6e 67 65 73 20 74 6f 20 74 68 65 20 70 72 6f 6a 65 63 74 69 6c 65 2e 2e 2e 0d 0a 20 20 20 | hanges.to.the.projectile........ |
| 10980 | 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 | .........///.........}.......... |
| 109a0 | 20 20 20 20 2f 2f 2f 20 20 20 20 20 7d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 | ....///.....};..............///. |
| 109c0 | 3c 2f 63 6f 64 65 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 65 78 61 6d 70 | </code>..............///.</examp |
| 109e0 | 6c 65 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d | le>..............///.</remarks>. |
| 10a00 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 64 6f 75 62 6c 65 20 64 75 72 61 74 | .............public.double.durat |
| 10a20 | 69 6f 6e 20 3d 3e 20 74 69 6d 65 20 2d 20 73 74 61 72 74 54 69 6d 65 3b 0d 0a 0d 0a 20 20 20 20 | ion.=>.time.-.startTime;........ |
| 10a40 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 20 | ........///.<summary>........... |
| 10a60 | 20 20 20 2f 2f 2f 20 54 79 70 65 20 6f 66 20 76 61 6c 75 65 20 72 65 74 75 72 6e 65 64 20 62 79 | ...///.Type.of.value.returned.by |
| 10a80 | 20 3c 73 65 65 20 63 72 65 66 3d 22 52 65 61 64 56 61 6c 75 65 41 73 4f 62 6a 65 63 74 22 2f 3e | .<see.cref="ReadValueAsObject"/> |
| 10aa0 | 20 61 6e 64 20 65 78 70 65 63 74 65 64 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 62 | .and.expected..............///.b |
| 10ac0 | 79 20 3c 73 65 65 20 63 72 65 66 3d 22 52 65 61 64 56 61 6c 75 65 7b 54 56 61 6c 75 65 7d 22 2f | y.<see.cref="ReadValue{TValue}"/ |
| 10ae0 | 3e 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a | >...............///.</summary>.. |
| 10b00 | 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 54 79 70 65 20 6f 66 20 6f | ............///.<value>Type.of.o |
| 10b20 | 62 6a 65 63 74 20 72 65 74 75 72 6e 65 64 20 77 68 65 6e 20 72 65 61 64 69 6e 67 20 61 20 76 61 | bject.returned.when.reading.a.va |
| 10b40 | 6c 75 65 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 | lue.</value>..............///.<r |
| 10b60 | 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 74 79 70 | emarks>..............///.The.typ |
| 10b80 | 65 20 6f 66 20 76 61 6c 75 65 20 72 65 74 75 72 6e 65 64 20 62 79 20 61 6e 20 61 63 74 69 6f 6e | e.of.value.returned.by.an.action |
| 10ba0 | 20 69 73 20 75 73 75 61 6c 6c 79 20 64 65 74 65 72 6d 69 6e 65 64 20 62 79 20 74 68 65 0d 0a 20 | .is.usually.determined.by.the... |
| 10bc0 | 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 43 | ...........///.<see.cref="InputC |
| 10be0 | 6f 6e 74 72 6f 6c 22 2f 3e 20 74 68 61 74 20 74 72 69 67 67 65 72 65 64 20 74 68 65 20 61 63 74 | ontrol"/>.that.triggered.the.act |
| 10c00 | 69 6f 6e 2c 20 69 2e 65 2e 20 62 79 20 74 68 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f | ion,.i.e..by.the..............// |
| 10c20 | 2f 20 63 6f 6e 74 72 6f 6c 20 72 65 66 65 72 65 6e 63 65 64 20 66 72 6f 6d 20 3c 73 65 65 20 63 | /.control.referenced.from.<see.c |
| 10c40 | 72 65 66 3d 22 63 6f 6e 74 72 6f 6c 22 2f 3e 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f | ref="control"/>...............// |
| 10c60 | 2f 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 48 6f 77 65 76 65 72 2c 20 69 66 20 74 | /..............///.However,.if.t |
| 10c80 | 68 65 20 62 69 6e 64 69 6e 67 20 74 68 61 74 20 74 72 69 67 67 65 72 65 64 20 69 73 20 61 20 63 | he.binding.that.triggered.is.a.c |
| 10ca0 | 6f 6d 70 6f 73 69 74 65 2c 20 74 68 65 6e 20 74 68 65 20 63 6f 6d 70 6f 73 69 74 65 0d 0a 20 20 | omposite,.then.the.composite.... |
| 10cc0 | 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 77 69 6c 6c 20 64 65 74 65 72 6d 69 6e 65 20 76 61 6c | ..........///.will.determine.val |
| 10ce0 | 75 65 73 20 61 6e 64 20 6e 6f 74 20 74 68 65 20 69 6e 64 69 76 69 64 75 61 6c 20 63 6f 6e 74 72 | ues.and.not.the.individual.contr |
| 10d00 | 6f 6c 20 74 68 61 74 20 74 72 69 67 67 65 72 65 64 20 28 74 68 61 74 0d 0a 20 20 20 20 20 20 20 | ol.that.triggered.(that......... |
| 10d20 | 20 20 20 20 20 2f 2f 2f 20 6f 6e 65 20 6a 75 73 74 20 66 65 65 64 73 20 76 61 6c 75 65 73 20 69 | .....///.one.just.feeds.values.i |
| 10d40 | 6e 74 6f 20 74 68 65 20 63 6f 6d 70 6f 73 69 74 65 29 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | nto.the.composite).............. |
| 10d60 | 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f | .///.</remarks>............../// |
| 10d80 | 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 2e 76 61 6c | .<seealso.cref="InputControl.val |
| 10da0 | 75 65 54 79 70 65 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 | ueType"/>..............///.<seea |
| 10dc0 | 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 42 69 6e 64 69 6e 67 43 6f 6d 70 6f 73 69 74 65 2e | lso.cref="InputBindingComposite. |
| 10de0 | 76 61 6c 75 65 54 79 70 65 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 | valueType"/>..............public |
| 10e00 | 20 54 79 70 65 20 76 61 6c 75 65 54 79 70 65 20 3d 3e 20 6d 5f 53 74 61 74 65 3f 2e 47 65 74 56 | .Type.valueType.=>.m_State?.GetV |
| 10e20 | 61 6c 75 65 54 79 70 65 28 62 69 6e 64 69 6e 67 49 6e 64 65 78 2c 20 63 6f 6e 74 72 6f 6c 49 6e | alueType(bindingIndex,.controlIn |
| 10e40 | 64 65 78 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 | dex);................///.<summar |
| 10e60 | 79 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 53 69 7a 65 20 6f 66 20 76 61 6c 75 | y>..............///.Size.of.valu |
| 10e80 | 65 73 20 72 65 74 75 72 6e 65 64 20 62 79 20 3c 73 65 65 20 63 72 65 66 3d 22 52 65 61 64 56 61 | es.returned.by.<see.cref="ReadVa |
| 10ea0 | 6c 75 65 28 76 6f 69 64 2a 2c 69 6e 74 29 22 2f 3e 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | lue(void*,int)"/>............... |
| 10ec0 | 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 | ///.</summary>..............///. |
| 10ee0 | 3c 76 61 6c 75 65 3e 53 69 7a 65 20 6f 66 20 76 61 6c 75 65 20 72 65 74 75 72 6e 65 64 20 77 68 | <value>Size.of.value.returned.wh |
| 10f00 | 65 6e 20 72 65 61 64 69 6e 67 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | en.reading.</value>............. |
| 10f20 | 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 | .///.<remarks>..............///. |
| 10f40 | 41 6c 6c 20 69 6e 70 75 74 20 76 61 6c 75 65 73 20 70 61 73 73 65 64 20 61 72 6f 75 6e 64 20 62 | All.input.values.passed.around.b |
| 10f60 | 79 20 74 68 65 20 73 79 73 74 65 6d 20 61 72 65 20 72 65 71 75 69 72 65 64 20 74 6f 20 62 65 20 | y.the.system.are.required.to.be. |
| 10f80 | 22 62 6c 69 74 74 61 62 6c 65 22 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 69 2e | "blittable",..............///.i. |
| 10fa0 | 65 2e 20 74 68 65 79 20 63 61 6e 6e 6f 74 20 63 6f 6e 74 61 69 6e 20 72 65 66 65 72 65 6e 63 65 | e..they.cannot.contain.reference |
| 10fc0 | 73 2c 20 63 61 6e 6e 6f 74 20 62 65 20 68 65 61 70 20 6f 62 6a 65 63 74 73 20 74 68 65 6d 73 65 | s,.cannot.be.heap.objects.themse |
| 10fe0 | 6c 76 65 73 2c 20 61 6e 64 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 6d 75 73 74 20 | lves,.and..............///.must. |
| 11000 | 62 65 20 74 72 69 76 69 61 6c 6c 79 20 6d 65 6d 2d 63 6f 70 79 61 62 6c 65 2e 20 54 68 69 73 20 | be.trivially.mem-copyable..This. |
| 11020 | 6d 65 61 6e 73 20 74 68 61 74 20 61 6e 79 20 76 61 6c 75 65 20 63 61 6e 20 62 65 20 72 65 61 64 | means.that.any.value.can.be.read |
| 11040 | 20 6f 75 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 6e 64 20 72 65 74 61 69 6e | .out..............///.and.retain |
| 11060 | 65 64 20 69 6e 20 61 20 72 61 77 20 62 79 74 65 20 62 75 66 66 65 72 2e 0d 0a 20 20 20 20 20 20 | ed.in.a.raw.byte.buffer......... |
| 11080 | 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 76 | ......///..............///.The.v |
| 110a0 | 61 6c 75 65 20 6f 66 20 74 68 69 73 20 70 72 6f 70 65 72 74 79 20 64 65 74 65 72 6d 69 6e 65 73 | alue.of.this.property.determines |
| 110c0 | 20 68 6f 77 20 6d 61 6e 79 20 62 79 74 65 73 20 77 69 6c 6c 20 62 65 20 77 72 69 74 74 65 6e 0d | .how.many.bytes.will.be.written. |
| 110e0 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 62 79 20 3c 73 65 65 20 63 72 65 66 3d 22 52 | .............///.by.<see.cref="R |
| 11100 | 65 61 64 56 61 6c 75 65 28 76 6f 69 64 2a 2c 69 6e 74 29 22 2f 3e 2e 0d 0a 20 20 20 20 20 20 20 | eadValue(void*,int)"/>.......... |
| 11120 | 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | .....///.</remarks>............. |
| 11140 | 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 43 6f 6e 74 72 6f 6c | .///.<seealso.cref="InputControl |
| 11160 | 2e 76 61 6c 75 65 53 69 7a 65 49 6e 42 79 74 65 73 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 | .valueSizeInBytes"/>............ |
| 11180 | 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 42 69 6e 64 69 6e | ..///.<seealso.cref="InputBindin |
| 111a0 | 67 43 6f 6d 70 6f 73 69 74 65 2e 76 61 6c 75 65 53 69 7a 65 49 6e 42 79 74 65 73 22 2f 3e 0d 0a | gComposite.valueSizeInBytes"/>.. |
| 111c0 | 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 52 | ............///.<seealso.cref="R |
| 111e0 | 65 61 64 56 61 6c 75 65 28 76 6f 69 64 2a 2c 69 6e 74 29 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 | eadValue(void*,int)"/>.......... |
| 11200 | 20 20 20 20 70 75 62 6c 69 63 20 69 6e 74 20 76 61 6c 75 65 53 69 7a 65 49 6e 42 79 74 65 73 0d | ....public.int.valueSizeInBytes. |
| 11220 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .............{.................. |
| 11240 | 67 65 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 | get..................{.......... |
| 11260 | 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 53 74 61 74 65 20 3d 3d 20 6e 75 6c 6c 29 | ............if.(m_State.==.null) |
| 11280 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e | ..........................return |
| 112a0 | 20 30 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 | .0;........................retur |
| 112c0 | 6e 20 6d 5f 53 74 61 74 65 2e 47 65 74 56 61 6c 75 65 53 69 7a 65 49 6e 42 79 74 65 73 28 62 69 | n.m_State.GetValueSizeInBytes(bi |
| 112e0 | 6e 64 69 6e 67 49 6e 64 65 78 2c 20 63 6f 6e 74 72 6f 6c 49 6e 64 65 78 29 3b 0d 0a 20 20 20 20 | ndingIndex,.controlIndex);...... |
| 11300 | 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a | ............}..............}.... |
| 11320 | 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 54 4f 44 4f 3a 20 6e 65 65 64 20 61 62 69 6c 69 | ............////TODO:.need.abili |
| 11340 | 74 79 20 74 6f 20 72 65 61 64 20 61 73 20 62 75 74 74 6f 6e 0d 0a 0d 0a 20 20 20 20 20 20 20 20 | ty.to.read.as.button............ |
| 11360 | 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f | ....///.<summary>............../ |
| 11380 | 2f 2f 20 52 65 61 64 20 74 68 65 20 76 61 6c 75 65 20 6f 66 20 74 68 65 20 61 63 74 69 6f 6e 20 | //.Read.the.value.of.the.action. |
| 113a0 | 61 73 20 61 20 72 61 77 20 62 79 74 65 20 62 75 66 66 65 72 2e 20 54 68 69 73 20 61 6c 6c 6f 77 | as.a.raw.byte.buffer..This.allow |
| 113c0 | 73 20 72 65 61 64 69 6e 67 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 76 61 6c 75 65 | s.reading..............///.value |
| 113e0 | 73 20 77 69 74 68 6f 75 74 20 68 61 76 69 6e 67 20 74 6f 20 6b 6e 6f 77 20 76 61 6c 75 65 20 74 | s.without.having.to.know.value.t |
| 11400 | 79 70 65 73 20 62 75 74 20 61 6c 73 6f 2c 20 75 6e 6c 69 6b 65 20 3c 73 65 65 20 63 72 65 66 3d | ypes.but.also,.unlike.<see.cref= |
| 11420 | 22 52 65 61 64 56 61 6c 75 65 41 73 4f 62 6a 65 63 74 22 2f 3e 2c 0d 0a 20 20 20 20 20 20 20 20 | "ReadValueAsObject"/>,.......... |
| 11440 | 20 20 20 20 2f 2f 2f 20 77 69 74 68 6f 75 74 20 61 6c 6c 6f 63 61 74 69 6e 67 20 47 43 20 68 65 | ....///.without.allocating.GC.he |
| 11460 | 61 70 20 6d 65 6d 6f 72 79 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 | ap.memory...............///.</su |
| 11480 | 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e | mmary>..............///.<param.n |
| 114a0 | 61 6d 65 3d 22 62 75 66 66 65 72 22 3e 4d 65 6d 6f 72 79 20 62 75 66 66 65 72 20 74 6f 20 72 65 | ame="buffer">Memory.buffer.to.re |
| 114c0 | 61 64 20 74 68 65 20 76 61 6c 75 65 20 69 6e 74 6f 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 | ad.the.value.into.</param>...... |
| 114e0 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 62 75 66 66 65 72 53 | ........///.<param.name="bufferS |
| 11500 | 69 7a 65 22 3e 53 69 7a 65 20 6f 66 20 62 75 66 66 65 72 20 61 6c 6c 6f 63 61 74 65 64 20 61 74 | ize">Size.of.buffer.allocated.at |
| 11520 | 20 3c 70 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d 22 62 75 66 66 65 72 22 2f 3e 2e 20 4d 75 73 74 | .<paramref.name="buffer"/>..Must |
| 11540 | 20 62 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 74 20 6c 65 61 73 74 20 3c 73 | .be..............///.at.least.<s |
| 11560 | 65 65 20 63 72 65 66 3d 22 76 61 6c 75 65 53 69 7a 65 49 6e 42 79 74 65 73 22 2f 3e 2e 3c 2f 70 | ee.cref="valueSizeInBytes"/>.</p |
| 11580 | 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 65 78 63 65 70 74 69 6f | aram>..............///.<exceptio |
| 115a0 | 6e 20 63 72 65 66 3d 22 41 72 67 75 6d 65 6e 74 4e 75 6c 6c 45 78 63 65 70 74 69 6f 6e 22 3e 3c | n.cref="ArgumentNullException">< |
| 115c0 | 70 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d 22 62 75 66 66 65 72 22 2f 3e 20 69 73 20 3c 63 3e 6e | paramref.name="buffer"/>.is.<c>n |
| 115e0 | 75 6c 6c 3c 2f 63 3e 2e 3c 2f 65 78 63 65 70 74 69 6f 6e 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 | ull</c>.</exception>............ |
| 11600 | 20 20 2f 2f 2f 20 3c 65 78 63 65 70 74 69 6f 6e 20 63 72 65 66 3d 22 41 72 67 75 6d 65 6e 74 45 | ..///.<exception.cref="ArgumentE |
| 11620 | 78 63 65 70 74 69 6f 6e 22 3e 3c 70 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d 22 62 75 66 66 65 72 | xception"><paramref.name="buffer |
| 11640 | 53 69 7a 65 22 2f 3e 20 69 73 20 74 6f 6f 20 73 6d 61 6c 6c 2e 3c 2f 65 78 63 65 70 74 69 6f 6e | Size"/>.is.too.small.</exception |
| 11660 | 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 | >..............///.<remarks>.... |
| 11680 | 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 20 20 20 | ..........///.<example>......... |
| 116a0 | 20 20 20 20 20 2f 2f 2f 20 3c 63 6f 64 65 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f | .....///.<code>............../// |
| 116c0 | 20 2f 2f 20 52 65 61 64 20 61 20 56 65 63 74 6f 72 32 20 75 73 69 6e 67 20 74 68 65 20 72 61 77 | .//.Read.a.Vector2.using.the.raw |
| 116e0 | 20 6d 65 6d 6f 72 79 20 52 65 61 64 56 61 6c 75 65 20 41 50 49 2e 0d 0a 20 20 20 20 20 20 20 20 | .memory.ReadValue.API........... |
| 11700 | 20 20 20 20 2f 2f 2f 20 2f 2f 20 48 65 72 65 20 77 65 20 6a 75 73 74 20 72 65 61 64 20 69 6e 74 | ....///.//.Here.we.just.read.int |
| 11720 | 6f 20 61 20 6c 6f 63 61 6c 20 76 61 72 69 61 62 6c 65 20 77 68 69 63 68 20 77 65 20 63 6f 75 6c | o.a.local.variable.which.we.coul |
| 11740 | 64 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 6a 75 73 74 20 61 73 20 77 65 | d..............///.//.just.as.we |
| 11760 | 6c 6c 20 28 61 6e 64 20 6d 6f 72 65 20 65 61 73 69 6c 79 29 20 64 6f 20 75 73 69 6e 67 20 52 65 | ll.(and.more.easily).do.using.Re |
| 11780 | 61 64 56 61 6c 75 65 26 6c 74 3b 56 65 63 74 6f 72 32 26 67 74 3b 2e 0d 0a 20 20 20 20 20 20 20 | adValue<Vector2>.......... |
| 117a0 | 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 53 74 69 6c 6c 2c 20 69 74 20 73 65 72 76 65 73 20 61 73 20 | .....///.//.Still,.it.serves.as. |
| 117c0 | 61 20 64 65 6d 6f 6e 73 74 72 61 74 69 6f 6e 20 66 6f 72 20 68 6f 77 20 74 68 65 20 41 50 49 0d | a.demonstration.for.how.the.API. |
| 117e0 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 6f 70 65 72 61 74 65 73 20 69 6e 20 | .............///.//.operates.in. |
| 11800 | 67 65 6e 65 72 61 6c 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 75 6e 73 61 66 65 | general...............///.unsafe |
| 11820 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | ..............///.{............. |
| 11840 | 20 2f 2f 2f 20 20 20 20 20 76 61 72 20 76 61 6c 75 65 20 3d 20 64 65 66 61 75 6c 74 28 56 65 63 | .///.....var.value.=.default(Vec |
| 11860 | 74 6f 72 32 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 76 61 72 20 | tor2);..............///.....var. |
| 11880 | 76 61 6c 75 65 50 74 72 20 3d 20 55 6e 73 61 66 65 55 74 69 6c 69 74 79 2e 41 64 64 72 65 73 73 | valuePtr.=.UnsafeUtility.Address |
| 118a0 | 4f 66 28 72 65 66 20 76 61 6c 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 | Of(ref.value);..............///. |
| 118c0 | 20 20 20 20 63 6f 6e 74 65 78 74 2e 52 65 61 64 56 61 6c 75 65 28 62 75 66 66 65 72 2c 20 55 6e | ....context.ReadValue(buffer,.Un |
| 118e0 | 73 61 66 65 55 74 69 6c 69 74 79 2e 53 69 7a 65 4f 66 26 6c 74 3b 56 65 63 74 6f 72 32 26 67 74 | safeUtility.SizeOf<Vector2> |
| 11900 | 3b 28 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 7d 0d 0a 20 20 20 20 20 20 | ;());..............///.}........ |
| 11920 | 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 63 6f 64 65 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f | ......///.</code>............../ |
| 11940 | 2f 2f 20 3c 2f 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c | //.</example>..............///.< |
| 11960 | 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 | /remarks>..............///.<seea |
| 11980 | 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 45 78 74 65 6e 73 69 6f 6e 73 | lso.cref="InputControlExtensions |
| 119a0 | 2e 52 65 61 64 56 61 6c 75 65 49 6e 74 6f 42 75 66 66 65 72 22 2f 3e 0d 0a 20 20 20 20 20 20 20 | .ReadValueIntoBuffer"/>......... |
| 119c0 | 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 | .....///.<seealso.cref="InputAct |
| 119e0 | 69 6f 6e 2e 52 65 61 64 56 61 6c 75 65 7b 54 56 61 6c 75 65 7d 22 2f 3e 0d 0a 20 20 20 20 20 20 | ion.ReadValue{TValue}"/>........ |
| 11a00 | 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 52 65 61 64 56 61 6c | ......///.<seealso.cref="ReadVal |
| 11a20 | 75 65 7b 54 56 61 6c 75 65 7d 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 | ue{TValue}"/>..............publi |
| 11a40 | 63 20 75 6e 73 61 66 65 20 76 6f 69 64 20 52 65 61 64 56 61 6c 75 65 28 76 6f 69 64 2a 20 62 75 | c.unsafe.void.ReadValue(void*.bu |
| 11a60 | 66 66 65 72 2c 20 69 6e 74 20 62 75 66 66 65 72 53 69 7a 65 29 0d 0a 20 20 20 20 20 20 20 20 20 | ffer,.int.bufferSize)........... |
| 11a80 | 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 62 75 66 66 65 72 | ...{..................if.(buffer |
| 11aa0 | 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 | .==.null)......................t |
| 11ac0 | 68 72 6f 77 20 6e 65 77 20 41 72 67 75 6d 65 6e 74 4e 75 6c 6c 45 78 63 65 70 74 69 6f 6e 28 6e | hrow.new.ArgumentNullException(n |
| 11ae0 | 61 6d 65 6f 66 28 62 75 66 66 65 72 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | ameof(buffer));................. |
| 11b00 | 20 20 20 6d 5f 53 74 61 74 65 3f 2e 52 65 61 64 56 61 6c 75 65 28 62 69 6e 64 69 6e 67 49 6e 64 | ...m_State?.ReadValue(bindingInd |
| 11b20 | 65 78 2c 20 63 6f 6e 74 72 6f 6c 49 6e 64 65 78 2c 20 62 75 66 66 65 72 2c 20 62 75 66 66 65 72 | ex,.controlIndex,.buffer,.buffer |
| 11b40 | 53 69 7a 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 | Size);..............}........... |
| 11b60 | 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | .....///.<summary>.............. |
| 11b80 | 2f 2f 2f 20 52 65 61 64 20 74 68 65 20 76 61 6c 75 65 20 6f 66 20 74 68 65 20 61 63 74 69 6f 6e | ///.Read.the.value.of.the.action |
| 11ba0 | 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 | ...............///.</summary>... |
| 11bc0 | 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 74 79 70 65 70 61 72 61 6d 20 6e 61 6d 65 3d 22 | ...........///.<typeparam.name=" |
| 11be0 | 54 56 61 6c 75 65 22 3e 54 79 70 65 20 6f 66 20 76 61 6c 75 65 20 74 6f 20 72 65 61 64 2e 20 54 | TValue">Type.of.value.to.read..T |
| 11c00 | 68 69 73 20 6d 75 73 74 20 63 6f 72 72 65 73 70 6f 6e 64 20 74 6f 20 74 68 65 0d 0a 20 20 20 20 | his.must.correspond.to.the...... |
| 11c20 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 65 78 70 65 63 74 65 64 20 62 79 20 65 69 74 68 65 72 20 3c | ........///.expected.by.either.< |
| 11c40 | 73 65 65 20 63 72 65 66 3d 22 63 6f 6e 74 72 6f 6c 22 2f 3e 20 6f 72 2c 20 69 66 20 69 74 20 69 | see.cref="control"/>.or,.if.it.i |
| 11c60 | 73 20 61 20 63 6f 6d 70 6f 73 69 74 65 2c 20 62 79 20 74 68 65 0d 0a 20 20 20 20 20 20 20 20 20 | s.a.composite,.by.the........... |
| 11c80 | 20 20 20 2f 2f 2f 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 42 69 6e 64 69 6e 67 43 6f | ...///.<see.cref="InputBindingCo |
| 11ca0 | 6d 70 6f 73 69 74 65 22 2f 3e 20 69 6e 20 75 73 65 2e 3c 2f 74 79 70 65 70 61 72 61 6d 3e 0d 0a | mposite"/>.in.use.</typeparam>.. |
| 11cc0 | 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 54 68 65 20 76 61 6c | ............///.<returns>The.val |
| 11ce0 | 75 65 20 72 65 61 64 20 66 72 6f 6d 20 74 68 65 20 61 63 74 69 6f 6e 2e 3c 2f 72 65 74 75 72 6e | ue.read.from.the.action.</return |
| 11d00 | 73 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 65 78 63 65 70 74 69 6f 6e 20 63 | s>..............///.<exception.c |
| 11d20 | 72 65 66 3d 22 49 6e 76 61 6c 69 64 4f 70 65 72 61 74 69 6f 6e 45 78 63 65 70 74 69 6f 6e 22 3e | ref="InvalidOperationException"> |
| 11d40 | 54 68 65 20 67 69 76 65 6e 20 74 79 70 65 20 3c 74 79 70 65 70 61 72 61 6d 72 65 66 20 6e 61 6d | The.given.type.<typeparamref.nam |
| 11d60 | 65 3d 22 54 56 61 6c 75 65 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 64 6f | e="TValue"/>..............///.do |
| 11d80 | 65 73 20 6e 6f 74 20 6d 61 74 63 68 20 74 68 65 20 76 61 6c 75 65 20 74 79 70 65 20 65 78 70 65 | es.not.match.the.value.type.expe |
| 11da0 | 63 74 65 64 20 62 79 20 74 68 65 20 63 6f 6e 74 72 6f 6c 20 6f 72 20 62 69 6e 64 69 6e 67 20 63 | cted.by.the.control.or.binding.c |
| 11dc0 | 6f 6d 70 6f 73 69 74 65 2e 3c 2f 65 78 63 65 70 74 69 6f 6e 3e 0d 0a 20 20 20 20 20 20 20 20 20 | omposite.</exception>........... |
| 11de0 | 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f | ...///.<seealso.cref="InputActio |
| 11e00 | 6e 2e 52 65 61 64 56 61 6c 75 65 7b 54 56 61 6c 75 65 7d 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 | n.ReadValue{TValue}"/>.......... |
| 11e20 | 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 52 65 61 64 56 61 6c 75 65 | ....///.<seealso.cref="ReadValue |
| 11e40 | 28 76 6f 69 64 2a 2c 69 6e 74 29 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 | (void*,int)"/>..............///. |
| 11e60 | 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 52 65 61 64 56 61 6c 75 65 41 73 4f 62 6a 65 63 74 | <seealso.cref="ReadValueAsObject |
| 11e80 | 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 54 56 61 6c 75 65 20 52 | "/>..............public.TValue.R |
| 11ea0 | 65 61 64 56 61 6c 75 65 3c 54 56 61 6c 75 65 3e 28 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | eadValue<TValue>().............. |
| 11ec0 | 20 20 20 20 77 68 65 72 65 20 54 56 61 6c 75 65 20 3a 20 73 74 72 75 63 74 0d 0a 20 20 20 20 20 | ....where.TValue.:.struct....... |
| 11ee0 | 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 76 61 | .......{..................var.va |
| 11f00 | 6c 75 65 20 3d 20 64 65 66 61 75 6c 74 28 54 56 61 6c 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 | lue.=.default(TValue);.......... |
| 11f20 | 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 53 74 61 74 65 20 21 3d 20 6e 75 6c 6c 20 26 26 20 70 | ........if.(m_State.!=.null.&&.p |
| 11f40 | 68 61 73 65 20 21 3d 20 49 6e 70 75 74 41 63 74 69 6f 6e 50 68 61 73 65 2e 43 61 6e 63 65 6c 65 | hase.!=.InputActionPhase.Cancele |
| 11f60 | 64 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 6c 75 65 20 3d 20 | d)......................value.=. |
| 11f80 | 6d 5f 53 74 61 74 65 2e 52 65 61 64 56 61 6c 75 65 3c 54 56 61 6c 75 65 3e 28 62 69 6e 64 69 6e | m_State.ReadValue<TValue>(bindin |
| 11fa0 | 67 49 6e 64 65 78 2c 20 63 6f 6e 74 72 6f 6c 49 6e 64 65 78 29 3b 0d 0a 20 20 20 20 20 20 20 20 | gIndex,.controlIndex);.......... |
| 11fc0 | 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 76 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 | ........return.value;........... |
| 11fe0 | 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 | ...}................///.<summary |
| 12000 | 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 52 65 61 64 20 74 68 65 20 63 75 72 72 | >..............///.Read.the.curr |
| 12020 | 65 6e 74 20 76 61 6c 75 65 20 6f 66 20 74 68 65 20 61 63 74 69 6f 6e 20 61 73 20 61 20 3c 63 3e | ent.value.of.the.action.as.a.<c> |
| 12040 | 66 6c 6f 61 74 3c 2f 63 3e 20 61 6e 64 20 72 65 74 75 72 6e 20 74 72 75 65 20 69 66 20 69 74 20 | float</c>.and.return.true.if.it. |
| 12060 | 69 73 20 65 71 75 61 6c 20 74 6f 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 6f 72 20 | is.equal.to..............///.or. |
| 12080 | 67 72 65 61 74 65 72 20 74 68 61 6e 20 74 68 65 20 62 75 74 74 6f 6e 20 70 72 65 73 73 20 74 68 | greater.than.the.button.press.th |
| 120a0 | 72 65 73 68 6f 6c 64 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d | reshold...............///.</summ |
| 120c0 | 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 54 | ary>..............///.<returns>T |
| 120e0 | 72 75 65 20 69 66 20 74 68 65 20 61 63 74 69 6f 6e 20 69 73 20 63 6f 6e 73 69 64 65 72 65 64 20 | rue.if.the.action.is.considered. |
| 12100 | 69 6e 20 22 70 72 65 73 73 65 64 22 20 73 74 61 74 65 2c 20 66 61 6c 73 65 20 6f 74 68 65 72 77 | in."pressed".state,.false.otherw |
| 12120 | 69 73 65 2e 3c 2f 72 65 74 75 72 6e 73 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 | ise.</returns>..............///. |
| 12140 | 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 66 20 74 68 | <remarks>..............///.If.th |
| 12160 | 65 20 63 75 72 72 65 6e 74 6c 79 20 61 63 74 69 76 65 20 63 6f 6e 74 72 6f 6c 20 69 73 20 61 20 | e.currently.active.control.is.a. |
| 12180 | 3c 73 65 65 20 63 72 65 66 3d 22 42 75 74 74 6f 6e 43 6f 6e 74 72 6f 6c 22 2f 3e 2c 20 74 68 65 | <see.cref="ButtonControl"/>,.the |
| 121a0 | 20 3c 73 65 65 20 63 72 65 66 3d 22 42 75 74 74 6f 6e 43 6f 6e 74 72 6f 6c 2e 70 72 65 73 73 50 | .<see.cref="ButtonControl.pressP |
| 121c0 | 6f 69 6e 74 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 6f 66 20 74 68 65 20 | oint"/>..............///.of.the. |
| 121e0 | 62 75 74 74 6f 6e 20 77 69 6c 6c 20 62 65 20 74 61 6b 65 6e 20 69 6e 74 6f 20 61 63 63 6f 75 6e | button.will.be.taken.into.accoun |
| 12200 | 74 20 28 69 66 20 73 65 74 29 2e 20 49 66 20 74 68 65 72 65 20 69 73 20 6e 6f 20 63 75 73 74 6f | t.(if.set)..If.there.is.no.custo |
| 12220 | 6d 20 62 75 74 74 6f 6e 20 70 72 65 73 73 20 70 6f 69 6e 74 2c 20 74 68 65 0d 0a 20 20 20 20 20 | m.button.press.point,.the....... |
| 12240 | 20 20 20 20 20 20 20 2f 2f 2f 20 67 6c 6f 62 61 6c 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 | .......///.global.<see.cref="Inp |
| 12260 | 75 74 53 65 74 74 69 6e 67 73 2e 64 65 66 61 75 6c 74 42 75 74 74 6f 6e 50 72 65 73 73 50 6f 69 | utSettings.defaultButtonPressPoi |
| 12280 | 6e 74 22 2f 3e 20 77 69 6c 6c 20 62 65 20 75 73 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | nt"/>.will.be.used.............. |
| 122a0 | 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f | .///.</remarks>............../// |
| 122c0 | 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 53 65 74 74 69 6e 67 73 2e 64 65 | .<seealso.cref="InputSettings.de |
| 122e0 | 66 61 75 6c 74 42 75 74 74 6f 6e 50 72 65 73 73 50 6f 69 6e 74 22 2f 3e 0d 0a 20 20 20 20 20 20 | faultButtonPressPoint"/>........ |
| 12300 | 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 42 75 74 74 6f 6e 43 | ......///.<seealso.cref="ButtonC |
| 12320 | 6f 6e 74 72 6f 6c 2e 70 72 65 73 73 50 6f 69 6e 74 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 | ontrol.pressPoint"/>............ |
| 12340 | 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 52 65 61 64 56 61 6c 75 65 41 73 42 75 74 74 6f 6e 28 | ..public.bool.ReadValueAsButton( |
| 12360 | 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | )..............{................ |
| 12380 | 20 20 76 61 72 20 76 61 6c 75 65 20 3d 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 | ..var.value.=.false;............ |
| 123a0 | 20 20 20 20 20 20 69 66 20 28 6d 5f 53 74 61 74 65 20 21 3d 20 6e 75 6c 6c 20 26 26 20 70 68 61 | ......if.(m_State.!=.null.&&.pha |
| 123c0 | 73 65 20 21 3d 20 49 6e 70 75 74 41 63 74 69 6f 6e 50 68 61 73 65 2e 43 61 6e 63 65 6c 65 64 29 | se.!=.InputActionPhase.Canceled) |
| 123e0 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 6c 75 65 20 3d 20 6d 5f | ......................value.=.m_ |
| 12400 | 53 74 61 74 65 2e 52 65 61 64 56 61 6c 75 65 41 73 42 75 74 74 6f 6e 28 62 69 6e 64 69 6e 67 49 | State.ReadValueAsButton(bindingI |
| 12420 | 6e 64 65 78 2c 20 63 6f 6e 74 72 6f 6c 49 6e 64 65 78 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 | ndex,.controlIndex);............ |
| 12440 | 20 20 20 20 20 20 72 65 74 75 72 6e 20 76 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | ......return.value;............. |
| 12460 | 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d | .}................///.<summary>. |
| 12480 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 53 61 6d 65 20 61 73 20 3c 73 65 65 20 63 72 | .............///.Same.as.<see.cr |
| 124a0 | 65 66 3d 22 52 65 61 64 56 61 6c 75 65 7b 54 56 61 6c 75 65 7d 22 2f 3e 20 65 78 63 65 70 74 20 | ef="ReadValue{TValue}"/>.except. |
| 124c0 | 74 68 61 74 20 69 74 20 69 73 20 6e 6f 74 20 6e 65 63 65 73 73 61 72 79 20 74 6f 0d 0a 20 20 20 | that.it.is.not.necessary.to..... |
| 124e0 | 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 6b 6e 6f 77 20 74 68 65 20 74 79 70 65 20 6f 66 20 76 61 | .........///.know.the.type.of.va |
| 12500 | 6c 75 65 20 61 74 20 63 6f 6d 70 69 6c 65 20 74 69 6d 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 | lue.at.compile.time............. |
| 12520 | 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f | ..///.</summary>..............// |
| 12540 | 2f 20 3c 72 65 74 75 72 6e 73 3e 54 68 65 20 63 75 72 72 65 6e 74 20 76 61 6c 75 65 20 66 72 6f | /.<returns>The.current.value.fro |
| 12560 | 6d 20 74 68 65 20 62 69 6e 64 69 6e 67 20 74 68 61 74 20 74 72 69 67 67 65 72 65 64 20 74 68 65 | m.the.binding.that.triggered.the |
| 12580 | 20 61 63 74 69 6f 6e 2e 3c 2f 72 65 74 75 72 6e 73 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | .action.</returns>.............. |
| 125a0 | 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 | ///.<remarks>..............///.T |
| 125c0 | 68 69 73 20 6d 65 74 68 6f 64 20 61 6c 6c 6f 63 61 74 65 73 20 47 43 20 68 65 61 70 20 6d 65 6d | his.method.allocates.GC.heap.mem |
| 125e0 | 6f 72 79 2e 20 55 73 69 6e 67 20 69 74 20 64 75 72 69 6e 67 20 6e 6f 72 6d 61 6c 20 67 61 6d 65 | ory..Using.it.during.normal.game |
| 12600 | 70 6c 61 79 20 77 69 6c 6c 20 6c 65 61 64 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 | play.will.lead..............///. |
| 12620 | 74 6f 20 66 72 61 6d 65 2d 72 61 74 65 20 69 6e 73 74 61 62 69 6c 69 74 69 65 73 2e 0d 0a 20 20 | to.frame-rate.instabilities..... |
| 12640 | 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 | ..........///.</remarks>........ |
| 12660 | 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 52 65 61 64 56 61 6c | ......///.<seealso.cref="ReadVal |
| 12680 | 75 65 7b 54 56 61 6c 75 65 7d 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 | ue{TValue}"/>..............publi |
| 126a0 | 63 20 6f 62 6a 65 63 74 20 52 65 61 64 56 61 6c 75 65 41 73 4f 62 6a 65 63 74 28 29 0d 0a 20 20 | c.object.ReadValueAsObject().... |
| 126c0 | 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 | ..........{..................ret |
| 126e0 | 75 72 6e 20 6d 5f 53 74 61 74 65 3f 2e 52 65 61 64 56 61 6c 75 65 41 73 4f 62 6a 65 63 74 28 62 | urn.m_State?.ReadValueAsObject(b |
| 12700 | 69 6e 64 69 6e 67 49 6e 64 65 78 2c 20 63 6f 6e 74 72 6f 6c 49 6e 64 65 78 29 3b 0d 0a 20 20 20 | indingIndex,.controlIndex);..... |
| 12720 | 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 | .........}................///.<s |
| 12740 | 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 52 65 74 75 72 6e 20 | ummary>..............///.Return. |
| 12760 | 61 20 73 74 72 69 6e 67 20 72 65 70 72 65 73 65 6e 74 61 74 69 6f 6e 20 6f 66 20 74 68 65 20 63 | a.string.representation.of.the.c |
| 12780 | 6f 6e 74 65 78 74 20 75 73 65 66 75 6c 20 66 6f 72 20 64 65 62 75 67 67 69 6e 67 2e 0d 0a 20 20 | ontext.useful.for.debugging..... |
| 127a0 | 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 | ..........///.</summary>........ |
| 127c0 | 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 53 74 72 69 6e 67 20 72 65 70 72 65 73 | ......///.<returns>String.repres |
| 127e0 | 65 6e 74 61 74 69 6f 6e 20 6f 66 20 74 68 65 20 63 6f 6e 74 65 78 74 2e 3c 2f 72 65 74 75 72 6e | entation.of.the.context.</return |
| 12800 | 73 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 | s>..............public.override. |
| 12820 | 73 74 72 69 6e 67 20 54 6f 53 74 72 69 6e 67 28 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b | string.ToString()..............{ |
| 12840 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 24 22 7b 7b 20 61 63 | ..................return.$"{{.ac |
| 12860 | 74 69 6f 6e 3d 7b 61 63 74 69 6f 6e 7d 20 70 68 61 73 65 3d 7b 70 68 61 73 65 7d 20 74 69 6d 65 | tion={action}.phase={phase}.time |
| 12880 | 3d 7b 74 69 6d 65 7d 20 63 6f 6e 74 72 6f 6c 3d 7b 63 6f 6e 74 72 6f 6c 7d 20 76 61 6c 75 65 3d | ={time}.control={control}.value= |
| 128a0 | 7b 52 65 61 64 56 61 6c 75 65 41 73 4f 62 6a 65 63 74 28 29 7d 20 69 6e 74 65 72 61 63 74 69 6f | {ReadValueAsObject()}.interactio |
| 128c0 | 6e 3d 7b 69 6e 74 65 72 61 63 74 69 6f 6e 7d 20 7d 7d 22 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 | n={interaction}.}}";............ |
| 128e0 | 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 7d 0d 0a 00 00 00 00 00 00 | ..}..........}......}..}........ |
| 12900 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0b 00 00 00 49 6e 70 75 74 41 63 74 69 6f 6e 00 | ....................InputAction. |
| 12920 | 17 00 00 00 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 6e 70 75 74 53 79 73 74 65 6d 00 | ....UnityEngine.InputSystem. |