summaryrefslogtreecommitdiff
path: root/Library/Artifacts/55/55ddaaad48207ef9dcde584f78f65ffe
blob: 8582c45a69352a1ebb30307d7348de6668b369c7 (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 50 fc 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe ......P.............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 9c 40 00 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 11 00 00 00 49 49 6e 70 75 74 49 6e 74 65 72 61 63 74 69 6f 6e 00 00 00 ............IInputInteraction...
10a0 28 40 00 00 75 73 69 6e 67 20 53 79 73 74 65 6d 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e (@..using.System;..using.System.
10c0 43 6f 6d 70 6f 6e 65 6e 74 4d 6f 64 65 6c 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 52 65 ComponentModel;..using.System.Re
10e0 66 6c 65 63 74 69 6f 6e 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 6e 70 flection;..using.UnityEngine.Inp
1100 75 74 53 79 73 74 65 6d 2e 55 74 69 6c 69 74 69 65 73 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 utSystem.Utilities;..using.Unity
1120 45 6e 67 69 6e 65 2e 53 63 72 69 70 74 69 6e 67 3b 0d 0a 0d 0a 2f 2f 20 5b 47 45 53 54 55 52 45 Engine.Scripting;....//.[GESTURE
1140 53 5d 0d 0a 2f 2f 20 49 64 65 61 20 66 6f 72 20 76 32 20 6f 66 20 74 68 65 20 69 6e 70 75 74 20 S]..//.Idea.for.v2.of.the.input.
1160 73 79 73 74 65 6d 3a 0d 0a 2f 2f 20 20 20 20 20 53 65 70 61 72 61 74 65 20 69 6e 74 65 72 61 63 system:..//.....Separate.interac
1180 74 69 6f 6e 20 2a 72 65 63 6f 67 6e 69 74 69 6f 6e 2a 20 66 72 6f 6d 20 69 6e 74 65 72 61 63 74 tion.*recognition*.from.interact
11a0 69 6f 6e 20 2a 72 65 70 72 65 73 65 6e 74 61 74 69 6f 6e 2a 0d 0a 2f 2f 20 20 20 20 20 54 68 69 ion.*representation*..//.....Thi
11c0 73 20 77 69 6c 6c 20 6c 69 6b 65 6c 79 20 61 6c 73 6f 20 22 73 6f 6c 76 65 22 20 67 65 73 74 75 s.will.likely.also."solve".gestu
11e0 72 65 73 0d 0a 2f 2f 0d 0a 2f 2f 20 20 20 20 20 41 54 4d 2c 20 61 6e 20 69 6e 74 65 72 61 63 74 res..//..//.....ATM,.an.interact
1200 69 6f 6e 20 69 73 20 61 20 70 72 65 62 75 69 6c 74 20 74 68 69 6e 67 20 74 68 61 74 20 72 6f 6c ion.is.a.prebuilt.thing.that.rol
1220 6c 73 20 72 65 63 6f 67 6e 69 74 69 6f 6e 20 61 6e 64 20 72 65 70 72 65 73 65 6e 74 61 74 69 6f ls.recognition.and.representatio
1240 6e 20 6f 66 20 61 6e 20 69 6e 74 65 72 61 63 74 69 6f 6e 20 69 6e 74 6f 0d 0a 2f 2f 20 20 20 20 n.of.an.interaction.into..//....
1260 20 6f 6e 65 20 73 69 6e 67 6c 65 20 74 68 69 6e 67 2e 20 54 68 61 74 20 6c 69 6d 69 74 73 20 68 .one.single.thing..That.limits.h
1280 6f 77 20 70 6f 77 65 72 66 75 6c 20 74 68 69 73 20 63 61 6e 20 62 65 2e 20 54 68 65 72 65 27 73 ow.powerful.this.can.be..There's
12a0 20 6f 6e 6c 79 20 65 76 65 72 20 6f 6e 65 20 69 6e 74 65 72 61 63 74 69 6f 6e 20 63 6f 6d 69 6e .only.ever.one.interaction.comin
12c0 67 20 66 72 6f 6d 20 65 61 63 68 20 69 6e 74 65 72 61 63 74 69 6f 6e 0d 0a 2f 2f 20 20 20 20 20 g.from.each.interaction..//.....
12e0 61 64 64 65 64 20 74 6f 20 61 20 73 65 74 75 70 2e 0d 0a 2f 2f 0d 0a 2f 2f 20 20 20 20 20 41 20 added.to.a.setup...//..//.....A.
1300 6d 75 63 68 20 6d 6f 72 65 20 70 6f 77 65 72 66 75 6c 20 77 61 79 20 77 6f 75 6c 64 20 62 65 20 much.more.powerful.way.would.be.
1320 74 6f 20 68 61 76 65 20 74 68 65 20 69 6e 74 65 72 61 63 74 69 6f 6e 73 20 63 6f 6e 66 69 67 75 to.have.the.interactions.configu
1340 72 65 64 20 6f 6e 20 61 63 74 69 6f 6e 73 20 61 6e 64 20 62 69 6e 64 69 6e 67 73 20 61 64 64 20 red.on.actions.and.bindings.add.
1360 2a 72 65 63 6f 67 6e 69 7a 65 72 73 2a 0d 0a 2f 2f 20 20 20 20 20 77 68 69 63 68 20 74 68 65 6e *recognizers*..//.....which.then
1380 20 2a 67 65 6e 65 72 61 74 65 2a 20 69 6e 74 65 72 61 63 74 69 6f 6e 73 2e 20 54 68 69 73 20 77 .*generate*.interactions..This.w
13a0 61 79 2c 20 61 20 73 69 6e 67 6c 65 20 72 65 63 6f 67 6e 69 7a 65 72 20 63 6f 75 6c 64 20 73 70 ay,.a.single.recognizer.could.sp
13c0 61 77 6e 20 61 72 62 69 74 72 61 72 79 20 6d 61 6e 79 20 69 6e 74 65 72 61 63 74 69 6f 6e 73 2e awn.arbitrary.many.interactions.
13e0 20 57 68 61 74 20 74 68 65 0d 0a 2f 2f 20 20 20 20 20 72 65 63 6f 67 6e 69 7a 65 72 20 69 73 20 .What.the..//.....recognizer.is.
1400 61 74 74 61 63 68 65 64 20 74 6f 20 28 74 68 65 20 62 69 6e 64 69 6e 67 73 29 20 77 6f 75 6c 64 attached.to.(the.bindings).would
1420 20 73 69 6d 70 6c 79 20 61 63 74 20 61 73 20 74 72 69 67 67 65 72 73 2e 20 42 65 79 6f 6e 64 20 .simply.act.as.triggers..Beyond.
1440 74 68 61 74 2c 20 74 68 65 20 72 65 63 6f 67 6e 69 7a 65 72 20 77 6f 75 6c 64 20 68 61 76 65 0d that,.the.recognizer.would.have.
1460 0a 2f 2f 20 20 20 20 20 70 6c 65 6e 74 79 20 66 72 65 65 64 6f 6d 20 74 6f 20 73 74 61 72 74 2c .//.....plenty.freedom.to.start,
1480 20 70 65 72 66 6f 72 6d 2c 20 61 6e 64 20 73 74 6f 70 20 69 6e 74 65 72 61 63 74 69 6f 6e 73 20 .perform,.and.stop.interactions.
14a0 68 61 70 70 65 6e 69 6e 67 20 69 6e 20 72 65 73 70 6f 6e 73 65 20 74 6f 20 69 6e 70 75 74 2e 0d happening.in.response.to.input..
14c0 0a 2f 2f 0d 0a 2f 2f 20 20 20 20 20 49 74 27 6c 6c 20 6c 69 6b 65 6c 79 20 62 65 20 61 20 62 72 .//..//.....It'll.likely.be.a.br
14e0 65 61 6b 69 6e 67 20 63 68 61 6e 67 65 20 61 73 20 66 61 72 20 61 73 20 75 73 65 72 2d 69 6d 70 eaking.change.as.far.as.user-imp
1500 6c 65 6d 65 6e 74 65 64 20 69 6e 74 65 72 61 63 74 69 6f 6e 73 20 67 6f 20 62 75 74 20 61 74 20 lemented.interactions.go.but.at.
1520 6c 65 61 73 74 20 74 68 65 20 64 61 74 61 20 61 73 20 69 74 20 6c 6f 6f 6b 73 20 74 6f 64 61 79 least.the.data.as.it.looks.today
1540 0d 0a 2f 2f 20 20 20 20 20 73 68 6f 75 6c 64 20 77 6f 72 6b 20 77 69 74 68 20 74 68 69 73 20 6a ..//.....should.work.with.this.j
1560 75 73 74 20 66 69 6e 65 2e 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 61 6c 6c 6f 77 20 69 6e 74 ust.fine.....////TODO:.allow.int
1580 65 72 61 63 74 69 6f 6e 73 20 74 6f 20 62 65 20 63 6f 6e 73 74 72 61 69 6e 65 64 20 74 6f 20 61 eractions.to.be.constrained.to.a
15a0 20 73 70 65 63 69 66 69 63 20 49 6e 70 75 74 41 63 74 69 6f 6e 54 79 70 65 0d 0a 0d 0a 2f 2f 2f .specific.InputActionType....///
15c0 2f 54 4f 44 4f 3a 20 61 64 64 20 77 61 79 20 66 6f 72 20 70 61 72 61 6d 65 74 65 72 73 20 6f 6e /TODO:.add.way.for.parameters.on
15e0 20 69 6e 74 65 72 61 63 74 69 6f 6e 73 20 61 6e 64 20 70 72 6f 63 65 73 73 6f 72 73 20 74 6f 20 .interactions.and.processors.to.
1600 62 65 20 64 72 69 76 65 6e 20 66 72 6f 6d 20 67 6c 6f 62 61 6c 20 76 61 6c 75 65 20 73 6f 75 72 be.driven.from.global.value.sour
1620 63 65 20 74 68 61 74 20 69 73 20 4e 4f 54 20 49 6e 70 75 74 53 65 74 74 69 6e 67 73 0d 0a 2f 2f ce.that.is.NOT.InputSettings..//
1640 2f 2f 20 20 20 20 20 20 28 41 54 4d 20 69 74 27 73 20 76 65 72 79 20 68 61 72 64 20 74 6f 20 65 //......(ATM.it's.very.hard.to.e
1660 2e 67 2e 20 68 61 76 65 20 61 20 73 63 61 6c 65 20 76 61 6c 75 65 20 6f 6e 20 67 61 6d 65 70 61 .g..have.a.scale.value.on.gamepa
1680 64 20 73 74 69 63 6b 20 62 69 6e 64 69 6e 67 73 20 77 68 69 63 68 20 69 73 20 64 65 74 65 72 6d d.stick.bindings.which.is.determ
16a0 69 6e 65 64 20 64 79 6e 61 6d 69 63 61 6c 6c 79 20 66 72 6f 6d 20 70 6c 61 79 65 72 0d 0a 2f 2f ined.dynamically.from.player..//
16c0 2f 2f 20 20 20 20 20 20 73 65 74 74 69 6e 67 73 20 69 6e 20 74 68 65 20 67 61 6d 65 29 0d 0a 0d //......settings.in.the.game)...
16e0 0a 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 77 68 61 74 20 61 62 6f 75 74 20 70 75 74 74 69 6e 67 20 .////REVIEW:.what.about.putting.
1700 61 6e 20 69 6e 73 74 61 6e 63 65 20 6f 66 20 6f 6e 65 20 6f 66 20 74 68 65 73 65 20 6f 6e 20 65 an.instance.of.one.of.these.on.e
1720 76 65 72 79 20 72 65 73 6f 6c 76 65 64 20 63 6f 6e 74 72 6f 6c 20 69 6e 73 74 65 61 64 20 6f 66 very.resolved.control.instead.of
1740 20 73 68 61 72 69 6e 67 20 69 74 20 62 65 74 77 65 65 6e 20 61 6c 6c 20 63 6f 6e 74 72 6f 6c 73 .sharing.it.between.all.controls
1760 20 72 65 73 6f 6c 76 65 64 20 66 72 6f 6d 20 61 20 62 69 6e 64 69 6e 67 3f 0d 0a 0d 0a 2f 2f 2f .resolved.from.a.binding?....///
1780 2f 52 45 56 49 45 57 3a 20 63 61 6e 20 77 65 20 68 61 76 65 20 6d 75 6c 74 69 70 6c 65 20 69 6e /REVIEW:.can.we.have.multiple.in
17a0 74 65 72 61 63 74 69 6f 6e 73 20 77 6f 72 6b 20 74 6f 67 65 74 68 65 72 20 6f 6e 20 74 68 65 20 teractions.work.together.on.the.
17c0 73 61 6d 65 20 62 69 6e 64 69 6e 67 3f 20 45 2e 67 2e 20 61 20 27 50 72 65 73 73 27 20 63 61 75 same.binding?.E.g..a.'Press'.cau
17e0 73 69 6e 67 20 61 20 73 74 61 72 74 20 61 6e 64 20 61 20 27 52 65 6c 65 61 73 65 27 20 69 6e 74 sing.a.start.and.a.'Release'.int
1800 65 72 61 63 74 69 6f 6e 20 63 61 75 73 69 6e 67 20 61 20 70 65 72 66 6f 72 6d 65 64 0d 0a 0d 0a eraction.causing.a.performed....
1820 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 68 61 76 65 20 61 20 64 65 66 61 75 6c 74 20 69 6e 74 65 72 ////REVIEW:.have.a.default.inter
1840 61 63 74 69 6f 6e 20 73 6f 20 74 68 61 74 20 74 68 65 72 65 20 2a 61 6c 77 61 79 73 2a 20 69 73 action.so.that.there.*always*.is
1860 20 61 6e 20 69 6e 74 65 72 61 63 74 69 6f 6e 20 6f 62 6a 65 63 74 20 77 68 65 6e 20 70 72 6f 63 .an.interaction.object.when.proc
1880 65 73 73 69 6e 67 20 74 72 69 67 67 65 72 73 3f 0d 0a 0d 0a 6e 61 6d 65 73 70 61 63 65 20 55 6e essing.triggers?....namespace.Un
18a0 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 20 20 2f 2f ityEngine.InputSystem..{......//
18c0 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 2f 2f 2f 20 49 6e 74 65 72 66 61 63 65 20 66 /.<summary>......///.Interface.f
18e0 6f 72 20 69 6e 74 65 72 61 63 74 69 6f 6e 20 70 61 74 74 65 72 6e 73 20 74 68 61 74 20 64 72 69 or.interaction.patterns.that.dri
1900 76 65 20 61 63 74 69 6f 6e 73 2e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d ve.actions.......///.</summary>.
1920 0a 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 2f 2f 2f 20 41 63 74 69 .....///.<remarks>......///.Acti
1940 6f 6e 73 20 68 61 76 65 20 61 20 62 75 69 6c 74 2d 69 6e 20 69 6e 74 65 72 61 63 74 69 6f 6e 20 ons.have.a.built-in.interaction.
1960 70 61 74 74 65 72 6e 20 74 68 61 74 20 74 6f 20 73 6f 6d 65 20 65 78 74 65 6e 74 20 64 65 70 65 pattern.that.to.some.extent.depe
1980 6e 64 73 20 6f 6e 20 74 68 65 69 72 20 74 79 70 65 20 28 3c 73 65 65 0d 0a 20 20 20 20 2f 2f 2f nds.on.their.type.(<see......///
19a0 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 54 79 70 65 22 2f 3e 2c 20 3c 73 65 65 20 .cref="InputActionType"/>,.<see.
19c0 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 2e 74 79 70 65 22 2f 3e 29 2e 20 57 68 61 74 cref="InputAction.type"/>)..What
19e0 20 74 68 69 73 20 6d 65 61 6e 73 20 69 73 20 74 68 61 74 20 77 68 65 6e 20 63 6f 6e 74 72 6f 6c .this.means.is.that.when.control
1a00 73 0d 0a 20 20 20 20 2f 2f 2f 20 62 6f 75 6e 64 20 74 6f 20 61 6e 20 61 63 74 69 6f 6e 20 61 72 s......///.bound.to.an.action.ar
1a20 65 20 61 63 74 75 61 74 65 64 2c 20 74 68 65 20 61 63 74 69 6f 6e 20 77 69 6c 6c 20 69 6e 69 74 e.actuated,.the.action.will.init
1a40 69 61 74 65 20 61 6e 20 69 6e 74 65 72 61 63 74 69 6f 6e 20 74 68 61 74 20 69 6e 20 74 75 72 6e iate.an.interaction.that.in.turn
1a60 20 64 65 74 65 72 6d 69 6e 65 73 0d 0a 20 20 20 20 2f 2f 2f 20 77 68 65 6e 20 3c 73 65 65 20 63 .determines......///.when.<see.c
1a80 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 2e 73 74 61 72 74 65 64 22 2f 3e 2c 20 3c 73 65 ref="InputAction.started"/>,.<se
1aa0 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 2e 70 65 72 66 6f 72 6d 65 64 22 2f 3e e.cref="InputAction.performed"/>
1ac0 2c 20 61 6e 64 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 2e 63 61 6e ,.and.<see.cref="InputAction.can
1ae0 63 65 6c 65 64 22 2f 3e 0d 0a 20 20 20 20 2f 2f 2f 20 61 72 65 20 63 61 6c 6c 65 64 2e 0d 0a 20 celed"/>......///.are.called....
1b00 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 54 68 65 20 64 65 66 61 75 6c 74 20 69 6e 74 65 ...///......///.The.default.inte
1b20 72 61 63 74 69 6f 6e 20 28 69 2e 65 2e 20 77 68 65 6e 20 6e 6f 20 69 6e 74 65 72 61 63 74 69 6f raction.(i.e..when.no.interactio
1b40 6e 20 68 61 73 20 62 65 65 6e 20 61 64 64 65 64 20 74 6f 20 61 20 62 69 6e 64 69 6e 67 20 6f 72 n.has.been.added.to.a.binding.or
1b60 20 74 68 65 0d 0a 20 20 20 20 2f 2f 2f 20 61 63 74 69 6f 6e 20 74 68 61 74 20 74 68 65 20 62 69 .the......///.action.that.the.bi
1b80 6e 64 69 6e 67 20 74 61 72 67 65 74 73 29 20 77 69 6c 6c 20 67 65 6e 65 72 61 6c 6c 79 20 73 74 nding.targets).will.generally.st
1ba0 61 72 74 20 61 6e 64 20 70 65 72 66 6f 72 6d 20 61 6e 20 61 63 74 69 6f 6e 20 61 73 20 73 6f 6f art.and.perform.an.action.as.soo
1bc0 6e 20 61 73 20 61 20 63 6f 6e 74 72 6f 6c 0d 0a 20 20 20 20 2f 2f 2f 20 69 73 20 61 63 74 75 61 n.as.a.control......///.is.actua
1be0 74 65 64 2c 20 74 68 65 6e 20 70 65 72 66 6f 72 6d 20 74 68 65 20 61 63 74 69 6f 6e 20 77 68 65 ted,.then.perform.the.action.whe
1c00 6e 65 76 65 72 20 74 68 65 20 76 61 6c 75 65 20 6f 66 20 74 68 65 20 63 6f 6e 74 72 6f 6c 20 63 never.the.value.of.the.control.c
1c20 68 61 6e 67 65 73 20 65 78 63 65 70 74 20 69 66 20 74 68 65 20 76 61 6c 75 65 0d 0a 20 20 20 20 hanges.except.if.the.value......
1c40 2f 2f 2f 20 63 68 61 6e 67 65 73 20 62 61 63 6b 20 74 6f 20 74 68 65 20 64 65 66 61 75 6c 74 20 ///.changes.back.to.the.default.
1c60 69 6e 20 77 68 69 63 68 20 63 61 73 65 20 74 68 65 20 61 63 74 69 6f 6e 20 69 73 20 63 61 6e 63 in.which.case.the.action.is.canc
1c80 65 6c 6c 65 64 2e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 42 79 20 77 72 69 74 elled.......///......///.By.writ
1ca0 69 6e 67 20 63 75 73 74 6f 6d 20 69 6e 74 65 72 61 63 74 69 6f 6e 73 2c 20 69 74 20 69 73 20 70 ing.custom.interactions,.it.is.p
1cc0 6f 73 73 69 62 6c 65 20 74 6f 20 69 6d 70 6c 65 6d 65 6e 74 20 64 69 66 66 65 72 65 6e 74 20 69 ossible.to.implement.different.i
1ce0 6e 74 65 72 61 63 74 69 6f 6e 73 2e 20 46 6f 72 20 65 78 61 6d 70 6c 65 2c 0d 0a 20 20 20 20 2f nteractions..For.example,....../
1d00 2f 2f 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 74 65 72 61 63 74 69 6f 6e 73 2e 48 6f 6c 64 49 //.<see.cref="Interactions.HoldI
1d20 6e 74 65 72 61 63 74 69 6f 6e 22 2f 3e 20 77 69 6c 6c 20 6f 6e 6c 79 20 73 74 61 72 74 20 77 68 nteraction"/>.will.only.start.wh
1d40 65 6e 20 61 20 63 6f 6e 74 72 6f 6c 20 69 73 20 62 65 69 6e 67 20 61 63 74 75 61 74 65 64 20 62 en.a.control.is.being.actuated.b
1d60 75 74 0d 0a 20 20 20 20 2f 2f 2f 20 77 69 6c 6c 20 6f 6e 6c 79 20 70 65 72 66 6f 72 6d 20 74 68 ut......///.will.only.perform.th
1d80 65 20 61 63 74 69 6f 6e 20 69 66 20 74 68 65 20 63 6f 6e 74 72 6f 6c 20 69 73 20 68 65 6c 64 20 e.action.if.the.control.is.held.
1da0 66 6f 72 20 61 20 6d 69 6e 69 6d 75 6d 20 61 6d 6f 75 6e 74 20 6f 66 20 74 69 6d 65 2e 0d 0a 20 for.a.minimum.amount.of.time....
1dc0 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 49 6e 74 65 72 61 63 74 69 6f 6e 73 20 63 61 6e ...///......///.Interactions.can
1de0 20 62 65 20 73 74 61 74 65 66 75 6c 20 61 6e 64 20 6d 75 74 61 74 65 20 73 74 61 74 65 20 6f 76 .be.stateful.and.mutate.state.ov
1e00 65 72 20 74 69 6d 65 2e 20 49 6e 20 66 61 63 74 2c 20 69 6e 74 65 72 61 63 74 69 6f 6e 73 20 77 er.time..In.fact,.interactions.w
1e20 69 6c 6c 20 75 73 75 61 6c 6c 79 0d 0a 20 20 20 20 2f 2f 2f 20 72 65 70 72 65 73 65 6e 74 20 6d ill.usually......///.represent.m
1e40 69 6e 69 61 74 75 72 65 20 73 74 61 74 65 20 6d 61 63 68 69 6e 65 73 20 64 72 69 76 65 6e 20 64 iniature.state.machines.driven.d
1e60 69 72 65 63 74 6c 79 20 62 79 20 69 6e 70 75 74 2e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 irectly.by.input.......///......
1e80 2f 2f 2f 20 4d 75 6c 74 69 70 6c 65 20 69 6e 74 65 72 61 63 74 69 6f 6e 73 20 63 61 6e 20 62 65 ///.Multiple.interactions.can.be
1ea0 20 61 70 70 6c 69 65 64 20 74 6f 20 74 68 65 20 73 61 6d 65 20 62 69 6e 64 69 6e 67 2e 20 54 68 .applied.to.the.same.binding..Th
1ec0 65 20 69 6e 74 65 72 61 63 74 69 6f 6e 73 20 77 69 6c 6c 20 62 65 20 70 72 6f 63 65 73 73 65 64 e.interactions.will.be.processed
1ee0 20 69 6e 0d 0a 20 20 20 20 2f 2f 2f 20 73 65 71 75 65 6e 63 65 2e 20 48 6f 77 65 76 65 72 2c 20 .in......///.sequence..However,.
1f00 74 68 65 20 66 69 72 73 74 20 69 6e 74 65 72 61 63 74 69 6f 6e 20 74 68 61 74 20 73 74 61 72 74 the.first.interaction.that.start
1f20 73 20 74 68 65 20 61 63 74 69 6f 6e 20 77 69 6c 6c 20 67 65 74 20 74 6f 20 64 72 69 76 65 20 74 s.the.action.will.get.to.drive.t
1f40 68 65 20 73 74 61 74 65 20 6f 66 0d 0a 20 20 20 20 2f 2f 2f 20 74 68 65 20 61 63 74 69 6f 6e 2e he.state.of......///.the.action.
1f60 20 49 66 20 69 74 20 70 65 72 66 6f 72 6d 73 20 74 68 65 20 61 63 74 69 6f 6e 2c 20 61 6c 6c 20 .If.it.performs.the.action,.all.
1f80 69 6e 74 65 72 61 63 74 69 6f 6e 73 20 61 72 65 20 72 65 73 65 74 2e 20 49 66 20 69 74 20 63 61 interactions.are.reset..If.it.ca
1fa0 6e 63 65 6c 73 2c 20 74 68 65 20 66 69 72 73 74 0d 0a 20 20 20 20 2f 2f 2f 20 69 6e 74 65 72 61 ncels,.the.first......///.intera
1fc0 63 74 69 6f 6e 20 69 6e 20 74 68 65 20 6c 69 73 74 20 74 68 61 74 20 69 73 20 69 6e 20 73 74 61 ction.in.the.list.that.is.in.sta
1fe0 72 74 65 64 20 73 74 61 74 65 20 77 69 6c 6c 20 67 65 74 20 74 6f 20 74 61 6b 65 20 6f 76 65 72 rted.state.will.get.to.take.over
2000 20 61 6e 64 20 64 72 69 76 65 20 74 68 65 20 61 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 2f 2f 2f 0d .and.drive.the.action.......///.
2020 0a 20 20 20 20 2f 2f 2f 20 54 68 69 73 20 6d 61 6b 65 73 20 69 74 20 70 6f 73 73 69 62 6c 65 20 .....///.This.makes.it.possible.
2040 74 6f 20 68 61 76 65 20 73 65 76 65 72 61 6c 20 69 6e 74 65 72 61 63 74 69 6f 6e 20 70 61 74 74 to.have.several.interaction.patt
2060 65 72 6e 73 20 6f 6e 20 74 68 65 20 73 61 6d 65 20 61 63 74 69 6f 6e 2e 20 46 6f 72 20 65 78 61 erns.on.the.same.action..For.exa
2080 6d 70 6c 65 2c 0d 0a 20 20 20 20 2f 2f 2f 20 74 6f 20 68 61 76 65 20 61 20 22 66 69 72 65 22 20 mple,......///.to.have.a."fire".
20a0 61 63 74 69 6f 6e 20 74 68 61 74 20 61 6c 6c 6f 77 73 20 66 6f 72 20 63 68 61 72 67 69 6e 67 2c action.that.allows.for.charging,
20c0 20 6f 6e 65 20 63 61 6e 20 68 61 76 65 20 61 20 22 48 6f 6c 64 22 20 61 6e 64 20 61 20 22 50 72 .one.can.have.a."Hold".and.a."Pr
20e0 65 73 73 22 20 69 6e 74 65 72 61 63 74 69 6f 6e 0d 0a 20 20 20 20 2f 2f 2f 20 69 6e 20 73 65 71 ess".interaction......///.in.seq
2100 75 65 6e 63 65 20 6f 6e 20 74 68 65 20 61 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 uence.on.the.action.......///...
2120 20 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 ...///.<example>......///.<code>
2140 0d 0a 20 20 20 20 2f 2f 2f 20 2f 2f 20 43 72 65 61 74 65 20 61 20 66 69 72 65 20 61 63 74 69 6f ......///.//.Create.a.fire.actio
2160 6e 20 77 69 74 68 20 74 77 6f 20 69 6e 74 65 72 61 63 74 69 6f 6e 73 3a 0d 0a 20 20 20 20 2f 2f n.with.two.interactions:......//
2180 2f 20 2f 2f 20 31 2e 20 48 6f 6c 64 2e 20 54 72 69 67 67 65 72 73 20 63 68 61 72 67 65 64 20 66 /.//.1..Hold..Triggers.charged.f
21a0 69 72 69 6e 67 2e 20 48 61 73 20 74 6f 20 63 6f 6d 65 20 66 69 72 73 74 20 61 73 20 6f 74 68 65 iring..Has.to.come.first.as.othe
21c0 72 77 69 73 65 20 22 50 72 65 73 73 22 20 77 69 6c 6c 20 69 6d 6d 65 64 69 61 74 65 6c 79 20 70 rwise."Press".will.immediately.p
21e0 65 72 66 6f 72 6d 20 74 68 65 20 61 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 2f 2f 2f 20 2f 2f 20 32 erform.the.action.......///.//.2
2200 2e 20 50 72 65 73 73 2e 20 54 72 69 67 67 65 72 73 20 69 6e 73 74 61 6e 74 20 66 69 72 69 6e 67 ..Press..Triggers.instant.firing
2220 2e 0d 0a 20 20 20 20 2f 2f 2f 20 2f 2f 20 4e 4f 54 45 3a 20 41 6e 20 61 6c 74 65 72 6e 61 74 69 .......///.//.NOTE:.An.alternati
2240 76 65 20 69 73 20 74 6f 20 75 73 65 20 22 54 61 70 3b 48 6f 6c 64 22 2c 20 69 2e 65 2e 20 61 20 ve.is.to.use."Tap;Hold",.i.e..a.
2260 22 54 61 70 22 20 66 69 72 73 74 20 61 6e 64 20 74 68 65 6e 20 61 20 22 48 6f 6c 64 22 2e 20 54 "Tap".first.and.then.a."Hold"..T
2280 68 65 20 64 69 66 66 65 72 65 6e 63 65 0d 0a 20 20 20 20 2f 2f 2f 20 2f 2f 20 20 20 20 20 20 20 he.difference......///.//.......
22a0 69 73 20 72 65 6c 61 74 69 76 65 6c 79 20 6d 69 6e 6f 72 2e 20 49 6e 20 74 68 69 73 20 73 65 74 is.relatively.minor..In.this.set
22c0 75 70 2c 20 74 68 65 20 22 54 61 70 22 20 74 75 72 6e 73 20 69 6e 74 6f 20 61 20 22 48 6f 6c 64 up,.the."Tap".turns.into.a."Hold
22e0 22 20 69 66 20 74 68 65 20 62 75 74 74 6f 6e 20 69 73 20 68 65 6c 64 20 66 6f 72 0d 0a 20 20 20 ".if.the.button.is.held.for.....
2300 20 2f 2f 2f 20 2f 2f 20 20 20 20 20 20 20 6c 6f 6e 67 65 72 20 74 68 61 6e 20 74 68 65 20 74 61 .///.//.......longer.than.the.ta
2320 70 20 74 69 6d 65 20 77 68 65 72 65 61 73 20 69 6e 20 74 68 65 20 73 65 74 75 70 20 62 65 6c 6f p.time.whereas.in.the.setup.belo
2340 77 2c 20 74 68 65 20 22 48 6f 6c 64 22 20 74 75 72 6e 73 20 69 6e 74 6f 20 61 20 22 50 72 65 73 w,.the."Hold".turns.into.a."Pres
2360 73 22 20 69 66 20 74 68 65 0d 0a 20 20 20 20 2f 2f 2f 20 2f 2f 20 20 20 20 20 20 20 62 75 74 74 s".if.the......///.//.......butt
2380 6f 6e 20 69 73 20 72 65 6c 65 61 73 65 64 20 62 65 66 6f 72 65 20 74 68 65 20 68 6f 6c 64 20 74 on.is.released.before.the.hold.t
23a0 69 6d 65 20 68 61 73 20 62 65 65 6e 20 72 65 61 63 68 65 64 2e 0d 0a 20 20 20 20 2f 2f 2f 20 76 ime.has.been.reached.......///.v
23c0 61 72 20 66 69 72 65 41 63 74 69 6f 6e 20 3d 20 6e 65 77 20 49 6e 70 75 74 41 63 74 69 6f 6e 28 ar.fireAction.=.new.InputAction(
23e0 74 79 70 65 3a 20 49 6e 70 75 74 41 63 74 69 6f 6e 54 79 70 65 2e 42 75 74 74 6f 6e 2c 20 69 6e type:.InputActionType.Button,.in
2400 74 65 72 61 63 74 69 6f 6e 73 3a 20 22 48 6f 6c 64 3b 50 72 65 73 73 22 29 3b 0d 0a 20 20 20 20 teractions:."Hold;Press");......
2420 2f 2f 2f 20 66 69 72 65 41 63 74 69 6f 6e 2e 41 64 64 42 69 6e 64 69 6e 67 28 22 26 6c 74 3b 47 ///.fireAction.AddBinding("&lt;G
2440 61 6d 65 70 61 64 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 2f amepad&gt;/buttonSouth");....../
2460 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>..
2480 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 43 75 73 74 6f 6d 20 69 6e 74 65 72 61 63 74 ....///......///.Custom.interact
24a0 69 6f 6e 73 20 63 61 6e 20 62 65 20 72 65 67 69 73 74 65 72 65 64 20 75 73 69 6e 67 20 3c 73 65 ions.can.be.registered.using.<se
24c0 65 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 65 72 49 6e 74 65 e.cref="InputSystem.RegisterInte
24e0 72 61 63 74 69 6f 6e 22 2f 3e 2e 20 54 68 69 73 20 63 61 6e 20 62 65 0d 0a 20 20 20 20 2f 2f 2f raction"/>..This.can.be......///
2500 20 64 6f 6e 65 20 61 74 20 61 6e 79 20 70 6f 69 6e 74 20 64 75 72 69 6e 67 20 6f 72 20 61 66 74 .done.at.any.point.during.or.aft
2520 65 72 20 73 74 61 72 74 75 70 20 62 75 74 20 68 61 73 20 74 6f 20 62 65 20 64 6f 6e 65 20 62 65 er.startup.but.has.to.be.done.be
2540 66 6f 72 65 20 61 63 74 69 6f 6e 73 20 74 68 61 74 20 72 65 66 65 72 65 6e 63 65 20 74 68 65 20 fore.actions.that.reference.the.
2560 69 6e 74 65 72 61 63 74 69 6f 6e 0d 0a 20 20 20 20 2f 2f 2f 20 61 72 65 20 65 6e 61 62 6c 65 64 interaction......///.are.enabled
2580 20 6f 72 20 68 61 76 65 20 74 68 65 69 72 20 63 6f 6e 74 72 6f 6c 73 20 71 75 65 72 69 65 64 2e .or.have.their.controls.queried.
25a0 20 41 20 67 6f 6f 64 20 70 6f 69 6e 74 20 69 73 20 75 73 75 61 6c 6c 79 20 74 6f 20 64 6f 20 69 .A.good.point.is.usually.to.do.i
25c0 74 20 64 75 72 69 6e 67 20 6c 6f 61 64 69 6e 67 20 6c 69 6b 65 20 73 6f 3a 0d 0a 20 20 20 20 2f t.during.loading.like.so:....../
25e0 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 2f 2f 20 3c //......///.<example>......///.<
2600 63 6f 64 65 3e 0d 0a 20 20 20 20 2f 2f 2f 20 23 69 66 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0d code>......///.#if.UNITY_EDITOR.
2620 0a 20 20 20 20 2f 2f 2f 20 5b 49 6e 69 74 69 61 6c 69 7a 65 4f 6e 4c 6f 61 64 5d 0d 0a 20 20 20 .....///.[InitializeOnLoad].....
2640 20 2f 2f 2f 20 23 65 6e 64 69 66 0d 0a 20 20 20 20 2f 2f 2f 20 70 75 62 6c 69 63 20 63 6c 61 73 .///.#endif......///.public.clas
2660 73 20 4d 79 49 6e 74 65 72 61 63 74 69 6f 6e 20 3a 20 49 49 6e 70 75 74 49 6e 74 65 72 61 63 74 s.MyInteraction.:.IInputInteract
2680 69 6f 6e 0d 0a 20 20 20 20 2f 2f 2f 20 7b 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 70 75 62 6c ion......///.{......///.....publ
26a0 69 63 20 76 6f 69 64 20 50 72 6f 63 65 73 73 28 72 65 66 20 49 6e 70 75 74 49 6e 74 65 72 61 63 ic.void.Process(ref.InputInterac
26c0 74 69 6f 6e 43 6f 6e 74 65 78 74 20 63 6f 6e 74 65 78 74 29 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 tionContext.context)......///...
26e0 20 20 7b 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 2f 2f 20 2e 2e 2e 0d 0a 20 20 20 ..{......///.........//.........
2700 20 2f 2f 2f 20 20 20 20 20 7d 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 .///.....}......///......///....
2720 20 70 75 62 6c 69 63 20 76 6f 69 64 20 52 65 73 65 74 28 29 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 .public.void.Reset()......///...
2740 20 20 7b 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 7d 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 ..{......///.....}......///.....
2760 20 2f 2f 2f 20 20 20 20 20 73 74 61 74 69 63 20 4d 79 49 6e 74 65 72 61 63 74 69 6f 6e 28 29 0d .///.....static.MyInteraction().
2780 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 7b 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 .....///.....{......///.........
27a0 49 6e 70 75 74 53 79 73 74 65 6d 2e 52 65 67 69 73 74 65 72 49 6e 74 65 72 61 63 74 69 6f 6e 26 InputSystem.RegisterInteraction&
27c0 6c 74 3b 4d 79 49 6e 74 65 72 61 63 74 69 6f 6e 26 67 74 3b 28 29 3b 0d 0a 20 20 20 20 2f 2f 2f lt;MyInteraction&gt;();......///
27e0 20 20 20 20 20 7d 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 5b 52 75 .....}......///......///.....[Ru
2800 6e 74 69 6d 65 49 6e 69 74 69 61 6c 69 7a 65 4f 6e 4c 6f 61 64 5d 0d 0a 20 20 20 20 2f 2f 2f 20 ntimeInitializeOnLoad]......///.
2820 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 76 6f 69 64 20 49 6e 69 74 69 61 6c 69 ....private.static.void.Initiali
2840 7a 65 28 29 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 7b 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 ze()......///.....{......///....
2860 20 20 20 20 20 2f 2f 20 57 69 6c 6c 20 65 78 65 63 75 74 65 20 74 68 65 20 73 74 61 74 69 63 20 .....//.Will.execute.the.static.
2880 63 6f 6e 73 74 72 75 63 74 6f 72 20 61 73 20 61 20 73 69 64 65 20 65 66 66 65 63 74 2e 0d 0a 20 constructor.as.a.side.effect....
28a0 20 20 20 2f 2f 2f 20 20 20 20 20 7d 0d 0a 20 20 20 20 2f 2f 2f 20 7d 0d 0a 20 20 20 20 2f 2f 2f ...///.....}......///.}......///
28c0 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 20 20 .</code>......///.</example>....
28e0 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 49 66 20 79 6f 75 72 20 69 6e 74 65 72 61 63 74 69 ..///......///.If.your.interacti
2900 6f 6e 20 77 69 6c 6c 20 6f 6e 6c 79 20 77 6f 72 6b 20 77 69 74 68 20 61 20 73 70 65 63 69 66 69 on.will.only.work.with.a.specifi
2920 63 20 74 79 70 65 20 6f 66 20 76 61 6c 75 65 20 28 65 2e 67 2e 20 3c 63 3e 66 6c 6f 61 74 3c 2f c.type.of.value.(e.g..<c>float</
2940 63 3e 29 2c 20 69 74 20 69 73 20 62 65 74 74 65 72 0d 0a 20 20 20 20 2f 2f 2f 20 74 6f 20 62 61 c>),.it.is.better......///.to.ba
2960 73 65 20 74 68 65 20 69 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 20 6f 6e 20 3c 73 65 65 20 63 72 se.the.implementation.on.<see.cr
2980 65 66 3d 22 49 49 6e 70 75 74 49 6e 74 65 72 61 63 74 69 6f 6e 7b 54 56 61 6c 75 65 7d 22 2f 3e ef="IInputInteraction{TValue}"/>
29a0 20 69 6e 73 74 65 61 64 2e 20 57 68 69 6c 65 20 74 68 65 20 69 6e 74 65 72 66 61 63 65 20 69 73 .instead..While.the.interface.is
29c0 20 74 68 65 0d 0a 20 20 20 20 2f 2f 2f 20 73 61 6d 65 2c 20 74 68 65 20 74 79 70 65 20 70 61 72 .the......///.same,.the.type.par
29e0 61 6d 65 74 65 72 20 63 6f 6d 6d 75 6e 69 63 61 74 65 73 20 74 6f 20 74 68 65 20 69 6e 70 75 74 ameter.communicates.to.the.input
2a00 20 73 79 73 74 65 6d 20 74 68 61 74 20 6f 6e 6c 79 20 63 6f 6e 74 72 6f 6c 73 20 74 68 61 74 20 .system.that.only.controls.that.
2a20 68 61 76 65 20 63 6f 6d 70 61 74 69 62 6c 65 20 76 61 6c 75 65 0d 0a 20 20 20 20 2f 2f 2f 20 74 have.compatible.value......///.t
2a40 79 70 65 73 20 73 68 6f 75 6c 64 20 62 65 20 75 73 65 64 20 77 69 74 68 20 79 6f 75 72 20 69 6e ypes.should.be.used.with.your.in
2a60 74 65 72 61 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 49 6e 74 teraction.......///......///.Int
2a80 65 72 61 63 74 69 6f 6e 73 2c 20 6c 69 6b 65 20 70 72 6f 63 65 73 73 6f 72 73 20 28 3c 73 65 65 eractions,.like.processors.(<see
2aa0 20 63 72 65 66 3d 22 49 6e 70 75 74 50 72 6f 63 65 73 73 6f 72 22 2f 3e 29 20 61 6e 64 20 62 69 .cref="InputProcessor"/>).and.bi
2ac0 6e 64 69 6e 67 20 63 6f 6d 70 6f 73 69 74 65 73 20 28 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 nding.composites.(<see.cref="Inp
2ae0 75 74 42 69 6e 64 69 6e 67 43 6f 6d 70 6f 73 69 74 65 22 2f 3e 29 0d 0a 20 20 20 20 2f 2f 2f 20 utBindingComposite"/>)......///.
2b00 6d 61 79 20 64 65 66 69 6e 65 20 74 68 65 69 72 20 6f 77 6e 20 70 61 72 61 6d 65 74 65 72 73 20 may.define.their.own.parameters.
2b20 77 68 69 63 68 20 63 61 6e 20 74 68 65 6e 20 62 65 20 63 6f 6e 66 69 67 75 72 65 64 20 74 68 72 which.can.then.be.configured.thr
2b40 6f 75 67 68 20 74 68 65 20 65 64 69 74 6f 72 20 55 49 20 6f 72 20 73 65 74 20 70 72 6f 67 72 61 ough.the.editor.UI.or.set.progra
2b60 6d 6d 61 74 69 63 61 6c 6c 79 20 69 6e 0d 0a 20 20 20 20 2f 2f 2f 20 63 6f 64 65 2e 20 54 6f 20 mmatically.in......///.code..To.
2b80 64 65 66 69 6e 65 20 61 20 70 61 72 61 6d 65 74 65 72 2c 20 61 64 64 20 61 20 70 75 62 6c 69 63 define.a.parameter,.add.a.public
2ba0 20 66 69 65 6c 64 20 74 6f 20 79 6f 75 72 20 63 6c 61 73 73 20 74 68 61 74 20 68 61 73 20 65 69 .field.to.your.class.that.has.ei
2bc0 74 68 65 72 20 61 20 3c 63 3e 62 6f 6f 6c 3c 2f 63 3e 2c 20 61 6e 20 3c 63 3e 69 6e 74 3c 2f 63 ther.a.<c>bool</c>,.an.<c>int</c
2be0 3e 2c 0d 0a 20 20 20 20 2f 2f 2f 20 61 20 3c 63 3e 66 6c 6f 61 74 3c 2f 63 3e 2c 20 6f 72 20 61 >,......///.a.<c>float</c>,.or.a
2c00 6e 20 3c 63 3e 65 6e 75 6d 3c 2f 63 3e 20 74 79 70 65 2e 20 54 6f 20 73 65 74 20 64 65 66 61 75 n.<c>enum</c>.type..To.set.defau
2c20 6c 74 73 20 66 6f 72 20 74 68 65 20 70 61 72 61 6d 65 74 65 72 73 2c 20 61 73 73 69 67 6e 20 64 lts.for.the.parameters,.assign.d
2c40 65 66 61 75 6c 74 20 76 61 6c 75 65 73 0d 0a 20 20 20 20 2f 2f 2f 20 74 6f 20 74 68 65 20 66 69 efault.values......///.to.the.fi
2c60 65 6c 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 6c 65 elds.......///......///.<example
2c80 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 75 62 6c 69 >......///.<code>......///.publi
2ca0 63 20 63 6c 61 73 73 20 4d 79 49 6e 74 65 72 61 63 74 69 6f 6e 20 3a 20 49 49 6e 70 75 74 49 6e c.class.MyInteraction.:.IInputIn
2cc0 74 65 72 61 63 74 69 6f 6e 0d 0a 20 20 20 20 2f 2f 2f 20 7b 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 teraction......///.{......///...
2ce0 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 62 6f 6f 6c 50 61 72 61 6d 65 74 65 72 3b 0d 0a 20 20 ..public.bool.boolParameter;....
2d00 20 20 2f 2f 2f 20 20 20 20 20 70 75 62 6c 69 63 20 69 6e 74 20 69 6e 74 50 61 72 61 6d 65 74 65 ..///.....public.int.intParamete
2d20 72 3b 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 70 75 62 6c 69 63 20 66 6c 6f 61 74 20 66 6c 6f r;......///.....public.float.flo
2d40 61 74 50 61 72 61 6d 65 74 65 72 3b 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 70 75 62 6c 69 63 atParameter;......///.....public
2d60 20 4d 79 45 6e 75 6d 20 65 6e 75 6d 50 61 72 61 6d 65 74 65 72 20 3d 20 4d 79 45 6e 75 6d 2e 43 .MyEnum.enumParameter.=.MyEnum.C
2d80 3b 20 2f 2f 20 43 75 73 74 6f 6d 20 64 65 66 61 75 6c 74 2e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 ;.//.Custom.default.......///...
2da0 20 20 20 2f 2f 2f 20 20 20 20 20 70 75 62 6c 69 63 20 65 6e 75 6d 20 4d 79 45 6e 75 6d 0d 0a 20 ...///.....public.enum.MyEnum...
2dc0 20 20 20 2f 2f 2f 20 20 20 20 20 7b 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 41 2c ...///.....{......///.........A,
2de0 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 42 2c 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 ......///.........B,......///...
2e00 20 20 20 20 20 20 43 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 7d 0d 0a 20 20 20 20 2f 2f 2f 0d ......C......///.....}......///.
2e20 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 50 72 6f 63 65 73 73 .....///.....public.void.Process
2e40 28 72 65 66 20 49 6e 70 75 74 49 6e 74 65 72 61 63 74 69 6f 6e 43 6f 6e 74 65 78 74 20 63 6f 6e (ref.InputInteractionContext.con
2e60 74 65 78 74 29 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 7b 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 text)......///.....{......///...
2e80 20 20 20 20 20 20 2f 2f 20 2e 2e 2e 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 7d 0d 0a 20 20 20 ......//..........///.....}.....
2ea0 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 52 65 .///......///.....public.void.Re
2ec0 73 65 74 28 29 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 7b 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 set()......///.....{......///...
2ee0 20 20 7d 0d 0a 20 20 20 20 2f 2f 2f 20 7d 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f ..}......///.}......///......///
2f00 20 2f 2f 20 54 68 65 20 70 61 72 61 6d 65 74 65 72 73 20 63 61 6e 20 62 65 20 63 6f 6e 66 69 67 .//.The.parameters.can.be.config
2f20 75 72 65 64 20 67 72 61 70 68 69 63 61 6c 6c 79 20 69 6e 20 74 68 65 20 65 64 69 74 6f 72 20 6f ured.graphically.in.the.editor.o
2f40 72 20 73 65 74 20 70 72 6f 67 72 61 6d 6d 61 74 69 63 61 6c 6c 79 20 69 6e 20 63 6f 64 65 2e 0d r.set.programmatically.in.code..
2f60 0a 20 20 20 20 2f 2f 2f 20 2f 2f 20 4e 4f 54 45 3a 20 45 6e 75 6d 20 70 61 72 61 6d 65 74 65 72 .....///.//.NOTE:.Enum.parameter
2f80 73 20 61 72 65 20 72 65 70 72 65 73 65 6e 74 65 64 20 62 79 20 74 68 65 69 72 20 69 6e 74 65 67 s.are.represented.by.their.integ
2fa0 65 72 20 76 61 6c 75 65 73 2e 20 48 6f 77 65 76 65 72 2c 20 77 68 65 6e 20 73 65 74 74 69 6e 67 er.values..However,.when.setting
2fc0 20 65 6e 75 6d 20 70 61 72 61 6d 65 74 65 72 73 0d 0a 20 20 20 20 2f 2f 2f 20 2f 2f 20 20 20 20 .enum.parameters......///.//....
2fe0 20 20 20 67 72 61 70 68 69 63 61 6c 6c 79 20 69 6e 20 74 68 65 20 55 49 2c 20 74 68 65 79 20 77 ...graphically.in.the.UI,.they.w
3000 69 6c 6c 20 62 65 20 70 72 65 73 65 6e 74 65 64 20 61 73 20 61 20 64 72 6f 70 64 6f 77 6e 20 75 ill.be.presented.as.a.dropdown.u
3020 73 69 6e 67 20 74 68 65 20 61 76 61 69 6c 61 62 6c 65 20 65 6e 75 6d 20 76 61 6c 75 65 73 2e 0d sing.the.available.enum.values..
3040 0a 20 20 20 20 2f 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 .....///.var.action.=.new.InputA
3060 63 74 69 6f 6e 28 69 6e 74 65 72 61 63 74 69 6f 6e 73 3a 20 22 4d 79 49 6e 74 65 72 61 63 74 69 ction(interactions:."MyInteracti
3080 6f 6e 28 62 6f 6f 6c 50 61 72 61 6d 65 74 65 72 3d 74 72 75 65 2c 69 6e 74 50 61 72 61 6d 65 74 on(boolParameter=true,intParamet
30a0 65 72 3d 31 2c 66 6c 6f 61 74 50 61 72 61 6d 65 74 65 72 3d 31 2e 32 2c 65 6e 75 6d 50 61 72 61 er=1,floatParameter=1.2,enumPara
30c0 6d 65 74 65 72 3d 31 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 meter=1);......///.</code>......
30e0 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 2f 2f 2f ///.</example>......///......///
3100 20 41 20 64 65 66 61 75 6c 74 20 55 49 20 77 69 6c 6c 20 62 65 20 70 72 65 73 65 6e 74 65 64 20 .A.default.UI.will.be.presented.
3120 69 6e 20 74 68 65 20 65 64 69 74 6f 72 20 55 49 20 74 6f 20 63 6f 6e 66 69 67 75 72 65 20 74 68 in.the.editor.UI.to.configure.th
3140 65 20 70 61 72 61 6d 65 74 65 72 73 20 6f 66 20 79 6f 75 72 20 69 6e 74 65 72 61 63 74 69 6f 6e e.parameters.of.your.interaction
3160 2e 0d 0a 20 20 20 20 2f 2f 2f 20 59 6f 75 20 63 61 6e 20 63 75 73 74 6f 6d 69 7a 65 20 74 68 69 .......///.You.can.customize.thi
3180 73 20 62 79 20 72 65 70 6c 61 63 69 6e 67 20 74 68 65 20 64 65 66 61 75 6c 74 20 55 49 20 77 69 s.by.replacing.the.default.UI.wi
31a0 74 68 20 61 20 63 75 73 74 6f 6d 20 69 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 20 75 73 69 6e 67 th.a.custom.implementation.using
31c0 20 3c 73 65 65 20 63 72 65 66 3d 22 45 64 69 74 6f 72 2e 49 6e 70 75 74 50 61 72 61 6d 65 74 65 .<see.cref="Editor.InputParamete
31e0 72 45 64 69 74 6f 72 22 2f 3e 2e 0d 0a 20 20 20 20 2f 2f 2f 20 54 68 69 73 20 6d 65 63 68 61 6e rEditor"/>.......///.This.mechan
3200 69 73 6d 20 69 73 20 74 68 65 20 73 61 6d 65 20 61 73 20 66 6f 72 20 70 72 6f 63 65 73 73 6f 72 ism.is.the.same.as.for.processor
3220 73 20 61 6e 64 20 62 69 6e 64 69 6e 67 20 63 6f 6d 70 6f 73 69 74 65 73 2e 0d 0a 20 20 20 20 2f s.and.binding.composites......./
3240 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 2f 2f 20 3c //......///.<example>......///.<
3260 63 6f 64 65 3e 0d 0a 20 20 20 20 2f 2f 2f 20 23 69 66 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0d code>......///.#if.UNITY_EDITOR.
3280 0a 20 20 20 20 2f 2f 2f 20 70 75 62 6c 69 63 20 63 6c 61 73 73 20 4d 79 43 75 73 74 6f 6d 49 6e .....///.public.class.MyCustomIn
32a0 74 65 72 61 63 74 69 6f 6e 45 64 69 74 6f 72 20 3a 20 49 6e 70 75 74 50 61 72 61 6d 65 74 65 72 teractionEditor.:.InputParameter
32c0 45 64 69 74 6f 72 26 6c 74 3b 4d 79 43 75 73 74 6f 6d 49 6e 74 65 72 61 63 74 69 6f 6e 26 67 74 Editor&lt;MyCustomInteraction&gt
32e0 3b 0d 0a 20 20 20 20 2f 2f 2f 20 7b 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 70 72 6f 74 65 63 ;......///.{......///.....protec
3300 74 65 64 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 4f 6e 45 6e 61 62 6c 65 28 29 0d 0a 20 20 ted.override.void.OnEnable()....
3320 20 20 2f 2f 2f 20 20 20 20 20 7b 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 2f 2f 20 ..///.....{......///.........//.
3340 44 6f 20 61 6e 79 20 73 65 74 75 70 20 77 6f 72 6b 20 79 6f 75 20 6e 65 65 64 2e 0d 0a 20 20 20 Do.any.setup.work.you.need......
3360 20 2f 2f 2f 20 20 20 20 20 7d 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 .///.....}......///......///....
3380 20 70 72 6f 74 65 63 74 65 64 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 4f 6e 47 55 49 28 29 .protected.override.void.OnGUI()
33a0 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 7b 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 ......///.....{......///........
33c0 20 2f 2f 20 55 73 65 20 73 74 61 6e 64 61 72 64 20 55 6e 69 74 79 20 55 49 20 63 61 6c 6c 73 20 .//.Use.standard.Unity.UI.calls.
33e0 64 6f 20 63 72 65 61 74 65 20 79 6f 75 72 20 6f 77 6e 20 70 61 72 61 6d 65 74 65 72 20 65 64 69 do.create.your.own.parameter.edi
3400 74 6f 72 20 55 49 2e 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 7d 0d 0a 20 20 20 20 2f 2f 2f 20 tor.UI.......///.....}......///.
3420 7d 0d 0a 20 20 20 20 2f 2f 2f 20 23 65 6e 64 69 66 0d 0a 20 20 20 20 2f 2f 2f 20 3c 2f 63 6f 64 }......///.#endif......///.</cod
3440 65 3e 0d 0a 20 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 20 e>......///.</example>......///.
3460 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 </remarks>......///.<seealso.cre
3480 66 3d 22 49 6e 70 75 74 53 79 73 74 65 6d 2e 52 65 67 69 73 74 65 72 49 6e 74 65 72 61 63 74 69 f="InputSystem.RegisterInteracti
34a0 6f 6e 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 on"/>......///.<seealso.cref="In
34c0 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 0d 0a 20 20 20 20 putBinding.interactions"/>......
34e0 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 6e 2e 69 ///.<seealso.cref="InputAction.i
3500 6e 74 65 72 61 63 74 69 6f 6e 73 22 2f 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f nteractions"/>......///.<seealso
3520 20 63 72 65 66 3d 22 45 64 69 74 6f 72 2e 49 6e 70 75 74 50 61 72 61 6d 65 74 65 72 45 64 69 74 .cref="Editor.InputParameterEdit
3540 6f 72 22 2f 3e 0d 0a 20 20 20 20 5b 50 72 65 73 65 72 76 65 5d 0d 0a 20 20 20 20 70 75 62 6c 69 or"/>......[Preserve]......publi
3560 63 20 69 6e 74 65 72 66 61 63 65 20 49 49 6e 70 75 74 49 6e 74 65 72 61 63 74 69 6f 6e 0d 0a 20 c.interface.IInputInteraction...
3580 20 20 20 7b 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 ...{..........///.<summary>.....
35a0 20 20 20 20 20 2f 2f 2f 20 50 65 72 66 6f 72 6d 20 70 72 6f 63 65 73 73 69 6e 67 20 6f 66 20 74 .....///.Perform.processing.of.t
35c0 68 65 20 69 6e 74 65 72 61 63 74 69 6f 6e 20 69 6e 20 72 65 73 70 6f 6e 73 65 20 74 6f 20 69 6e he.interaction.in.response.to.in
35e0 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 20 put...........///.</summary>....
3600 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 63 6f 6e 74 65 78 74 22 3e ......///.<param.name="context">
3620 3c 2f 70 61 72 61 6d 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 </param>..........///.<remarks>.
3640 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 69 73 20 63 61 6c 6c .........///.This.method.is.call
3660 65 64 20 77 68 65 6e 65 76 65 72 20 61 20 63 6f 6e 74 72 6f 6c 20 72 65 66 65 72 65 6e 63 65 64 ed.whenever.a.control.referenced
3680 20 69 6e 20 74 68 65 20 62 69 6e 64 69 6e 67 20 74 68 61 74 20 74 68 65 20 69 6e 74 65 72 61 63 .in.the.binding.that.the.interac
36a0 74 69 6f 6e 20 73 69 74 73 20 6f 6e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 63 68 61 6e 67 65 tion.sits.on..........///.change
36c0 73 20 76 61 6c 75 65 2e 20 54 68 65 20 69 6e 74 65 72 61 63 74 69 6f 6e 20 69 73 20 65 78 70 65 s.value..The.interaction.is.expe
36e0 63 74 65 64 20 74 6f 20 70 72 6f 63 65 73 73 20 74 68 65 20 76 61 6c 75 65 20 63 68 61 6e 67 65 cted.to.process.the.value.change
3700 20 61 6e 64 2c 20 69 66 20 61 70 70 6c 69 63 61 62 6c 65 2c 20 63 61 6c 6c 0d 0a 20 20 20 20 20 .and,.if.applicable,.call.......
3720 20 20 20 2f 2f 2f 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 49 6e 74 65 72 61 63 74 69 ...///.<see.cref="InputInteracti
3740 6f 6e 43 6f 6e 74 65 78 74 2e 53 74 61 72 74 65 64 22 2f 3e 20 61 6e 64 2f 6f 72 20 69 74 73 20 onContext.Started"/>.and/or.its.
3760 72 65 6c 61 74 65 64 20 6d 65 74 68 6f 64 73 20 74 6f 20 69 6e 69 74 69 61 74 65 20 61 20 73 74 related.methods.to.initiate.a.st
3780 61 74 65 20 63 68 61 6e 67 65 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 ate.change...........///........
37a0 20 20 2f 2f 2f 20 4e 6f 74 65 20 74 68 61 74 20 69 66 20 22 63 6f 6e 74 72 6f 6c 20 64 69 73 61 ..///.Note.that.if."control.disa
37c0 6d 62 69 67 75 61 74 69 6f 6e 22 20 28 69 2e 65 2e 20 74 68 65 20 70 72 6f 63 65 73 73 20 77 68 mbiguation".(i.e..the.process.wh
37e0 65 72 65 20 69 66 20 6d 75 6c 74 69 70 6c 65 20 63 6f 6e 74 72 6f 6c 73 20 61 72 65 20 62 6f 75 ere.if.multiple.controls.are.bou
3800 6e 64 20 74 6f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 68 65 20 73 61 6d 65 20 61 63 74 69 nd.to..........///.the.same.acti
3820 6f 6e 2c 20 74 68 65 20 73 79 73 74 65 6d 20 64 65 63 69 64 65 73 20 77 68 69 63 68 20 63 6f 6e on,.the.system.decides.which.con
3840 74 72 6f 6c 20 67 65 74 73 20 74 6f 20 64 72 69 76 65 20 74 68 65 20 61 63 74 69 6f 6e 20 61 74 trol.gets.to.drive.the.action.at
3860 20 61 6e 79 20 6f 6e 65 20 70 6f 69 6e 74 29 20 69 73 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 .any.one.point).is..........///.
3880 69 6e 20 65 66 66 65 63 74 20 2d 2d 20 69 2e 65 2e 20 77 68 65 6e 20 65 69 74 68 65 72 20 3c 73 in.effect.--.i.e..when.either.<s
38a0 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 42 75 74 74 6f 6e 22 ee.cref="InputActionType.Button"
38c0 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 54 79 70 65 />.or.<see.cref="InputActionType
38e0 2e 56 61 6c 75 65 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 72 65 20 75 73 65 64 20 .Value"/>..........///.are.used.
3900 62 75 74 20 6e 6f 74 20 69 66 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f but.not.if.<see.cref="InputActio
3920 6e 54 79 70 65 2e 50 61 73 73 54 68 72 6f 75 67 68 22 2f 3e 20 69 73 20 75 73 65 64 20 2d 2d 20 nType.PassThrough"/>.is.used.--.
3940 69 6e 70 75 74 73 20 74 68 61 74 20 74 68 65 20 64 69 73 61 6d 62 69 67 75 61 74 69 6f 6e 0d 0a inputs.that.the.disambiguation..
3960 20 20 20 20 20 20 20 20 2f 2f 2f 20 63 68 6f 6f 73 65 73 20 74 6f 20 69 67 6e 6f 72 65 20 77 69 ........///.chooses.to.ignore.wi
3980 6c 6c 20 63 61 75 73 65 20 74 68 69 73 20 6d 65 74 68 6f 64 20 74 6f 20 6e 6f 74 20 62 65 20 63 ll.cause.this.method.to.not.be.c
39a0 61 6c 6c 65 64 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 alled...........///..........///
39c0 20 4e 6f 74 65 20 74 68 61 74 20 74 68 69 73 20 6d 65 74 68 6f 64 20 69 73 20 63 61 6c 6c 65 64 .Note.that.this.method.is.called
39e0 20 6f 6e 20 74 68 65 20 69 6e 74 65 72 61 63 74 69 6f 6e 20 65 76 65 6e 20 77 68 65 6e 20 74 68 .on.the.interaction.even.when.th
3a00 65 72 65 20 61 72 65 20 6d 75 6c 74 69 70 6c 65 20 69 6e 74 65 72 61 63 74 69 6f 6e 73 0d 0a 20 ere.are.multiple.interactions...
3a20 20 20 20 20 20 20 20 2f 2f 2f 20 61 6e 64 20 74 68 65 20 69 6e 74 65 72 61 63 74 69 6f 6e 20 69 .......///.and.the.interaction.i
3a40 73 20 6e 6f 74 20 74 68 65 20 6f 6e 65 20 63 75 72 72 65 6e 74 6c 79 20 69 6e 20 63 6f 6e 74 72 s.not.the.one.currently.in.contr
3a60 6f 6c 20 6f 66 20 74 68 65 20 61 63 74 69 6f 6e 20 28 62 65 63 61 75 73 65 20 61 6e 6f 74 68 65 ol.of.the.action.(because.anothe
3a80 72 20 69 6e 74 65 72 61 63 74 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 68 61 74 20 r.interaction..........///.that.
3aa0 63 6f 6d 65 73 20 62 65 66 6f 72 65 20 69 74 20 69 6e 20 74 68 65 20 6c 69 73 74 20 68 61 64 20 comes.before.it.in.the.list.had.
3ac0 61 6c 72 65 61 64 79 20 73 74 61 72 74 65 64 20 74 68 65 20 61 63 74 69 6f 6e 29 2e 20 45 61 63 already.started.the.action)..Eac
3ae0 68 20 69 6e 74 65 72 61 63 74 69 6f 6e 20 77 69 6c 6c 20 67 65 74 0d 0a 20 20 20 20 20 20 20 20 h.interaction.will.get..........
3b00 2f 2f 2f 20 70 72 6f 63 65 73 73 65 64 20 69 6e 64 65 70 65 6e 64 65 6e 74 6c 79 20 61 6e 64 20 ///.processed.independently.and.
3b20 74 68 65 20 61 63 74 69 6f 6e 20 77 69 6c 6c 20 64 65 63 69 64 65 20 77 68 65 6e 20 74 6f 20 75 the.action.will.decide.when.to.u
3b40 73 65 20 77 68 69 63 68 20 69 6e 74 65 72 61 63 74 69 6f 6e 20 74 6f 20 64 72 69 76 65 20 74 68 se.which.interaction.to.drive.th
3b60 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 63 74 69 6f 6e 20 61 73 20 61 20 77 68 6f 6c 65 e..........///.action.as.a.whole
3b80 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 61 ...........///..........///.<exa
3ba0 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 20 mple>..........///.<code>.......
3bc0 20 20 20 2f 2f 2f 20 20 20 20 20 2f 2f 20 50 72 6f 63 65 73 73 69 6e 67 20 66 6f 72 20 61 6e 20 ...///.....//.Processing.for.an.
3be0 69 6e 74 65 72 61 63 74 69 6f 6e 20 74 68 61 74 20 77 69 6c 6c 20 70 65 72 66 6f 72 6d 20 74 68 interaction.that.will.perform.th
3c00 65 20 61 63 74 69 6f 6e 20 6f 6e 6c 79 20 69 66 20 61 20 63 6f 6e 74 72 6f 6c 0d 0a 20 20 20 20 e.action.only.if.a.control......
3c20 20 20 20 20 2f 2f 2f 20 20 20 20 20 2f 2f 20 69 73 20 68 65 6c 64 20 61 74 20 6c 65 61 73 74 20 ....///.....//.is.held.at.least.
3c40 61 74 20 33 2f 34 20 61 63 74 75 61 74 69 6f 6e 20 66 6f 72 20 61 74 20 6c 65 61 73 74 20 31 20 at.3/4.actuation.for.at.least.1.
3c60 73 65 63 6f 6e 64 2e 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 second...........///.....public.
3c80 76 6f 69 64 20 50 72 6f 63 65 73 73 28 72 65 66 20 49 6e 70 75 74 49 6e 74 65 72 61 63 74 69 6f void.Process(ref.InputInteractio
3ca0 6e 43 6f 6e 74 65 78 74 20 63 6f 6e 74 65 78 74 29 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 nContext.context)..........///..
3cc0 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 76 61 72 20 63 6f ...{..........///.........var.co
3ce0 6e 74 72 6f 6c 20 3d 20 63 6f 6e 74 65 78 74 2e 63 6f 6e 74 72 6f 6c 3b 0d 0a 20 20 20 20 20 20 ntrol.=.context.control;........
3d00 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 2f 2f 20 53 65 ..///..........///.........//.Se
3d20 65 20 69 66 20 77 65 27 72 65 20 63 75 72 72 65 6e 74 6c 79 20 74 72 61 63 6b 69 6e 67 20 61 20 e.if.we're.currently.tracking.a.
3d40 63 6f 6e 74 72 6f 6c 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 69 66 control...........///.........if
3d60 20 28 6d 5f 43 6f 6e 74 72 6f 6c 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 2f 2f .(m_Control.!=.null)..........//
3d80 2f 20 20 20 20 20 20 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 /.........{..........///........
3da0 20 20 20 20 20 2f 2f 20 49 67 6e 6f 72 65 20 61 6e 79 20 69 6e 70 75 74 20 6f 6e 20 61 20 63 6f .....//.Ignore.any.input.on.a.co
3dc0 6e 74 72 6f 6c 20 77 65 27 72 65 20 6e 6f 74 20 63 75 72 72 65 6e 74 6c 79 20 74 72 61 63 6b 69 ntrol.we're.not.currently.tracki
3de0 6e 67 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 ng...........///.............if.
3e00 28 6d 5f 43 6f 6e 74 72 6f 6c 20 21 3d 20 63 6f 6e 74 72 6f 6c 29 0d 0a 20 20 20 20 20 20 20 20 (m_Control.!=.control)..........
3e20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b 0d 0a 20 20 20 ///.................return;.....
3e40 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 20 20 20 20 20 20 .....///..........///...........
3e60 20 20 2f 2f 20 43 68 65 63 6b 20 69 66 20 74 68 65 20 63 6f 6e 74 72 6f 6c 20 69 73 20 63 75 72 ..//.Check.if.the.control.is.cur
3e80 72 65 6e 74 6c 79 20 61 63 74 75 61 74 65 64 20 70 61 73 74 20 6f 75 72 20 33 2f 34 20 74 68 72 rently.actuated.past.our.3/4.thr
3ea0 65 73 68 6f 6c 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 eshold...........///............
3ec0 20 76 61 72 20 69 73 53 74 69 6c 6c 41 63 74 75 61 74 65 64 20 3d 20 63 6f 6e 74 65 78 74 2e 43 .var.isStillActuated.=.context.C
3ee0 6f 6e 74 72 6f 6c 49 73 41 63 74 75 61 74 65 64 28 30 2e 37 35 66 29 3b 0d 0a 20 20 20 20 20 20 ontrolIsActuated(0.75f);........
3f00 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 2f ..///..........///............./
3f20 2f 20 53 65 65 20 66 6f 72 20 68 6f 77 20 6c 6f 6e 67 20 74 68 65 20 63 6f 6e 74 72 6f 6c 20 68 /.See.for.how.long.the.control.h
3f40 61 73 20 62 65 65 6e 20 68 65 6c 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 as.been.held...........///......
3f60 20 20 20 20 20 20 20 76 61 72 20 61 63 74 75 61 74 69 6f 6e 54 69 6d 65 20 3d 20 63 6f 6e 74 65 .......var.actuationTime.=.conte
3f80 78 74 2e 74 69 6d 65 20 2d 20 63 6f 6e 74 65 78 74 2e 73 74 61 72 74 54 69 6d 65 3b 0d 0a 20 20 xt.time.-.context.startTime;....
3fa0 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 20 20 20 20 20 ......///..........///..........
3fc0 20 20 20 69 66 20 28 21 69 73 53 74 69 6c 6c 41 63 74 75 61 74 65 64 29 0d 0a 20 20 20 20 20 20 ...if.(!isStillActuated)........
3fe0 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f ..///.............{..........///
4000 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 6f 6e 74 72 6f 6c 20 69 73 20 6e .................//.Control.is.n
4020 6f 20 6c 6f 6e 67 65 72 20 61 63 74 75 61 74 65 64 20 61 62 6f 76 65 20 33 2f 34 20 74 68 72 65 o.longer.actuated.above.3/4.thre
4040 73 68 6f 6c 64 2e 20 49 66 20 69 74 20 77 61 73 20 68 65 6c 64 0d 0a 20 20 20 20 20 20 20 20 2f shold..If.it.was.held........../
4060 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 66 6f 72 20 61 74 20 6c 65 61 //.................//.for.at.lea
4080 73 74 20 61 20 73 65 63 6f 6e 64 2c 20 70 65 72 66 6f 72 6d 20 74 68 65 20 61 63 74 69 6f 6e 2e st.a.second,.perform.the.action.
40a0 20 4f 74 68 65 72 77 69 73 65 20 63 61 6e 63 65 6c 20 69 74 2e 0d 0a 20 20 20 20 20 20 20 20 2f .Otherwise.cancel.it.........../
40c0 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 //..........///.................
40e0 69 66 20 28 61 63 74 75 61 74 69 6f 6e 54 69 6d 65 20 3e 3d 20 31 29 0d 0a 20 20 20 20 20 20 20 if.(actuationTime.>=.1).........
4100 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 65 78 74 .///.....................context
4120 2e 50 65 72 66 6f 72 6d 65 64 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 .Performed();..........///......
4140 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 2f 2f 2f 20 20 20 20 ...........else..........///....
4160 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 65 78 74 2e 43 61 6e 63 65 6c 6c .................context.Cancell
4180 65 64 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 7d ed();..........///.............}
41a0 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 20 20 20 20 20 ..........///..........///......
41c0 20 20 20 20 20 20 20 2f 2f 20 43 6f 6e 74 72 6f 6c 20 63 68 61 6e 67 65 64 20 76 61 6c 75 65 20 .......//.Control.changed.value.
41e0 73 6f 6d 65 77 68 65 72 65 20 61 62 6f 76 65 20 33 2f 34 20 6f 66 20 69 74 73 20 61 63 74 75 61 somewhere.above.3/4.of.its.actua
4200 74 69 6f 6e 2e 20 44 6f 65 73 6e 27 74 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 tion..Doesn't..........///......
4220 20 20 20 20 20 20 20 2f 2f 20 6d 61 74 74 65 72 20 74 6f 20 75 73 20 73 6f 20 6e 6f 20 63 68 61 .......//.matter.to.us.so.no.cha
4240 6e 67 65 2e 0d 0a 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 nge...........///.........}.....
4260 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 65 6c 73 65 0d 0a 20 20 20 20 20 20 20 20 2f .....///.........else........../
4280 2f 2f 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 //.........{..........///.......
42a0 20 20 20 20 20 20 2f 2f 20 57 65 27 72 65 20 6e 6f 74 20 61 6c 72 65 61 64 79 20 74 72 61 63 6b ......//.We're.not.already.track
42c0 69 6e 67 20 61 20 63 6f 6e 74 72 6f 6c 2e 20 53 65 65 20 69 66 20 74 68 65 20 63 6f 6e 74 72 6f ing.a.control..See.if.the.contro
42e0 6c 20 74 68 61 74 20 6a 75 73 74 20 74 72 69 67 67 65 72 65 64 0d 0a 20 20 20 20 20 20 20 20 2f l.that.just.triggered........../
4300 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 69 73 20 61 63 74 75 61 74 65 64 20 61 74 //.............//.is.actuated.at
4320 20 6c 65 61 73 74 20 33 2f 34 74 68 20 6f 66 20 69 74 73 20 77 61 79 2e 20 49 66 20 73 6f 2c 20 .least.3/4th.of.its.way..If.so,.
4340 73 74 61 72 74 20 74 72 61 63 6b 69 6e 67 20 69 74 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d start.tracking.it...........///.
4360 0a 20 20 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 69 73 41 .........///.............var.isA
4380 63 74 75 61 74 65 64 20 3d 20 63 6f 6e 74 65 78 74 2e 43 6f 6e 74 72 6f 6c 49 73 41 63 74 75 61 ctuated.=.context.ControlIsActua
43a0 74 65 64 28 30 2e 37 35 66 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 ted(0.75f);..........///........
43c0 20 20 20 20 20 69 66 20 28 69 73 41 63 74 75 61 74 65 64 29 0d 0a 20 20 20 20 20 20 20 20 2f 2f .....if.(isActuated)..........//
43e0 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 /.............{..........///....
4400 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 6f 6e 74 72 6f 6c 20 3d 20 63 6f 6e 74 65 78 74 .............m_Control.=.context
4420 2e 63 6f 6e 74 72 6f 6c 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 .control;..........///..........
4440 20 20 20 20 20 20 20 63 6f 6e 74 65 78 74 2e 53 74 61 72 74 65 64 28 29 3b 0d 0a 20 20 20 20 20 .......context.Started();.......
4460 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 2f 2f ...///.............}..........//
4480 2f 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 7d 0d 0a /.........}..........///.....}..
44a0 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 20 20 20 20 49 6e 70 ........///..........///.....Inp
44c0 75 74 43 6f 6e 74 72 6f 6c 20 6d 5f 43 6f 6e 74 72 6f 6c 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f utControl.m_Control;..........//
44e0 2f 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 76 6f 69 64 20 52 /..........///.....public.void.R
4500 65 73 65 74 28 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 eset()..........///.....{.......
4520 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 6d 5f 43 6f 6e 74 72 6f 6c 20 3d 20 6e 75 6c 6c 3b ...///.........m_Control.=.null;
4540 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 20 20 2f 2f 2f ..........///.....}..........///
4560 20 3c 2f 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 .</code>..........///.</example>
4580 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 20 20 ..........///.</remarks>........
45a0 20 20 76 6f 69 64 20 50 72 6f 63 65 73 73 28 72 65 66 20 49 6e 70 75 74 49 6e 74 65 72 61 63 74 ..void.Process(ref.InputInteract
45c0 69 6f 6e 43 6f 6e 74 65 78 74 20 63 6f 6e 74 65 78 74 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 ionContext.context);............
45e0 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 52 65 73 65 74 ///.<summary>..........///.Reset
4600 20 73 74 61 74 65 20 74 68 61 74 20 74 68 65 20 69 6e 74 65 72 61 63 74 69 6f 6e 20 6d 61 79 20 .state.that.the.interaction.may.
4620 68 6f 6c 64 2e 20 54 68 69 73 20 73 68 6f 75 6c 64 20 70 75 74 20 74 68 65 20 69 6e 74 65 72 61 hold..This.should.put.the.intera
4640 63 74 69 6f 6e 20 62 61 63 6b 20 69 6e 20 69 74 73 20 6f 72 69 67 69 6e 61 6c 0d 0a 20 20 20 20 ction.back.in.its.original......
4660 20 20 20 20 2f 2f 2f 20 73 74 61 74 65 20 65 71 75 69 76 61 6c 65 6e 74 20 74 6f 20 6e 6f 20 69 ....///.state.equivalent.to.no.i
4680 6e 70 75 74 20 79 65 74 20 68 61 76 69 6e 67 20 62 65 65 6e 20 72 65 63 65 69 76 65 64 2e 0d 0a nput.yet.having.been.received...
46a0 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>..........
46c0 76 6f 69 64 20 52 65 73 65 74 28 29 3b 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 2f 2f 2f 20 void.Reset();......}........///.
46e0 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 2f 2f 2f 20 49 64 65 6e 74 69 63 61 6c 20 74 6f 20 <summary>......///.Identical.to.
4700 3c 73 65 65 20 63 72 65 66 3d 22 49 49 6e 70 75 74 49 6e 74 65 72 61 63 74 69 6f 6e 22 2f 3e 20 <see.cref="IInputInteraction"/>.
4720 65 78 63 65 70 74 20 74 68 61 74 20 69 74 20 61 6c 6c 6f 77 73 20 61 6e 20 69 6e 74 65 72 61 63 except.that.it.allows.an.interac
4740 74 69 6f 6e 20 74 6f 20 65 78 70 6c 69 63 69 74 6c 79 0d 0a 20 20 20 20 2f 2f 2f 20 61 64 76 65 tion.to.explicitly......///.adve
4760 72 74 69 73 65 20 74 68 65 20 76 61 6c 75 65 20 69 74 20 65 78 70 65 63 74 73 2e 0d 0a 20 20 20 rtise.the.value.it.expects......
4780 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 74 79 70 65 70 61 .///.</summary>......///.<typepa
47a0 72 61 6d 20 6e 61 6d 65 3d 22 54 56 61 6c 75 65 22 3e 54 79 70 65 20 6f 66 20 76 61 6c 75 65 73 ram.name="TValue">Type.of.values
47c0 20 65 78 70 65 63 74 65 64 20 62 79 20 74 68 65 20 69 6e 74 65 72 61 63 74 69 6f 6e 3c 2f 74 79 .expected.by.the.interaction</ty
47e0 70 65 70 61 72 61 6d 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 peparam>......///.<remarks>.....
4800 20 2f 2f 2f 20 41 64 76 65 72 74 69 73 69 6e 67 20 74 68 65 20 76 61 6c 75 65 20 74 79 70 65 20 .///.Advertising.the.value.type.
4820 77 69 6c 6c 20 61 6e 20 69 6e 74 65 72 61 63 74 69 6f 6e 20 74 79 70 65 20 74 6f 20 62 65 20 66 will.an.interaction.type.to.be.f
4840 69 6c 74 65 72 65 64 20 6f 75 74 20 69 6e 20 74 68 65 20 55 49 20 69 66 20 74 68 65 20 76 61 6c iltered.out.in.the.UI.if.the.val
4860 75 65 20 74 79 70 65 0d 0a 20 20 20 20 2f 2f 2f 20 69 74 20 68 61 73 20 69 73 20 6e 6f 74 20 63 ue.type......///.it.has.is.not.c
4880 6f 6d 70 61 74 69 62 6c 65 20 77 69 74 68 20 74 68 65 20 76 61 6c 75 65 20 74 79 70 65 20 65 78 ompatible.with.the.value.type.ex
48a0 70 65 63 74 65 64 20 62 79 20 74 68 65 20 61 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a pected.by.the.action.......///..
48c0 20 20 20 20 2f 2f 2f 20 49 6e 20 61 6c 6c 20 6f 74 68 65 72 20 77 61 79 73 2c 20 74 68 69 73 20 ....///.In.all.other.ways,.this.
48e0 69 6e 74 65 72 66 61 63 65 20 69 73 20 69 64 65 6e 74 69 63 61 6c 20 74 6f 20 3c 73 65 65 20 63 interface.is.identical.to.<see.c
4900 72 65 66 3d 22 49 49 6e 70 75 74 49 6e 74 65 72 61 63 74 69 6f 6e 22 2f 3e 2e 0d 0a 20 20 20 20 ref="IInputInteraction"/>.......
4920 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 5b 53 79 73 74 65 6d 2e 44 69 61 67 ///.</remarks>......[System.Diag
4940 6e 6f 73 74 69 63 73 2e 43 6f 64 65 41 6e 61 6c 79 73 69 73 2e 53 75 70 70 72 65 73 73 4d 65 73 nostics.CodeAnalysis.SuppressMes
4960 73 61 67 65 28 22 4d 69 63 72 6f 73 6f 66 74 2e 44 65 73 69 67 6e 22 2c 20 22 43 41 31 30 34 30 sage("Microsoft.Design",."CA1040
4980 3a 41 76 6f 69 64 45 6d 70 74 79 49 6e 74 65 72 66 61 63 65 73 22 2c 20 4a 75 73 74 69 66 69 63 :AvoidEmptyInterfaces",.Justific
49a0 61 74 69 6f 6e 20 3d 20 22 54 68 69 73 20 69 6e 74 65 72 66 61 63 65 20 69 73 20 75 73 65 64 20 ation.=."This.interface.is.used.
49c0 74 6f 20 6d 61 72 6b 20 69 6d 70 6c 65 6d 65 6e 74 69 6e 67 20 63 6c 61 73 73 65 73 20 74 6f 20 to.mark.implementing.classes.to.
49e0 61 64 76 65 72 74 69 73 65 20 74 68 65 20 76 61 6c 75 65 20 69 74 20 65 78 70 65 63 74 73 2e 20 advertise.the.value.it.expects..
4a00 54 68 69 73 20 73 65 65 6d 73 20 6d 6f 72 65 20 65 6c 65 67 61 6e 74 20 74 68 65 6e 20 74 68 65 This.seems.more.elegant.then.the
4a20 20 73 75 67 67 65 73 74 69 6f 6e 20 74 6f 20 75 73 65 20 61 6e 20 61 74 74 72 69 62 75 74 65 2e .suggestion.to.use.an.attribute.
4a40 22 29 5d 0d 0a 20 20 20 20 5b 50 72 65 73 65 72 76 65 5d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 ")]......[Preserve]......public.
4a60 69 6e 74 65 72 66 61 63 65 20 49 49 6e 70 75 74 49 6e 74 65 72 61 63 74 69 6f 6e 3c 54 56 61 6c interface.IInputInteraction<TVal
4a80 75 65 3e 20 3a 20 49 49 6e 70 75 74 49 6e 74 65 72 61 63 74 69 6f 6e 0d 0a 20 20 20 20 20 20 20 ue>.:.IInputInteraction.........
4aa0 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 7b 0d 0a 20 .where.TValue.:.struct......{...
4ac0 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 73 74 61 74 69 63 20 63 6c 61 73 ...}........internal.static.clas
4ae0 73 20 49 6e 70 75 74 49 6e 74 65 72 61 63 74 69 6f 6e 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 s.InputInteraction......{.......
4b00 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 54 79 70 65 54 61 62 6c 65 20 73 5f 49 6e 74 ...public.static.TypeTable.s_Int
4b20 65 72 61 63 74 69 6f 6e 73 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 eractions;............public.sta
4b40 74 69 63 20 54 79 70 65 20 47 65 74 56 61 6c 75 65 54 79 70 65 28 54 79 70 65 20 69 6e 74 65 72 tic.Type.GetValueType(Type.inter
4b60 61 63 74 69 6f 6e 54 79 70 65 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 actionType)..........{..........
4b80 20 20 20 20 69 66 20 28 69 6e 74 65 72 61 63 74 69 6f 6e 54 79 70 65 20 3d 3d 20 6e 75 6c 6c 29 ....if.(interactionType.==.null)
4ba0 0d 0a 20 20 20 20 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 ..................throw.new.Argu
4bc0 6d 65 6e 74 4e 75 6c 6c 45 78 63 65 70 74 69 6f 6e 28 6e 61 6d 65 6f 66 28 69 6e 74 65 72 61 63 mentNullException(nameof(interac
4be0 74 69 6f 6e 54 79 70 65 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 tionType));................retur
4c00 6e 20 54 79 70 65 48 65 6c 70 65 72 73 2e 47 65 74 47 65 6e 65 72 69 63 54 79 70 65 41 72 67 75 n.TypeHelpers.GetGenericTypeArgu
4c20 6d 65 6e 74 46 72 6f 6d 48 69 65 72 61 72 63 68 79 28 69 6e 74 65 72 61 63 74 69 6f 6e 54 79 70 mentFromHierarchy(interactionTyp
4c40 65 2c 20 74 79 70 65 6f 66 28 49 49 6e 70 75 74 49 6e 74 65 72 61 63 74 69 6f 6e 3c 3e 29 2c 20 e,.typeof(IInputInteraction<>),.
4c60 30 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 70 75 62 6c 69 63 0);..........}............public
4c80 20 73 74 61 74 69 63 20 73 74 72 69 6e 67 20 47 65 74 44 69 73 70 6c 61 79 4e 61 6d 65 28 73 74 .static.string.GetDisplayName(st
4ca0 72 69 6e 67 20 69 6e 74 65 72 61 63 74 69 6f 6e 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 ring.interaction)..........{....
4cc0 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 70 ..........if.(string.IsNullOrEmp
4ce0 74 79 28 69 6e 74 65 72 61 63 74 69 6f 6e 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ty(interaction))................
4d00 20 20 74 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 ..throw.new.ArgumentNullExceptio
4d20 6e 28 6e 61 6d 65 6f 66 28 69 6e 74 65 72 61 63 74 69 6f 6e 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 n(nameof(interaction));.........
4d40 20 20 20 20 20 20 20 76 61 72 20 69 6e 74 65 72 61 63 74 69 6f 6e 54 79 70 65 20 3d 20 73 5f 49 .......var.interactionType.=.s_I
4d60 6e 74 65 72 61 63 74 69 6f 6e 73 2e 4c 6f 6f 6b 75 70 54 79 70 65 52 65 67 69 73 74 72 61 74 69 nteractions.LookupTypeRegistrati
4d80 6f 6e 28 69 6e 74 65 72 61 63 74 69 6f 6e 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 on(interaction);..............if
4da0 20 28 69 6e 74 65 72 61 63 74 69 6f 6e 54 79 70 65 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 .(interactionType.==.null)......
4dc0 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 69 6e 74 65 72 61 63 74 69 6f 6e 3b 0d ............return.interaction;.
4de0 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 47 65 74 44 69 73 70 6c 61 79 ...............return.GetDisplay
4e00 4e 61 6d 65 28 69 6e 74 65 72 61 63 74 69 6f 6e 54 79 70 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 Name(interactionType);..........
4e20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 73 74 72 69 6e }............public.static.strin
4e40 67 20 47 65 74 44 69 73 70 6c 61 79 4e 61 6d 65 28 54 79 70 65 20 69 6e 74 65 72 61 63 74 69 6f g.GetDisplayName(Type.interactio
4e60 6e 54 79 70 65 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 nType)..........{..............i
4e80 66 20 28 69 6e 74 65 72 61 63 74 69 6f 6e 54 79 70 65 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 f.(interactionType.==.null).....
4ea0 20 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 74 4e .............throw.new.ArgumentN
4ec0 75 6c 6c 45 78 63 65 70 74 69 6f 6e 28 6e 61 6d 65 6f 66 28 69 6e 74 65 72 61 63 74 69 6f 6e 54 ullException(nameof(interactionT
4ee0 79 70 65 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 64 69 73 70 6c 61 ype));................var.displa
4f00 79 4e 61 6d 65 41 74 74 72 69 62 75 74 65 20 3d 20 69 6e 74 65 72 61 63 74 69 6f 6e 54 79 70 65 yNameAttribute.=.interactionType
4f20 2e 47 65 74 43 75 73 74 6f 6d 41 74 74 72 69 62 75 74 65 3c 44 69 73 70 6c 61 79 4e 61 6d 65 41 .GetCustomAttribute<DisplayNameA
4f40 74 74 72 69 62 75 74 65 3e 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 64 69 ttribute>();..............if.(di
4f60 73 70 6c 61 79 4e 61 6d 65 41 74 74 72 69 62 75 74 65 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 splayNameAttribute.==.null).....
4f80 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 69 66 20 28 .........{..................if.(
4fa0 69 6e 74 65 72 61 63 74 69 6f 6e 54 79 70 65 2e 4e 61 6d 65 2e 45 6e 64 73 57 69 74 68 28 22 49 interactionType.Name.EndsWith("I
4fc0 6e 74 65 72 61 63 74 69 6f 6e 22 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 nteraction"))...................
4fe0 20 20 20 72 65 74 75 72 6e 20 69 6e 74 65 72 61 63 74 69 6f 6e 54 79 70 65 2e 4e 61 6d 65 2e 53 ...return.interactionType.Name.S
5000 75 62 73 74 72 69 6e 67 28 30 2c 20 69 6e 74 65 72 61 63 74 69 6f 6e 54 79 70 65 2e 4e 61 6d 65 ubstring(0,.interactionType.Name
5020 2e 4c 65 6e 67 74 68 20 2d 20 22 49 6e 74 65 72 61 63 74 69 6f 6e 22 2e 4c 65 6e 67 74 68 29 3b .Length.-."Interaction".Length);
5040 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 69 6e 74 65 72 61 63 ..................return.interac
5060 74 69 6f 6e 54 79 70 65 2e 4e 61 6d 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d tionType.Name;..............}...
5080 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 64 69 73 70 6c 61 79 4e 61 6d 65 41 .............return.displayNameA
50a0 74 74 72 69 62 75 74 65 2e 44 69 73 70 6c 61 79 4e 61 6d 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d ttribute.DisplayName;..........}
50c0 0d 0a 20 20 20 20 7d 0d 0a 7d 0d 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ......}..}......................
50e0 11 00 00 00 49 49 6e 70 75 74 49 6e 74 65 72 61 63 74 69 6f 6e 00 00 00 00 00 00 00 ....IInputInteraction.......