summaryrefslogtreecommitdiff
path: root/Library/Artifacts/e8/e84f8e01d2cea2ff34ffb1b0c86586ec
blob: dce0a42c15c610be5cc90295bdccf832901dd45f (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 64 c4 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe ......d.............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 64 54 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 dT..............................
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 10 00 00 00 49 6e 70 75 74 41 63 74 69 6f 6e 54 72 61 63 65 d3 53 00 00 ............InputActionTrace.S..
10a0 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 43 6f 6c 6c using.System;..using.System.Coll
10c0 65 63 74 69 6f 6e 73 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 43 6f 6c 6c 65 63 74 69 6f ections;..using.System.Collectio
10e0 6e 73 2e 47 65 6e 65 72 69 63 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 54 65 78 74 3b 0d ns.Generic;..using.System.Text;.
1100 0a 75 73 69 6e 67 20 55 6e 69 74 79 2e 43 6f 6c 6c 65 63 74 69 6f 6e 73 2e 4c 6f 77 4c 65 76 65 .using.Unity.Collections.LowLeve
1120 6c 2e 55 6e 73 61 66 65 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 6e 70 l.Unsafe;..using.UnityEngine.Inp
1140 75 74 53 79 73 74 65 6d 2e 4c 6f 77 4c 65 76 65 6c 3b 0d 0a 0d 0a 2f 2f 2f 2f 52 45 56 49 45 57 utSystem.LowLevel;....////REVIEW
1160 3a 20 77 68 79 20 6e 6f 74 20 73 77 69 74 63 68 20 74 6f 20 74 68 69 73 20 62 65 69 6e 67 20 74 :.why.not.switch.to.this.being.t
1180 68 65 20 64 65 66 61 75 6c 74 20 6d 65 63 68 61 6e 69 73 6d 3f 20 73 65 65 6d 73 20 6c 69 6b 65 he.default.mechanism?.seems.like
11a0 20 74 68 69 73 20 63 6f 75 6c 64 20 61 6c 6c 6f 77 20 75 73 20 74 6f 20 61 6c 73 6f 20 73 6f 6c .this.could.allow.us.to.also.sol
11c0 76 65 0d 0a 2f 2f 2f 2f 20 20 20 20 20 20 20 20 74 68 65 20 61 63 74 69 6f 6e 73 2d 75 70 64 61 ve..////........the.actions-upda
11e0 74 65 2d 77 68 65 6e 2d 6e 6f 74 2d 65 78 70 65 63 74 65 64 20 70 72 6f 62 6c 65 6d 3b 20 70 6c te-when-not-expected.problem;.pl
1200 75 73 20 67 69 76 65 20 75 73 20 61 63 63 65 73 73 20 74 6f 20 65 61 73 79 20 70 6f 6c 6c 69 6e us.give.us.access.to.easy.pollin
1220 67 0d 0a 0d 0a 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 73 68 6f 75 6c 64 20 74 68 69 73 20 61 75 74 g....////REVIEW:.should.this.aut
1240 6f 6d 61 74 69 63 61 6c 6c 79 20 75 6e 73 75 62 73 63 72 69 62 65 20 69 74 73 65 6c 66 20 6f 6e omatically.unsubscribe.itself.on
1260 20 64 69 73 70 6f 73 61 6c 3f 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 6d 61 6b 65 20 69 74 20 .disposal?....////TODO:.make.it.
1280 70 6f 73 73 69 62 6c 65 20 74 6f 20 70 65 72 73 69 73 74 20 74 68 69 73 20 73 61 6d 65 20 77 61 possible.to.persist.this.same.wa
12a0 79 20 74 68 61 74 20 69 74 20 73 68 6f 75 6c 64 20 62 65 20 70 6f 73 73 69 62 6c 65 20 74 6f 20 y.that.it.should.be.possible.to.
12c0 70 65 72 73 69 73 74 20 49 6e 70 75 74 45 76 65 6e 74 54 72 61 63 65 0d 0a 0d 0a 2f 2f 2f 2f 54 persist.InputEventTrace....////T
12e0 4f 44 4f 3a 20 6d 61 6b 65 20 74 68 69 73 20 6f 6e 65 20 74 68 72 65 61 64 2d 73 61 66 65 0d 0a ODO:.make.this.one.thread-safe..
1300 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 61 64 64 20 72 61 6e 64 6f 6d 20 61 63 63 65 73 73 20 63 61 ..////TODO:.add.random.access.ca
1320 70 61 62 69 6c 69 74 79 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 70 72 6f 74 65 63 74 20 74 72 pability....////TODO:.protect.tr
1340 61 63 65 73 20 61 67 61 69 6e 73 74 20 63 6f 6e 74 72 6f 6c 73 20 63 68 61 6e 67 69 6e 67 20 63 aces.against.controls.changing.c
1360 6f 6e 66 69 67 75 72 61 74 69 6f 6e 20 28 69 66 20 73 74 61 74 65 20 6c 61 79 6f 75 74 73 20 63 onfiguration.(if.state.layouts.c
1380 68 61 6e 67 65 2c 20 77 65 27 72 65 20 61 66 66 65 63 74 65 64 29 0d 0a 0d 0a 6e 61 6d 65 73 70 hange,.we're.affected)....namesp
13a0 61 63 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 2e 55 74 69 6c ace.UnityEngine.InputSystem.Util
13c0 69 74 69 65 73 0d 0a 7b 0d 0a 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 ities..{......///.<summary>.....
13e0 20 2f 2f 2f 20 52 65 63 6f 72 64 73 20 74 68 65 20 74 72 69 67 67 65 72 69 6e 67 20 6f 66 20 61 .///.Records.the.triggering.of.a
1400 63 74 69 6f 6e 73 20 69 6e 74 6f 20 61 20 73 65 71 75 65 6e 63 65 20 6f 66 20 65 76 65 6e 74 73 ctions.into.a.sequence.of.events
1420 20 74 68 61 74 20 63 61 6e 20 62 65 20 72 65 70 6c 61 79 65 64 20 61 74 20 77 69 6c 6c 2e 0d 0a .that.can.be.replayed.at.will...
1440 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 6d ....///.</summary>......///.<rem
1460 61 72 6b 73 3e 0d 0a 20 20 20 20 2f 2f 2f 20 54 68 69 73 20 69 73 20 61 6e 20 61 6c 74 65 72 6e arks>......///.This.is.an.altern
1480 61 74 65 20 77 61 79 20 74 6f 20 74 68 65 20 63 61 6c 6c 62 61 63 6b 2d 62 61 73 65 64 20 72 65 ate.way.to.the.callback-based.re
14a0 73 70 6f 6e 73 65 73 20 28 73 75 63 68 20 61 73 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 sponses.(such.as.<see.cref="Inpu
14c0 74 41 63 74 69 6f 6e 2e 70 65 72 66 6f 72 6d 65 64 22 2f 3e 29 0d 0a 20 20 20 20 2f 2f 2f 20 6f tAction.performed"/>)......///.o
14e0 66 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 22 3e 69 6e 70 75 74 20 f.<see.cref="InputAction">input.
1500 61 63 74 69 6f 6e 73 3c 2f 73 65 65 3e 2e 20 49 6e 73 74 65 61 64 20 6f 66 20 65 78 65 63 75 74 actions</see>..Instead.of.execut
1520 69 6e 67 20 72 65 73 70 6f 6e 73 65 20 63 6f 64 65 20 72 69 67 68 74 20 61 77 61 79 20 77 68 65 ing.response.code.right.away.whe
1540 6e 65 76 65 72 0d 0a 20 20 20 20 2f 2f 2f 20 61 6e 20 61 63 74 69 6f 6e 20 74 72 69 67 67 65 72 never......///.an.action.trigger
1560 73 2c 20 61 6e 20 3c 73 65 65 20 63 72 65 66 3d 22 52 65 63 6f 72 64 41 63 74 69 6f 6e 22 3e 65 s,.an.<see.cref="RecordAction">e
1580 76 65 6e 74 20 69 73 20 72 65 63 6f 72 64 65 64 3c 2f 73 65 65 3e 20 77 68 69 63 68 20 63 61 6e vent.is.recorded</see>.which.can
15a0 20 74 68 65 6e 20 62 65 20 71 75 65 72 69 65 64 20 6f 6e 20 64 65 6d 61 6e 64 2e 0d 0a 20 20 20 .then.be.queried.on.demand......
15c0 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 54 68 65 20 72 65 63 6f 72 64 65 64 20 64 61 74 61 20 .///......///.The.recorded.data.
15e0 77 69 6c 6c 20 73 74 61 79 20 76 61 6c 69 64 20 65 76 65 6e 20 69 66 20 74 68 65 20 62 69 6e 64 will.stay.valid.even.if.the.bind
1600 69 6e 67 73 20 6f 6e 20 74 68 65 20 61 63 74 69 6f 6e 73 20 61 72 65 20 63 68 61 6e 67 65 64 20 ings.on.the.actions.are.changed.
1620 28 65 2e 67 2e 20 62 79 20 65 6e 61 62 6c 69 6e 67 20 61 20 64 69 66 66 65 72 65 6e 74 0d 0a 20 (e.g..by.enabling.a.different...
1640 20 20 20 2f 2f 2f 20 73 65 74 20 6f 66 20 62 69 6e 64 69 6e 67 73 20 74 68 72 6f 75 67 68 20 61 ...///.set.of.bindings.through.a
1660 6c 74 65 72 69 6e 67 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 2e 62 ltering.<see.cref="InputAction.b
1680 69 6e 64 69 6e 67 4d 61 73 6b 22 2f 3e 20 6f 72 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 indingMask"/>.or.<see.cref="Inpu
16a0 74 41 63 74 69 6f 6e 4d 61 70 2e 64 65 76 69 63 65 73 22 2f 3e 20 6f 72 0d 0a 20 20 20 20 2f 2f tActionMap.devices"/>.or......//
16c0 2f 20 77 68 65 6e 20 6d 6f 64 69 66 79 69 6e 67 20 74 68 65 20 70 61 74 68 73 20 6f 66 20 62 69 /.when.modifying.the.paths.of.bi
16e0 6e 64 69 6e 67 73 20 61 6c 74 6f 67 65 74 68 65 72 29 2e 20 4e 6f 74 65 2c 20 68 6f 77 65 76 65 ndings.altogether)..Note,.howeve
1700 72 2c 20 74 68 61 74 20 77 68 65 6e 20 74 68 69 73 20 68 61 70 70 65 6e 73 2c 20 61 20 74 72 61 r,.that.when.this.happens,.a.tra
1720 63 65 20 77 69 6c 6c 20 68 61 76 65 0d 0a 20 20 20 20 2f 2f 2f 20 74 6f 20 6d 61 6b 65 20 61 20 ce.will.have......///.to.make.a.
1740 70 72 69 76 61 74 65 20 63 6f 70 79 20 6f 66 20 74 68 65 20 64 61 74 61 20 74 68 61 74 20 73 74 private.copy.of.the.data.that.st
1760 6f 72 65 73 20 74 68 65 20 62 69 6e 64 69 6e 67 20 72 65 73 6f 6c 75 74 69 6f 6e 20 73 74 61 74 ores.the.binding.resolution.stat
1780 65 2e 20 54 68 69 73 20 6d 65 61 6e 73 20 74 68 61 74 20 74 68 65 72 65 20 63 61 6e 20 62 65 0d e..This.means.that.there.can.be.
17a0 0a 20 20 20 20 2f 2f 2f 20 47 43 20 61 6c 6c 6f 63 61 74 69 6f 6e 20 73 70 69 6b 65 20 77 68 65 .....///.GC.allocation.spike.whe
17c0 6e 20 72 65 63 6f 6e 66 69 67 75 72 69 6e 67 20 61 63 74 69 6f 6e 73 20 74 68 61 74 20 68 61 76 n.reconfiguring.actions.that.hav
17e0 65 20 72 65 63 6f 72 64 65 64 20 64 61 74 61 20 69 6e 20 74 72 61 63 65 73 2e 0d 0a 20 20 20 20 e.recorded.data.in.traces.......
1800 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 2f 2f 20 ///......///.<example>......///.
1820 3c 63 6f 64 65 3e 0d 0a 20 20 20 20 2f 2f 2f 20 76 61 72 20 74 72 61 63 65 20 3d 20 6e 65 77 20 <code>......///.var.trace.=.new.
1840 49 6e 70 75 74 41 63 74 69 6f 6e 54 72 61 63 65 28 29 3b 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 InputActionTrace();......///....
1860 20 20 2f 2f 2f 20 2f 2f 20 53 75 62 73 63 72 69 62 65 20 74 72 61 63 65 20 74 6f 20 73 69 6e 67 ..///.//.Subscribe.trace.to.sing
1880 6c 65 20 61 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 2f 2f 2f 20 2f 2f 20 28 55 73 65 20 55 6e 73 75 le.action.......///.//.(Use.Unsu
18a0 62 73 63 72 69 62 65 46 72 6f 6d 20 74 6f 20 75 6e 73 75 62 73 63 72 69 62 65 29 0d 0a 20 20 20 bscribeFrom.to.unsubscribe).....
18c0 20 2f 2f 2f 20 74 72 61 63 65 2e 53 75 62 73 63 72 69 62 65 54 6f 28 6d 79 41 63 74 69 6f 6e 29 .///.trace.SubscribeTo(myAction)
18e0 3b 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 2f 2f 20 53 75 62 73 63 72 69 62 65 ;......///......///.//.Subscribe
1900 20 74 72 61 63 65 20 74 6f 20 65 6e 74 69 72 65 20 61 63 74 69 6f 6e 20 6d 61 70 2e 0d 0a 20 20 .trace.to.entire.action.map.....
1920 20 20 2f 2f 2f 20 2f 2f 20 28 55 73 65 20 55 6e 73 75 62 73 63 72 69 62 65 46 72 6f 6d 20 74 6f ..///.//.(Use.UnsubscribeFrom.to
1940 20 75 6e 73 75 62 73 63 72 69 62 65 29 0d 0a 20 20 20 20 2f 2f 2f 20 74 72 61 63 65 2e 53 75 62 .unsubscribe)......///.trace.Sub
1960 73 63 72 69 62 65 54 6f 28 6d 79 41 63 74 69 6f 6e 4d 61 70 29 3b 0d 0a 20 20 20 20 2f 2f 2f 0d scribeTo(myActionMap);......///.
1980 0a 20 20 20 20 2f 2f 2f 20 2f 2f 20 53 75 62 73 63 72 69 62 65 20 74 72 61 63 65 20 74 6f 20 61 .....///.//.Subscribe.trace.to.a
19a0 6c 6c 20 61 63 74 69 6f 6e 73 20 69 6e 20 74 68 65 20 73 79 73 74 65 6d 2e 0d 0a 20 20 20 20 2f ll.actions.in.the.system......./
19c0 2f 2f 20 74 72 61 63 65 2e 53 75 62 73 63 72 69 62 65 54 6f 41 6c 6c 28 29 3b 0d 0a 20 20 20 20 //.trace.SubscribeToAll();......
19e0 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 2f 2f 20 52 65 63 6f 72 64 20 61 20 73 69 6e 67 6c 65 20 ///......///.//.Record.a.single.
1a00 74 72 69 67 67 65 72 69 6e 67 20 6f 66 20 61 6e 20 61 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 2f 2f triggering.of.an.action.......//
1a20 2f 20 6d 79 41 63 74 69 6f 6e 2e 70 65 72 66 6f 72 6d 65 64 20 2b 3d 0d 0a 20 20 20 20 2f 2f 2f /.myAction.performed.+=......///
1a40 20 20 20 20 20 63 74 78 20 3d 3e 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 7b 0d 0a 20 20 20 20 .....ctx.=>......///.....{......
1a60 2f 2f 2f 20 20 20 20 20 20 20 20 20 69 66 20 28 63 74 78 2e 52 65 61 64 56 61 6c 75 65 26 6c 74 ///.........if.(ctx.ReadValue&lt
1a80 3b 66 6c 6f 61 74 26 67 74 3b 28 29 20 26 67 74 3b 20 30 2e 35 66 29 0d 0a 20 20 20 20 2f 2f 2f ;float&gt;().&gt;.0.5f)......///
1aa0 20 20 20 20 20 20 20 20 20 20 20 20 20 74 72 61 63 65 2e 52 65 63 6f 72 64 41 63 74 69 6f 6e 28 .............trace.RecordAction(
1ac0 63 74 78 29 3b 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 7d 3b 0d 0a 20 20 20 20 2f 2f 2f 0d 0a ctx);......///.....};......///..
1ae0 20 20 20 20 2f 2f 2f 20 2f 2f 20 4f 75 74 70 75 74 20 74 72 61 63 65 20 74 6f 20 63 6f 6e 73 6f ....///.//.Output.trace.to.conso
1b00 6c 65 2e 0d 0a 20 20 20 20 2f 2f 2f 20 44 65 62 75 67 2e 4c 6f 67 28 73 74 72 69 6e 67 2e 4a 6f le.......///.Debug.Log(string.Jo
1b20 69 6e 28 22 2c 5c 6e 22 2c 20 74 72 61 63 65 29 29 3b 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 in(",\n",.trace));......///.....
1b40 20 2f 2f 2f 20 2f 2f 20 57 61 6c 6b 20 74 68 72 6f 75 67 68 20 61 6c 6c 20 72 65 63 6f 72 64 65 .///.//.Walk.through.all.recorde
1b60 64 20 61 63 74 69 6f 6e 73 20 61 6e 64 20 74 68 65 6e 20 63 6c 65 61 72 20 74 72 61 63 65 2e 0d d.actions.and.then.clear.trace..
1b80 0a 20 20 20 20 2f 2f 2f 20 66 6f 72 65 61 63 68 20 28 76 61 72 20 72 65 63 6f 72 64 20 69 6e 20 .....///.foreach.(var.record.in.
1ba0 74 72 61 63 65 29 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 44 trace)......///.{......///.....D
1bc0 65 62 75 67 2e 4c 6f 67 28 24 22 7b 72 65 63 6f 72 64 2e 61 63 74 69 6f 6e 7d 20 77 61 73 20 7b ebug.Log($"{record.action}.was.{
1be0 72 65 63 6f 72 64 2e 70 68 61 73 65 7d 20 62 79 20 63 6f 6e 74 72 6f 6c 20 7b 72 65 63 6f 72 64 record.phase}.by.control.{record
1c00 2e 63 6f 6e 74 72 6f 6c 7d 20 61 74 20 7b 72 65 63 6f 72 64 2e 74 69 6d 65 7d 22 29 3b 0d 0a 20 .control}.at.{record.time}");...
1c20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 2f 2f 20 54 6f 20 72 65 61 64 20 6f ...///......///.....//.To.read.o
1c40 75 74 20 74 68 65 20 76 61 6c 75 65 2c 20 79 6f 75 20 65 69 74 68 65 72 20 68 61 76 65 20 74 6f ut.the.value,.you.either.have.to
1c60 20 6b 6e 6f 77 20 74 68 65 20 76 61 6c 75 65 20 74 79 70 65 20 6f 72 20 72 65 61 64 20 74 68 65 .know.the.value.type.or.read.the
1c80 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 2f 2f 20 76 61 6c 75 65 20 6f 75 74 20 61 73 20 61 20 ......///.....//.value.out.as.a.
1ca0 67 65 6e 65 72 69 63 20 62 79 74 65 20 62 75 66 66 65 72 2e 20 48 65 72 65 20 77 65 20 61 73 73 generic.byte.buffer..Here.we.ass
1cc0 75 6d 65 20 74 68 61 74 20 74 68 65 20 76 61 6c 75 65 20 74 79 70 65 20 69 73 0d 0a 20 20 20 20 ume.that.the.value.type.is......
1ce0 2f 2f 2f 20 20 20 20 20 2f 2f 20 66 6c 6f 61 74 2e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 ///.....//.float.......///......
1d00 2f 2f 2f 20 20 20 20 20 44 65 62 75 67 2e 4c 6f 67 28 22 56 61 6c 75 65 3a 20 22 20 2b 20 72 65 ///.....Debug.Log("Value:.".+.re
1d20 63 6f 72 64 2e 52 65 61 64 56 61 6c 75 65 26 6c 74 3b 66 6c 6f 61 74 26 67 74 3b 28 29 29 3b 0d cord.ReadValue&lt;float&gt;());.
1d40 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 2f 2f 20 41 6e 20 61 6c 74 65 .....///......///.....//.An.alte
1d60 72 6e 61 74 69 76 65 20 69 73 20 72 65 61 64 20 74 68 65 20 76 61 6c 75 65 20 61 73 20 61 6e 20 rnative.is.read.the.value.as.an.
1d80 6f 62 6a 65 63 74 2e 20 49 6e 20 74 68 69 73 20 63 61 73 65 2c 20 79 6f 75 20 64 6f 6e 27 74 20 object..In.this.case,.you.don't.
1da0 68 61 76 65 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 2f 2f 20 74 6f 20 6b 6e 6f 77 20 74 68 65 have......///.....//.to.know.the
1dc0 20 76 61 6c 75 65 20 74 79 70 65 20 62 75 74 20 74 68 65 72 65 20 77 69 6c 6c 20 62 65 20 61 20 .value.type.but.there.will.be.a.
1de0 62 6f 78 65 64 20 6f 62 6a 65 63 74 20 61 6c 6c 6f 63 61 74 69 6f 6e 2e 0d 0a 20 20 20 20 2f 2f boxed.object.allocation.......//
1e00 2f 20 20 20 20 20 44 65 62 75 67 2e 4c 6f 67 28 22 56 61 6c 75 65 3a 20 22 20 2b 20 72 65 63 6f /.....Debug.Log("Value:.".+.reco
1e20 72 64 2e 52 65 61 64 56 61 6c 75 65 41 73 4f 62 6a 65 63 74 28 29 29 3b 0d 0a 20 20 20 20 2f 2f rd.ReadValueAsObject());......//
1e40 2f 20 7d 0d 0a 20 20 20 20 2f 2f 2f 20 74 72 61 63 65 2e 43 6c 65 61 72 28 29 3b 0d 0a 20 20 20 /.}......///.trace.Clear();.....
1e60 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 2f 2f 20 55 6e 73 75 62 73 63 72 69 62 65 20 74 72 61 .///......///.//.Unsubscribe.tra
1e80 63 65 20 66 72 6f 6d 20 65 76 65 72 79 74 68 69 6e 67 2e 0d 0a 20 20 20 20 2f 2f 2f 20 74 72 61 ce.from.everything.......///.tra
1ea0 63 65 2e 55 6e 73 75 62 73 63 72 69 62 65 46 72 6f 6d 41 6c 6c 28 29 3b 0d 0a 20 20 20 20 2f 2f ce.UnsubscribeFromAll();......//
1ec0 2f 0d 0a 20 20 20 20 2f 2f 2f 20 2f 2f 20 52 65 6c 65 61 73 65 20 6d 65 6d 6f 72 79 20 68 65 6c /......///.//.Release.memory.hel
1ee0 64 20 62 79 20 74 72 61 63 65 2e 0d 0a 20 20 20 20 2f 2f 2f 20 74 72 61 63 65 2e 44 69 73 70 6f d.by.trace.......///.trace.Dispo
1f00 73 65 28 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 20 se();......///.</code>......///.
1f20 3c 2f 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a </example>......///.</remarks>..
1f40 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
1f60 6f 6e 2e 73 74 61 72 74 65 64 22 2f 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 on.started"/>......///.<seealso.
1f80 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 0d 0a cref="InputAction.performed"/>..
1fa0 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
1fc0 6f 6e 2e 63 61 6e 63 65 6c 65 64 22 2f 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f on.canceled"/>......///.<seealso
1fe0 20 63 72 65 66 3d 22 49 6e 70 75 74 53 79 73 74 65 6d 2e 6f 6e 41 63 74 69 6f 6e 43 68 61 6e 67 .cref="InputSystem.onActionChang
2000 65 22 2f 3e 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 20 63 6c 61 73 73 20 49 6e e"/>......public.sealed.class.In
2020 70 75 74 41 63 74 69 6f 6e 54 72 61 63 65 20 3a 20 49 45 6e 75 6d 65 72 61 62 6c 65 3c 49 6e 70 putActionTrace.:.IEnumerable<Inp
2040 75 74 41 63 74 69 6f 6e 54 72 61 63 65 2e 41 63 74 69 6f 6e 45 76 65 6e 74 50 74 72 3e 2c 20 49 utActionTrace.ActionEventPtr>,.I
2060 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 2f 52 Disposable......{..........////R
2080 45 56 49 45 57 3a 20 74 68 69 73 20 69 73 20 6f 66 20 6c 69 6d 69 74 65 64 20 75 73 65 20 77 69 EVIEW:.this.is.of.limited.use.wi
20a0 74 68 6f 75 74 20 68 61 76 69 6e 67 20 61 63 63 65 73 73 20 74 6f 20 41 63 74 69 6f 6e 45 76 65 thout.having.access.to.ActionEve
20c0 6e 74 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 20 nt..........///.<summary>.......
20e0 20 20 20 2f 2f 2f 20 44 69 72 65 63 74 6c 79 20 61 63 63 65 73 73 20 74 68 65 20 75 6e 64 65 72 ...///.Directly.access.the.under
2100 6c 79 69 6e 67 20 72 61 77 20 6d 65 6d 6f 72 79 20 71 75 65 75 65 2e 0d 0a 20 20 20 20 20 20 20 lying.raw.memory.queue..........
2120 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 70 75 62 6c 69 63 20 .///.</summary>..........public.
2140 49 6e 70 75 74 45 76 65 6e 74 42 75 66 66 65 72 20 62 75 66 66 65 72 20 3d 3e 20 6d 5f 45 76 65 InputEventBuffer.buffer.=>.m_Eve
2160 6e 74 42 75 66 66 65 72 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 69 6e 74 20 ntBuffer;............public.int.
2180 63 6f 75 6e 74 20 3d 3e 20 6d 5f 45 76 65 6e 74 42 75 66 66 65 72 2e 65 76 65 6e 74 43 6f 75 6e count.=>.m_EventBuffer.eventCoun
21a0 74 3b 0d 0a 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 t;............public.InputAction
21c0 54 72 61 63 65 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d Trace()..........{..........}...
21e0 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 54 72 61 63 65 .........public.InputActionTrace
2200 28 49 6e 70 75 74 41 63 74 69 6f 6e 20 61 63 74 69 6f 6e 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d (InputAction.action)..........{.
2220 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 61 63 74 69 6f 6e 20 3d 3d 20 6e 75 6c 6c 29 .............if.(action.==.null)
2240 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
2260 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 61 63 74 69 6f 6e 29 mentNullException(nameof(action)
2280 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 53 75 62 73 63 72 69 62 65 54 6f 28 61 63 74 69 );..............SubscribeTo(acti
22a0 6f 6e 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 on);..........}............publi
22c0 63 20 49 6e 70 75 74 41 63 74 69 6f 6e 54 72 61 63 65 28 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 c.InputActionTrace(InputActionMa
22e0 70 20 61 63 74 69 6f 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 p.actionMap)..........{.........
2300 20 20 20 20 20 69 66 20 28 61 63 74 69 6f 6e 4d 61 70 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 .....if.(actionMap.==.null).....
2320 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
2340 75 6c 6c 45 78 63 65 70 74 69 6f 6e 28 6e 61 6d 65 6f 66 28 61 63 74 69 6f 6e 4d 61 70 29 29 3b ullException(nameof(actionMap));
2360 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 53 75 62 73 63 72 69 62 65 54 6f 28 61 63 74 69 6f 6e ..............SubscribeTo(action
2380 4d 61 70 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 Map);..........}............///.
23a0 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 63 6f 72 64 20 61 6e <summary>..........///.Record.an
23c0 79 20 61 63 74 69 6f 6e 20 67 65 74 74 69 6e 67 20 74 72 69 67 67 65 72 65 64 20 61 6e 79 77 68 y.action.getting.triggered.anywh
23e0 65 72 65 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 ere...........///.</summary>....
2400 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>..........///
2420 20 54 68 69 73 20 64 6f 65 73 20 6e 6f 74 20 72 65 71 75 69 72 65 20 74 68 65 20 74 72 61 63 65 .This.does.not.require.the.trace
2440 20 74 6f 20 61 63 74 75 61 6c 6c 79 20 68 6f 6f 6b 20 69 6e 74 6f 20 65 76 65 72 79 20 73 69 6e .to.actually.hook.into.every.sin
2460 67 6c 65 20 61 63 74 69 6f 6e 20 6f 72 20 61 63 74 69 6f 6e 20 6d 61 70 20 69 6e 20 74 68 65 20 gle.action.or.action.map.in.the.
2480 73 79 73 74 65 6d 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 6e 73 74 65 61 64 2c 20 74 68 system...........///.Instead,.th
24a0 65 20 74 72 61 63 65 20 77 69 6c 6c 20 6c 69 73 74 65 6e 20 74 6f 20 3c 73 65 65 20 63 72 65 66 e.trace.will.listen.to.<see.cref
24c0 3d 22 49 6e 70 75 74 53 79 73 74 65 6d 2e 6f 6e 41 63 74 69 6f 6e 43 68 61 6e 67 65 22 2f 3e 20 ="InputSystem.onActionChange"/>.
24e0 61 6e 64 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 72 65 63 6f 72 64 0d 0a 20 20 20 20 20 20 and.automatically.record........
2500 20 20 2f 2f 2f 20 65 76 65 72 79 20 74 72 69 67 67 65 72 65 64 20 61 63 74 69 6f 6e 2e 0d 0a 20 ..///.every.triggered.action....
2520 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 70 .......///.</remarks>..........p
2540 75 62 6c 69 63 20 76 6f 69 64 20 53 75 62 73 63 72 69 62 65 54 6f 41 6c 6c 28 29 0d 0a 20 20 20 ublic.void.SubscribeToAll().....
2560 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 5f 53 75 62 73 63 72 .....{..............if.(m_Subscr
2580 69 62 65 64 54 6f 41 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 ibedToAll)..................retu
25a0 72 6e 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 48 6f 6f 6b 4f 6e 41 63 74 69 6f 6e 43 rn;................HookOnActionC
25c0 68 61 6e 67 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 75 62 73 63 72 69 62 hange();..............m_Subscrib
25e0 65 64 54 6f 41 6c 6c 20 3d 20 74 72 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f edToAll.=.true;................/
2600 2f 20 52 65 6d 6f 76 65 20 6d 61 6e 75 61 6c 6c 79 20 63 72 65 61 74 65 64 20 73 75 62 73 63 72 /.Remove.manually.created.subscr
2620 69 70 74 69 6f 6e 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 68 69 6c 65 20 28 6d 5f 53 iptions...............while.(m_S
2640 75 62 73 63 72 69 62 65 64 41 63 74 69 6f 6e 73 2e 6c 65 6e 67 74 68 20 3e 20 30 29 0d 0a 20 20 ubscribedActions.length.>.0)....
2660 20 20 20 20 20 20 20 20 20 20 20 20 20 20 55 6e 73 75 62 73 63 72 69 62 65 46 72 6f 6d 28 6d 5f ..............UnsubscribeFrom(m_
2680 53 75 62 73 63 72 69 62 65 64 41 63 74 69 6f 6e 73 5b 6d 5f 53 75 62 73 63 72 69 62 65 64 41 63 SubscribedActions[m_SubscribedAc
26a0 74 69 6f 6e 73 2e 6c 65 6e 67 74 68 20 2d 20 31 5d 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 tions.length.-.1]);.............
26c0 20 77 68 69 6c 65 20 28 6d 5f 53 75 62 73 63 72 69 62 65 64 41 63 74 69 6f 6e 4d 61 70 73 2e 6c .while.(m_SubscribedActionMaps.l
26e0 65 6e 67 74 68 20 3e 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 55 6e 73 75 ength.>.0)..................Unsu
2700 62 73 63 72 69 62 65 46 72 6f 6d 28 6d 5f 53 75 62 73 63 72 69 62 65 64 41 63 74 69 6f 6e 4d 61 bscribeFrom(m_SubscribedActionMa
2720 70 73 5b 6d 5f 53 75 62 73 63 72 69 62 65 64 41 63 74 69 6f 6e 4d 61 70 73 2e 6c 65 6e 67 74 68 ps[m_SubscribedActionMaps.length
2740 20 2d 20 31 5d 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 .-.1]);..........}............pu
2760 62 6c 69 63 20 76 6f 69 64 20 55 6e 73 75 62 73 63 72 69 62 65 46 72 6f 6d 41 6c 6c 28 29 0d 0a blic.void.UnsubscribeFromAll()..
2780 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4f 6e 6c 79 20 75 ........{..............//.Only.u
27a0 6e 68 6f 6f 6b 20 66 72 6f 6d 20 4f 6e 41 63 74 69 6f 6e 43 68 61 6e 67 65 20 69 66 20 77 65 20 nhook.from.OnActionChange.if.we.
27c0 64 6f 6e 27 74 20 68 61 76 65 20 61 6e 79 20 72 65 63 6f 72 64 65 64 20 61 63 74 69 6f 6e 73 2e don't.have.any.recorded.actions.
27e0 20 49 66 20 77 65 20 64 6f 20 68 61 76 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 61 .If.we.do.have..............//.a
2800 6e 79 2c 20 77 65 20 73 74 69 6c 6c 20 6e 65 65 64 20 74 68 65 20 63 61 6c 6c 62 61 63 6b 20 74 ny,.we.still.need.the.callback.t
2820 6f 20 62 65 20 6e 6f 74 69 66 69 65 64 20 61 62 6f 75 74 20 77 68 65 6e 20 62 69 6e 64 69 6e 67 o.be.notified.about.when.binding
2840 20 64 61 74 61 20 63 68 61 6e 67 65 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 .data.changes...............if.(
2860 63 6f 75 6e 74 20 3d 3d 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 55 6e 68 count.==.0)..................Unh
2880 6f 6f 6b 4f 6e 41 63 74 69 6f 6e 43 68 61 6e 67 65 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 ookOnActionChange();............
28a0 20 20 20 20 6d 5f 53 75 62 73 63 72 69 62 65 64 54 6f 41 6c 6c 20 3d 20 66 61 6c 73 65 3b 0d 0a ....m_SubscribedToAll.=.false;..
28c0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 68 69 6c 65 20 28 6d 5f 53 75 62 73 63 72 69 62 65 ..............while.(m_Subscribe
28e0 64 41 63 74 69 6f 6e 73 2e 6c 65 6e 67 74 68 20 3e 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 dActions.length.>.0)............
2900 20 20 20 20 20 20 55 6e 73 75 62 73 63 72 69 62 65 46 72 6f 6d 28 6d 5f 53 75 62 73 63 72 69 62 ......UnsubscribeFrom(m_Subscrib
2920 65 64 41 63 74 69 6f 6e 73 5b 6d 5f 53 75 62 73 63 72 69 62 65 64 41 63 74 69 6f 6e 73 2e 6c 65 edActions[m_SubscribedActions.le
2940 6e 67 74 68 20 2d 20 31 5d 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 68 69 6c 65 20 28 ngth.-.1]);..............while.(
2960 6d 5f 53 75 62 73 63 72 69 62 65 64 41 63 74 69 6f 6e 4d 61 70 73 2e 6c 65 6e 67 74 68 20 3e 20 m_SubscribedActionMaps.length.>.
2980 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 55 6e 73 75 62 73 63 72 69 62 65 46 0)..................UnsubscribeF
29a0 72 6f 6d 28 6d 5f 53 75 62 73 63 72 69 62 65 64 41 63 74 69 6f 6e 4d 61 70 73 5b 6d 5f 53 75 62 rom(m_SubscribedActionMaps[m_Sub
29c0 73 63 72 69 62 65 64 41 63 74 69 6f 6e 4d 61 70 73 2e 6c 65 6e 67 74 68 20 2d 20 31 5d 29 3b 0d scribedActionMaps.length.-.1]);.
29e0 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 20 76 6f 69 .........}............public.voi
2a00 64 20 53 75 62 73 63 72 69 62 65 54 6f 28 49 6e 70 75 74 41 63 74 69 6f 6e 20 61 63 74 69 6f 6e d.SubscribeTo(InputAction.action
2a20 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 61 63 )..........{..............if.(ac
2a40 74 69 6f 6e 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 74 tion.==.null)..................t
2a60 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
2a80 61 6d 65 6f 66 28 61 63 74 69 6f 6e 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 ameof(action));................i
2aa0 66 20 28 6d 5f 43 61 6c 6c 62 61 63 6b 44 65 6c 65 67 61 74 65 20 3d 3d 20 6e 75 6c 6c 29 0d 0a f.(m_CallbackDelegate.==.null)..
2ac0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 61 6c 6c 62 61 63 6b 44 65 6c 65 67 61 ................m_CallbackDelega
2ae0 74 65 20 3d 20 52 65 63 6f 72 64 41 63 74 69 6f 6e 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 te.=.RecordAction;..............
2b00 20 20 61 63 74 69 6f 6e 2e 70 65 72 66 6f 72 6d 65 64 20 2b 3d 20 6d 5f 43 61 6c 6c 62 61 63 6b ..action.performed.+=.m_Callback
2b20 44 65 6c 65 67 61 74 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 61 63 74 69 6f 6e 2e 73 74 Delegate;..............action.st
2b40 61 72 74 65 64 20 2b 3d 20 6d 5f 43 61 6c 6c 62 61 63 6b 44 65 6c 65 67 61 74 65 3b 0d 0a 20 20 arted.+=.m_CallbackDelegate;....
2b60 20 20 20 20 20 20 20 20 20 20 61 63 74 69 6f 6e 2e 63 61 6e 63 65 6c 65 64 20 2b 3d 20 6d 5f 43 ..........action.canceled.+=.m_C
2b80 61 6c 6c 62 61 63 6b 44 65 6c 65 67 61 74 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 allbackDelegate;................
2ba0 6d 5f 53 75 62 73 63 72 69 62 65 64 41 63 74 69 6f 6e 73 2e 41 70 70 65 6e 64 57 69 74 68 43 61 m_SubscribedActions.AppendWithCa
2bc0 70 61 63 69 74 79 28 61 63 74 69 6f 6e 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 pacity(action);..........}......
2be0 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 53 75 62 73 63 72 69 62 65 54 6f 28 49 6e ......public.void.SubscribeTo(In
2c00 70 75 74 41 63 74 69 6f 6e 4d 61 70 20 61 63 74 69 6f 6e 4d 61 70 29 0d 0a 20 20 20 20 20 20 20 putActionMap.actionMap).........
2c20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 61 63 74 69 6f 6e 4d 61 70 20 3d 3d .{..............if.(actionMap.==
2c40 20 6e 75 6c 6c 29 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 .null)..................throw.ne
2c60 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 61 6d 65 6f 66 28 61 w.ArgumentNullException(nameof(a
2c80 63 74 69 6f 6e 4d 61 70 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d ctionMap));................if.(m
2ca0 5f 43 61 6c 6c 62 61 63 6b 44 65 6c 65 67 61 74 65 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 _CallbackDelegate.==.null)......
2cc0 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 61 6c 6c 62 61 63 6b 44 65 6c 65 67 61 74 65 20 3d ............m_CallbackDelegate.=
2ce0 20 52 65 63 6f 72 64 41 63 74 69 6f 6e 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 61 63 .RecordAction;................ac
2d00 74 69 6f 6e 4d 61 70 2e 61 63 74 69 6f 6e 54 72 69 67 67 65 72 65 64 20 2b 3d 20 6d 5f 43 61 6c tionMap.actionTriggered.+=.m_Cal
2d20 6c 62 61 63 6b 44 65 6c 65 67 61 74 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f lbackDelegate;................m_
2d40 53 75 62 73 63 72 69 62 65 64 41 63 74 69 6f 6e 4d 61 70 73 2e 41 70 70 65 6e 64 57 69 74 68 43 SubscribedActionMaps.AppendWithC
2d60 61 70 61 63 69 74 79 28 61 63 74 69 6f 6e 4d 61 70 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a apacity(actionMap);..........}..
2d80 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 55 6e 73 75 62 73 63 72 69 62 ..........public.void.Unsubscrib
2da0 65 46 72 6f 6d 28 49 6e 70 75 74 41 63 74 69 6f 6e 20 61 63 74 69 6f 6e 29 0d 0a 20 20 20 20 20 eFrom(InputAction.action).......
2dc0 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 61 63 74 69 6f 6e 20 3d 3d 20 ...{..............if.(action.==.
2de0 6e 75 6c 6c 29 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 null)..................throw.new
2e00 20 41 72 67 75 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 61 63 .ArgumentNullException(nameof(ac
2e20 74 69 6f 6e 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 43 61 6c tion));................if.(m_Cal
2e40 6c 62 61 63 6b 44 65 6c 65 67 61 74 65 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 lbackDelegate.==.null)..........
2e60 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 61 ........return;................a
2e80 63 74 69 6f 6e 2e 70 65 72 66 6f 72 6d 65 64 20 2d 3d 20 6d 5f 43 61 6c 6c 62 61 63 6b 44 65 6c ction.performed.-=.m_CallbackDel
2ea0 65 67 61 74 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 61 63 74 69 6f 6e 2e 73 74 61 72 74 egate;..............action.start
2ec0 65 64 20 2d 3d 20 6d 5f 43 61 6c 6c 62 61 63 6b 44 65 6c 65 67 61 74 65 3b 0d 0a 20 20 20 20 20 ed.-=.m_CallbackDelegate;.......
2ee0 20 20 20 20 20 20 20 61 63 74 69 6f 6e 2e 63 61 6e 63 65 6c 65 64 20 2d 3d 20 6d 5f 43 61 6c 6c .......action.canceled.-=.m_Call
2f00 62 61 63 6b 44 65 6c 65 67 61 74 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 backDelegate;................var
2f20 20 69 6e 64 65 78 20 3d 20 6d 5f 53 75 62 73 63 72 69 62 65 64 41 63 74 69 6f 6e 73 2e 49 6e 64 .index.=.m_SubscribedActions.Ind
2f40 65 78 4f 66 52 65 66 65 72 65 6e 63 65 28 61 63 74 69 6f 6e 29 3b 0d 0a 20 20 20 20 20 20 20 20 exOfReference(action);..........
2f60 20 20 20 20 69 66 20 28 69 6e 64 65 78 20 21 3d 20 2d 31 29 0d 0a 20 20 20 20 20 20 20 20 20 20 ....if.(index.!=.-1)............
2f80 20 20 20 20 20 20 6d 5f 53 75 62 73 63 72 69 62 65 64 41 63 74 69 6f 6e 73 2e 52 65 6d 6f 76 65 ......m_SubscribedActions.Remove
2fa0 41 74 57 69 74 68 43 61 70 61 63 69 74 79 28 69 6e 64 65 78 29 3b 0d 0a 20 20 20 20 20 20 20 20 AtWithCapacity(index);..........
2fc0 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 55 6e 73 75 62 73 63 }............public.void.Unsubsc
2fe0 72 69 62 65 46 72 6f 6d 28 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 20 61 63 74 69 6f 6e 4d 61 ribeFrom(InputActionMap.actionMa
3000 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 20 20 69 66 20 28 61 p)..........{..............if.(a
3020 63 74 69 6f 6e 4d 61 70 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ctionMap.==.null)...............
3040 20 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 ...throw.new.ArgumentNullExcepti
3060 6f 6e 28 6e 61 6d 65 6f 66 28 61 63 74 69 6f 6e 4d 61 70 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 on(nameof(actionMap));..........
3080 20 20 20 20 20 20 69 66 20 28 6d 5f 43 61 6c 6c 62 61 63 6b 44 65 6c 65 67 61 74 65 20 3d 3d 20 ......if.(m_CallbackDelegate.==.
30a0 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 3b 0d 0a null)..................return;..
30c0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 61 63 74 69 6f 6e 4d 61 70 2e 61 63 74 69 6f 6e 54 72 ..............actionMap.actionTr
30e0 69 67 67 65 72 65 64 20 2d 3d 20 6d 5f 43 61 6c 6c 62 61 63 6b 44 65 6c 65 67 61 74 65 3b 0d 0a iggered.-=.m_CallbackDelegate;..
3100 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 69 6e 64 65 78 20 3d 20 6d 5f 53 75 62 73 ..............var.index.=.m_Subs
3120 63 72 69 62 65 64 41 63 74 69 6f 6e 4d 61 70 73 2e 49 6e 64 65 78 4f 66 52 65 66 65 72 65 6e 63 cribedActionMaps.IndexOfReferenc
3140 65 28 61 63 74 69 6f 6e 4d 61 70 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 e(actionMap);..............if.(i
3160 6e 64 65 78 20 21 3d 20 2d 31 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 ndex.!=.-1)..................m_S
3180 75 62 73 63 72 69 62 65 64 41 63 74 69 6f 6e 4d 61 70 73 2e 52 65 6d 6f 76 65 41 74 57 69 74 68 ubscribedActionMaps.RemoveAtWith
31a0 43 61 70 61 63 69 74 79 28 69 6e 64 65 78 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 Capacity(index);..........}.....
31c0 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>..........//
31e0 2f 20 52 65 63 6f 72 64 20 74 68 65 20 74 72 69 67 67 65 72 69 6e 67 20 6f 66 20 61 6e 20 61 63 /.Record.the.triggering.of.an.ac
3200 74 69 6f 6e 20 61 73 20 61 6e 20 3c 73 65 65 20 63 72 65 66 3d 22 41 63 74 69 6f 6e 45 76 65 6e tion.as.an.<see.cref="ActionEven
3220 74 50 74 72 22 3e 61 63 74 69 6f 6e 20 65 76 65 6e 74 3c 2f 73 65 65 3e 2e 0d 0a 20 20 20 20 20 tPtr">action.event</see>........
3240 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>..........///.<
3260 70 61 72 61 6d 20 6e 61 6d 65 3d 22 63 6f 6e 74 65 78 74 22 3e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 param.name="context"></param>...
3280 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 69 6f .......///.<see.cref="InputActio
32a0 6e 2e 70 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 3c 73 65 65 n.performed"/>..........///.<see
32c0 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 64 22 2f 3e 0d 0a 20 .cref="InputAction.started"/>...
32e0 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 69 6f .......///.<see.cref="InputActio
3300 6e 2e 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 3c 73 65 65 20 n.canceled"/>..........///.<see.
3320 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 2e 61 63 74 69 6f 6e 54 72 69 67 67 cref="InputActionMap.actionTrigg
3340 65 72 65 64 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 76 ered"/>..........public.unsafe.v
3360 6f 69 64 20 52 65 63 6f 72 64 41 63 74 69 6f 6e 28 49 6e 70 75 74 41 63 74 69 6f 6e 2e 43 61 6c oid.RecordAction(InputAction.Cal
3380 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 20 20 7b lbackContext.context)..........{
33a0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 46 69 6e 64 2f 61 64 64 20 73 74 61 74 65 2e ..............//.Find/add.state.
33c0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 74 61 74 65 49 6e 64 65 78 20 3d 20 6d ..............var.stateIndex.=.m
33e0 5f 41 63 74 69 6f 6e 4d 61 70 53 74 61 74 65 73 2e 49 6e 64 65 78 4f 66 52 65 66 65 72 65 6e 63 _ActionMapStates.IndexOfReferenc
3400 65 28 63 6f 6e 74 65 78 74 2e 6d 5f 53 74 61 74 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 e(context.m_State);.............
3420 20 69 66 20 28 73 74 61 74 65 49 6e 64 65 78 20 3d 3d 20 2d 31 29 0d 0a 20 20 20 20 20 20 20 20 .if.(stateIndex.==.-1)..........
3440 20 20 20 20 20 20 20 20 73 74 61 74 65 49 6e 64 65 78 20 3d 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 ........stateIndex.=.m_ActionMap
3460 53 74 61 74 65 73 2e 41 70 70 65 6e 64 57 69 74 68 43 61 70 61 63 69 74 79 28 63 6f 6e 74 65 78 States.AppendWithCapacity(contex
3480 74 2e 6d 5f 53 74 61 74 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4d 61 t.m_State);................//.Ma
34a0 6b 65 20 73 75 72 65 20 77 65 20 67 65 74 20 6e 6f 74 69 66 69 65 64 20 69 66 20 74 68 65 72 65 ke.sure.we.get.notified.if.there
34c0 27 73 20 61 20 63 68 61 6e 67 65 20 74 6f 20 62 69 6e 64 69 6e 67 20 73 65 74 75 70 73 2e 0d 0a 's.a.change.to.binding.setups...
34e0 20 20 20 20 20 20 20 20 20 20 20 20 48 6f 6f 6b 4f 6e 41 63 74 69 6f 6e 43 68 61 6e 67 65 28 29 ............HookOnActionChange()
3500 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 6c 6c 6f 63 61 74 65 20 65 76 65 ;................//.Allocate.eve
3520 6e 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 76 61 6c 75 65 53 69 7a 65 49 6e nt...............var.valueSizeIn
3540 42 79 74 65 73 20 3d 20 63 6f 6e 74 65 78 74 2e 76 61 6c 75 65 53 69 7a 65 49 6e 42 79 74 65 73 Bytes.=.context.valueSizeInBytes
3560 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 65 76 65 6e 74 50 74 72 20 3d 0d 0a 20 ;..............var.eventPtr.=...
3580 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 41 63 74 69 6f 6e 45 76 65 6e 74 2a 29 6d 5f 45 ...............(ActionEvent*)m_E
35a0 76 65 6e 74 42 75 66 66 65 72 2e 41 6c 6c 6f 63 61 74 65 45 76 65 6e 74 28 41 63 74 69 6f 6e 45 ventBuffer.AllocateEvent(ActionE
35c0 76 65 6e 74 2e 47 65 74 45 76 65 6e 74 53 69 7a 65 57 69 74 68 56 61 6c 75 65 53 69 7a 65 28 76 vent.GetEventSizeWithValueSize(v
35e0 61 6c 75 65 53 69 7a 65 49 6e 42 79 74 65 73 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 alueSizeInBytes));..............
3600 20 20 2f 2f 20 49 6e 69 74 69 61 6c 69 7a 65 20 65 76 65 6e 74 2e 0d 0a 20 20 20 20 20 20 20 20 ..//.Initialize.event...........
3620 20 20 20 20 72 65 66 20 76 61 72 20 74 72 69 67 67 65 72 53 74 61 74 65 20 3d 20 72 65 66 20 63 ....ref.var.triggerState.=.ref.c
3640 6f 6e 74 65 78 74 2e 6d 5f 53 74 61 74 65 2e 61 63 74 69 6f 6e 53 74 61 74 65 73 5b 63 6f 6e 74 ontext.m_State.actionStates[cont
3660 65 78 74 2e 6d 5f 41 63 74 69 6f 6e 49 6e 64 65 78 5d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ext.m_ActionIndex];.............
3680 20 65 76 65 6e 74 50 74 72 2d 3e 62 61 73 65 45 76 65 6e 74 2e 74 79 70 65 20 3d 20 41 63 74 69 .eventPtr->baseEvent.type.=.Acti
36a0 6f 6e 45 76 65 6e 74 2e 54 79 70 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 76 65 6e 74 onEvent.Type;..............event
36c0 50 74 72 2d 3e 62 61 73 65 45 76 65 6e 74 2e 74 69 6d 65 20 3d 20 74 72 69 67 67 65 72 53 74 61 Ptr->baseEvent.time.=.triggerSta
36e0 74 65 2e 74 69 6d 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 76 65 6e 74 50 74 72 2d 3e te.time;..............eventPtr->
3700 73 74 61 74 65 49 6e 64 65 78 20 3d 20 73 74 61 74 65 49 6e 64 65 78 3b 0d 0a 20 20 20 20 20 20 stateIndex.=.stateIndex;........
3720 20 20 20 20 20 20 65 76 65 6e 74 50 74 72 2d 3e 63 6f 6e 74 72 6f 6c 49 6e 64 65 78 20 3d 20 74 ......eventPtr->controlIndex.=.t
3740 72 69 67 67 65 72 53 74 61 74 65 2e 63 6f 6e 74 72 6f 6c 49 6e 64 65 78 3b 0d 0a 20 20 20 20 20 riggerState.controlIndex;.......
3760 20 20 20 20 20 20 20 65 76 65 6e 74 50 74 72 2d 3e 62 69 6e 64 69 6e 67 49 6e 64 65 78 20 3d 20 .......eventPtr->bindingIndex.=.
3780 74 72 69 67 67 65 72 53 74 61 74 65 2e 62 69 6e 64 69 6e 67 49 6e 64 65 78 3b 0d 0a 20 20 20 20 triggerState.bindingIndex;......
37a0 20 20 20 20 20 20 20 20 65 76 65 6e 74 50 74 72 2d 3e 69 6e 74 65 72 61 63 74 69 6f 6e 49 6e 64 ........eventPtr->interactionInd
37c0 65 78 20 3d 20 74 72 69 67 67 65 72 53 74 61 74 65 2e 69 6e 74 65 72 61 63 74 69 6f 6e 49 6e 64 ex.=.triggerState.interactionInd
37e0 65 78 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 76 65 6e 74 50 74 72 2d 3e 73 74 61 72 74 ex;..............eventPtr->start
3800 54 69 6d 65 20 3d 20 74 72 69 67 67 65 72 53 74 61 74 65 2e 73 74 61 72 74 54 69 6d 65 3b 0d 0a Time.=.triggerState.startTime;..
3820 20 20 20 20 20 20 20 20 20 20 20 20 65 76 65 6e 74 50 74 72 2d 3e 70 68 61 73 65 20 3d 20 74 72 ............eventPtr->phase.=.tr
3840 69 67 67 65 72 53 74 61 74 65 2e 70 68 61 73 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 iggerState.phase;...............
3860 20 2f 2f 20 53 74 6f 72 65 20 76 61 6c 75 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 .//.Store.value...............va
3880 72 20 76 61 6c 75 65 42 75 66 66 65 72 20 3d 20 65 76 65 6e 74 50 74 72 2d 3e 76 61 6c 75 65 44 r.valueBuffer.=.eventPtr->valueD
38a0 61 74 61 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 65 78 74 2e 52 65 61 64 56 61 ata;..............context.ReadVa
38c0 6c 75 65 28 76 61 6c 75 65 42 75 66 66 65 72 2c 20 76 61 6c 75 65 53 69 7a 65 49 6e 42 79 74 65 lue(valueBuffer,.valueSizeInByte
38e0 73 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 s);..........}............public
3900 20 76 6f 69 64 20 43 6c 65 61 72 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 .void.Clear()..........{........
3920 20 20 20 20 20 20 6d 5f 45 76 65 6e 74 42 75 66 66 65 72 2e 52 65 73 65 74 28 29 3b 0d 0a 20 20 ......m_EventBuffer.Reset();....
3940 20 20 20 20 20 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 53 74 61 74 65 73 2e 43 6c 65 61 ..........m_ActionMapStates.Clea
3960 72 57 69 74 68 43 61 70 61 63 69 74 79 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 rWithCapacity();..........}.....
3980 20 20 20 20 20 20 20 7e 49 6e 70 75 74 41 63 74 69 6f 6e 54 72 61 63 65 28 29 0d 0a 20 20 20 20 .......~InputActionTrace()......
39a0 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 69 73 70 6f 73 65 49 6e 74 65 72 6e ....{..............DisposeIntern
39c0 61 6c 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 70 75 62 6c al();..........}............publ
39e0 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 0d 0a 20 ic.override.string.ToString()...
3a00 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 63 6f 75 6e 74 20 .......{..............if.(count.
3a20 3d 3d 20 30 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 22 5b ==.0)..................return."[
3a40 5d 22 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 74 72 20 3d 20 6e 65 77 ]";................var.str.=.new
3a60 20 53 74 72 69 6e 67 42 75 69 6c 64 65 72 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 .StringBuilder();..............s
3a80 74 72 2e 41 70 70 65 6e 64 28 27 5b 27 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 tr.Append('[');..............var
3aa0 20 69 73 46 69 72 73 74 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f .isFirst.=.true;..............fo
3ac0 72 65 61 63 68 20 28 76 61 72 20 65 76 65 6e 74 50 74 72 20 69 6e 20 74 68 69 73 29 0d 0a 20 20 reach.(var.eventPtr.in.this)....
3ae0 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 69 66 20 ..........{..................if.
3b00 28 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 (!isFirst)......................
3b20 73 74 72 2e 41 70 70 65 6e 64 28 22 2c 5c 6e 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 str.Append(",\n");..............
3b40 20 20 20 20 73 74 72 2e 41 70 70 65 6e 64 28 65 76 65 6e 74 50 74 72 2e 54 6f 53 74 72 69 6e 67 ....str.Append(eventPtr.ToString
3b60 28 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 73 46 69 72 73 74 20 3d 20 ());..................isFirst.=.
3b80 66 61 6c 73 65 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 20 false;..............}...........
3ba0 20 20 20 73 74 72 2e 41 70 70 65 6e 64 28 27 5d 27 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ...str.Append(']');.............
3bc0 20 72 65 74 75 72 6e 20 73 74 72 2e 54 6f 53 74 72 69 6e 67 28 29 3b 0d 0a 20 20 20 20 20 20 20 .return.str.ToString();.........
3be0 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 44 69 73 70 6f 73 .}............public.void.Dispos
3c00 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 55 6e 73 75 e()..........{..............Unsu
3c20 62 73 63 72 69 62 65 46 72 6f 6d 41 6c 6c 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 bscribeFromAll();..............D
3c40 69 73 70 6f 73 65 49 6e 74 65 72 6e 61 6c 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a isposeInternal();..........}....
3c60 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 44 69 73 70 6f 73 65 49 6e 74 65 ........private.void.DisposeInte
3c80 72 6e 61 6c 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 2f rnal()..........{............../
3ca0 2f 20 4e 75 6b 65 20 63 6c 6f 6e 65 73 20 77 65 20 6d 61 64 65 20 6f 66 20 49 6e 70 75 74 41 63 /.Nuke.clones.we.made.of.InputAc
3cc0 74 69 6f 6e 4d 61 70 53 74 61 74 65 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 tionMapStates...............for.
3ce0 28 76 61 72 20 69 20 3d 20 30 3b 20 69 20 3c 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 53 74 61 74 65 (var.i.=.0;.i.<.m_ActionMapState
3d00 43 6c 6f 6e 65 73 2e 6c 65 6e 67 74 68 3b 20 2b 2b 69 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 Clones.length;.++i).............
3d20 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 53 74 61 74 65 43 6c 6f 6e 65 73 5b 69 5d 2e 44 .....m_ActionMapStateClones[i].D
3d40 69 73 70 6f 73 65 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 45 76 65 6e 74 ispose();................m_Event
3d60 42 75 66 66 65 72 2e 44 69 73 70 6f 73 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d Buffer.Dispose();..............m
3d80 5f 41 63 74 69 6f 6e 4d 61 70 53 74 61 74 65 73 2e 43 6c 65 61 72 28 29 3b 0d 0a 20 20 20 20 20 _ActionMapStates.Clear();.......
3da0 20 20 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 53 74 61 74 65 43 6c 6f 6e 65 73 2e 43 6c .......m_ActionMapStateClones.Cl
3dc0 65 61 72 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 41 63 74 69 ear();................if.(m_Acti
3de0 6f 6e 43 68 61 6e 67 65 44 65 6c 65 67 61 74 65 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 onChangeDelegate.!=.null).......
3e00 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 49 6e 70 75 74 53 .......{..................InputS
3e20 79 73 74 65 6d 2e 6f 6e 41 63 74 69 6f 6e 43 68 61 6e 67 65 20 2d 3d 20 6d 5f 41 63 74 69 6f 6e ystem.onActionChange.-=.m_Action
3e40 43 68 61 6e 67 65 44 65 6c 65 67 61 74 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ChangeDelegate;.................
3e60 20 6d 5f 41 63 74 69 6f 6e 43 68 61 6e 67 65 44 65 6c 65 67 61 74 65 20 3d 20 6e 75 6c 6c 3b 0d .m_ActionChangeDelegate.=.null;.
3e80 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 .............}..........}.......
3ea0 20 20 20 20 20 70 75 62 6c 69 63 20 49 45 6e 75 6d 65 72 61 74 6f 72 3c 41 63 74 69 6f 6e 45 76 .....public.IEnumerator<ActionEv
3ec0 65 6e 74 50 74 72 3e 20 47 65 74 45 6e 75 6d 65 72 61 74 6f 72 28 29 0d 0a 20 20 20 20 20 20 20 entPtr>.GetEnumerator().........
3ee0 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6e 65 77 20 45 6e 75 6d 65 .{..............return.new.Enume
3f00 72 61 74 6f 72 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 20 20 rator(this);..........}.........
3f20 20 20 20 49 45 6e 75 6d 65 72 61 74 6f 72 20 49 45 6e 75 6d 65 72 61 62 6c 65 2e 47 65 74 45 6e ...IEnumerator.IEnumerable.GetEn
3f40 75 6d 65 72 61 74 6f 72 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 umerator()..........{...........
3f60 20 20 20 72 65 74 75 72 6e 20 47 65 74 45 6e 75 6d 65 72 61 74 6f 72 28 29 3b 0d 0a 20 20 20 20 ...return.GetEnumerator();......
3f80 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 62 6f 6f 6c 20 6d 5f ....}............private.bool.m_
3fa0 53 75 62 73 63 72 69 62 65 64 54 6f 41 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 SubscribedToAll;..........privat
3fc0 65 20 62 6f 6f 6c 20 6d 5f 4f 6e 41 63 74 69 6f 6e 43 68 61 6e 67 65 48 6f 6f 6b 65 64 3b 0d 0a e.bool.m_OnActionChangeHooked;..
3fe0 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 49 6e 6c 69 6e 65 64 41 72 72 61 79 3c 49 6e 70 ........private.InlinedArray<Inp
4000 75 74 41 63 74 69 6f 6e 3e 20 6d 5f 53 75 62 73 63 72 69 62 65 64 41 63 74 69 6f 6e 73 3b 0d 0a utAction>.m_SubscribedActions;..
4020 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 49 6e 6c 69 6e 65 64 41 72 72 61 79 3c 49 6e 70 ........private.InlinedArray<Inp
4040 75 74 41 63 74 69 6f 6e 4d 61 70 3e 20 6d 5f 53 75 62 73 63 72 69 62 65 64 41 63 74 69 6f 6e 4d utActionMap>.m_SubscribedActionM
4060 61 70 73 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 49 6e 70 75 74 45 76 65 6e 74 aps;..........private.InputEvent
4080 42 75 66 66 65 72 20 6d 5f 45 76 65 6e 74 42 75 66 66 65 72 3b 0d 0a 20 20 20 20 20 20 20 20 70 Buffer.m_EventBuffer;..........p
40a0 72 69 76 61 74 65 20 49 6e 6c 69 6e 65 64 41 72 72 61 79 3c 49 6e 70 75 74 41 63 74 69 6f 6e 53 rivate.InlinedArray<InputActionS
40c0 74 61 74 65 3e 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 53 74 61 74 65 73 3b 0d 0a 20 20 20 20 20 20 tate>.m_ActionMapStates;........
40e0 20 20 70 72 69 76 61 74 65 20 49 6e 6c 69 6e 65 64 41 72 72 61 79 3c 49 6e 70 75 74 41 63 74 69 ..private.InlinedArray<InputActi
4100 6f 6e 53 74 61 74 65 3e 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 53 74 61 74 65 43 6c 6f 6e 65 73 3b onState>.m_ActionMapStateClones;
4120 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 41 63 74 69 6f 6e 3c 49 6e 70 75 74 41 63 ..........private.Action<InputAc
4140 74 69 6f 6e 2e 43 61 6c 6c 62 61 63 6b 43 6f 6e 74 65 78 74 3e 20 6d 5f 43 61 6c 6c 62 61 63 6b tion.CallbackContext>.m_Callback
4160 44 65 6c 65 67 61 74 65 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 41 63 74 69 6f Delegate;..........private.Actio
4180 6e 3c 6f 62 6a 65 63 74 2c 20 49 6e 70 75 74 41 63 74 69 6f 6e 43 68 61 6e 67 65 3e 20 6d 5f 41 n<object,.InputActionChange>.m_A
41a0 63 74 69 6f 6e 43 68 61 6e 67 65 44 65 6c 65 67 61 74 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 ctionChangeDelegate;............
41c0 70 72 69 76 61 74 65 20 76 6f 69 64 20 48 6f 6f 6b 4f 6e 41 63 74 69 6f 6e 43 68 61 6e 67 65 28 private.void.HookOnActionChange(
41e0 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 5f )..........{..............if.(m_
4200 4f 6e 41 63 74 69 6f 6e 43 68 61 6e 67 65 48 6f 6f 6b 65 64 29 0d 0a 20 20 20 20 20 20 20 20 20 OnActionChangeHooked)...........
4220 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 69 66 .......return;................if
4240 20 28 6d 5f 41 63 74 69 6f 6e 43 68 61 6e 67 65 44 65 6c 65 67 61 74 65 20 3d 3d 20 6e 75 6c 6c .(m_ActionChangeDelegate.==.null
4260 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e 43 68 61 6e 67 )..................m_ActionChang
4280 65 44 65 6c 65 67 61 74 65 20 3d 20 4f 6e 41 63 74 69 6f 6e 43 68 61 6e 67 65 3b 0d 0a 0d 0a 20 eDelegate.=.OnActionChange;.....
42a0 20 20 20 20 20 20 20 20 20 20 20 49 6e 70 75 74 53 79 73 74 65 6d 2e 6f 6e 41 63 74 69 6f 6e 43 ...........InputSystem.onActionC
42c0 68 61 6e 67 65 20 2b 3d 20 6d 5f 41 63 74 69 6f 6e 43 68 61 6e 67 65 44 65 6c 65 67 61 74 65 3b hange.+=.m_ActionChangeDelegate;
42e0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 4f 6e 41 63 74 69 6f 6e 43 68 61 6e 67 65 48 6f ..............m_OnActionChangeHo
4300 6f 6b 65 64 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 oked.=.true;..........}.........
4320 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 55 6e 68 6f 6f 6b 4f 6e 41 63 74 69 6f 6e 43 68 ...private.void.UnhookOnActionCh
4340 61 6e 67 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 69 ange()..........{..............i
4360 66 20 28 21 6d 5f 4f 6e 41 63 74 69 6f 6e 43 68 61 6e 67 65 48 6f 6f 6b 65 64 29 0d 0a 20 20 20 f.(!m_OnActionChangeHooked).....
4380 20 20 20 20 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 .............return;............
43a0 20 20 20 20 49 6e 70 75 74 53 79 73 74 65 6d 2e 6f 6e 41 63 74 69 6f 6e 43 68 61 6e 67 65 20 2d ....InputSystem.onActionChange.-
43c0 3d 20 6d 5f 41 63 74 69 6f 6e 43 68 61 6e 67 65 44 65 6c 65 67 61 74 65 3b 0d 0a 20 20 20 20 20 =.m_ActionChangeDelegate;.......
43e0 20 20 20 20 20 20 20 6d 5f 4f 6e 41 63 74 69 6f 6e 43 68 61 6e 67 65 48 6f 6f 6b 65 64 20 3d 20 .......m_OnActionChangeHooked.=.
4400 66 61 6c 73 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 70 72 69 false;..........}............pri
4420 76 61 74 65 20 76 6f 69 64 20 4f 6e 41 63 74 69 6f 6e 43 68 61 6e 67 65 28 6f 62 6a 65 63 74 20 vate.void.OnActionChange(object.
4440 61 63 74 69 6f 6e 4f 72 4d 61 70 2c 20 49 6e 70 75 74 41 63 74 69 6f 6e 43 68 61 6e 67 65 20 63 actionOrMap,.InputActionChange.c
4460 68 61 6e 67 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 2f hange)..........{............../
4480 2f 20 49 66 20 77 65 27 72 65 20 73 75 62 73 63 72 69 62 65 64 20 74 6f 20 61 6c 6c 20 61 63 74 /.If.we're.subscribed.to.all.act
44a0 69 6f 6e 73 2c 20 63 68 65 63 6b 20 69 66 20 61 6e 20 61 63 74 69 6f 6e 20 67 6f 74 20 74 72 69 ions,.check.if.an.action.got.tri
44c0 67 67 65 72 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 53 75 62 73 63 ggered...............if.(m_Subsc
44e0 72 69 62 65 64 54 6f 41 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 ribedToAll)..............{......
4500 20 20 20 20 20 20 20 20 20 20 20 20 73 77 69 74 63 68 20 28 63 68 61 6e 67 65 29 0d 0a 20 20 20 ............switch.(change).....
4520 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 20 20 20 20 20 20 .............{..................
4540 20 20 20 20 63 61 73 65 20 49 6e 70 75 74 41 63 74 69 6f 6e 43 68 61 6e 67 65 2e 41 63 74 69 6f ....case.InputActionChange.Actio
4560 6e 53 74 61 72 74 65 64 3a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 nStarted:......................c
4580 61 73 65 20 49 6e 70 75 74 41 63 74 69 6f 6e 43 68 61 6e 67 65 2e 41 63 74 69 6f 6e 50 65 72 66 ase.InputActionChange.ActionPerf
45a0 6f 72 6d 65 64 3a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 ormed:......................case
45c0 20 49 6e 70 75 74 41 63 74 69 6f 6e 43 68 61 6e 67 65 2e 41 63 74 69 6f 6e 43 61 6e 63 65 6c 65 .InputActionChange.ActionCancele
45e0 64 3a 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 44 65 62 75 d:..........................Debu
4600 67 2e 41 73 73 65 72 74 28 61 63 74 69 6f 6e 4f 72 4d 61 70 20 69 73 20 49 6e 70 75 74 41 63 74 g.Assert(actionOrMap.is.InputAct
4620 69 6f 6e 2c 20 22 45 78 70 65 63 74 65 64 20 61 6e 20 61 63 74 69 6f 6e 22 29 3b 0d 0a 20 20 20 ion,."Expected.an.action");.....
4640 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 74 72 69 67 67 65 72 .....................var.trigger
4660 65 64 41 63 74 69 6f 6e 20 3d 20 28 49 6e 70 75 74 41 63 74 69 6f 6e 29 61 63 74 69 6f 6e 4f 72 edAction.=.(InputAction)actionOr
4680 4d 61 70 3b 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 76 61 Map;..........................va
46a0 72 20 61 63 74 69 6f 6e 49 6e 64 65 78 20 3d 20 74 72 69 67 67 65 72 65 64 41 63 74 69 6f 6e 2e r.actionIndex.=.triggeredAction.
46c0 6d 5f 41 63 74 69 6f 6e 49 6e 64 65 78 49 6e 53 74 61 74 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 m_ActionIndexInState;...........
46e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 74 61 74 65 46 6f 72 41 63 74 69 6f ...............var.stateForActio
4700 6e 20 3d 20 74 72 69 67 67 65 72 65 64 41 63 74 69 6f 6e 2e 6d 5f 41 63 74 69 6f 6e 4d 61 70 2e n.=.triggeredAction.m_ActionMap.
4720 6d 5f 53 74 61 74 65 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 m_State;........................
4740 20 20 20 20 76 61 72 20 63 6f 6e 74 65 78 74 20 3d 20 6e 65 77 20 49 6e 70 75 74 41 63 74 69 6f ....var.context.=.new.InputActio
4760 6e 2e 43 61 6c 6c 62 61 63 6b 43 6f 6e 74 65 78 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 n.CallbackContext...............
4780 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 20 20 ...........{....................
47a0 20 20 20 20 20 20 20 20 20 20 6d 5f 53 74 61 74 65 20 3d 20 73 74 61 74 65 46 6f 72 41 63 74 69 ..........m_State.=.stateForActi
47c0 6f 6e 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 20 20 20 on,.............................
47e0 20 6d 5f 41 63 74 69 6f 6e 49 6e 64 65 78 20 3d 20 61 63 74 69 6f 6e 49 6e 64 65 78 2c 0d 0a 20 .m_ActionIndex.=.actionIndex,...
4800 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 3b 0d 0a 0d 0a 20 20 20 .......................};.......
4820 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 6f 72 64 41 63 74 69 6f .....................RecordActio
4840 6e 28 63 6f 6e 74 65 78 74 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 n(context);.....................
4860 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .......return;..................
4880 7d 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 20 20 20 20 }..............}................
48a0 2f 2f 20 57 65 27 72 65 20 6f 6e 6c 79 20 69 6e 74 65 72 65 73 74 65 64 20 69 6e 20 63 68 61 6e //.We're.only.interested.in.chan
48c0 67 65 73 20 74 6f 20 74 68 65 20 62 69 6e 64 69 6e 67 20 72 65 73 6f 6c 75 74 69 6f 6e 20 73 74 ges.to.the.binding.resolution.st
48e0 61 74 65 20 6f 66 20 61 63 74 69 6f 6e 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 ate.of.actions...............if.
4900 28 63 68 61 6e 67 65 20 21 3d 20 49 6e 70 75 74 41 63 74 69 6f 6e 43 68 61 6e 67 65 2e 42 6f 75 (change.!=.InputActionChange.Bou
4920 6e 64 43 6f 6e 74 72 6f 6c 73 41 62 6f 75 74 54 6f 43 68 61 6e 67 65 29 0d 0a 20 20 20 20 20 20 ndControlsAboutToChange)........
4940 20 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 ..........return;...............
4960 20 2f 2f 20 47 72 61 62 20 74 68 65 20 61 73 73 6f 63 69 61 74 65 64 20 61 63 74 69 6f 6e 20 6d .//.Grab.the.associated.action.m
4980 61 70 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 63 74 69 6f 6e 20 3d 20 61 63 ap...............var.action.=.ac
49a0 74 69 6f 6e 4f 72 4d 61 70 20 61 73 20 49 6e 70 75 74 41 63 74 69 6f 6e 3b 0d 0a 20 20 20 20 20 tionOrMap.as.InputAction;.......
49c0 20 20 20 20 20 20 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 3b .......InputActionMap.actionMap;
49e0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 61 63 74 69 6f 6e 20 21 3d 20 6e 75 6c 6c ..............if.(action.!=.null
4a00 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 63 74 69 6f 6e 4d 61 70 20 3d 20 61 )..................actionMap.=.a
4a20 63 74 69 6f 6e 2e 6d 5f 41 63 74 69 6f 6e 4d 61 70 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ction.m_ActionMap;..............
4a40 65 6c 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 else..............{.............
4a60 20 20 20 20 20 61 63 74 69 6f 6e 4d 61 70 20 3d 20 61 63 74 69 6f 6e 4f 72 4d 61 70 20 61 73 20 .....actionMap.=.actionOrMap.as.
4a80 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 InputActionMap;.................
4aa0 20 44 65 62 75 67 2e 41 73 73 65 72 74 28 61 63 74 69 6f 6e 4d 61 70 20 21 3d 20 6e 75 6c 6c 2c .Debug.Assert(actionMap.!=.null,
4ac0 20 22 47 69 76 65 6e 20 6f 62 6a 65 63 74 20 69 73 20 6e 65 69 74 68 65 72 20 61 6e 20 49 6e 70 ."Given.object.is.neither.an.Inp
4ae0 75 74 41 63 74 69 6f 6e 20 6e 6f 72 20 61 6e 20 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 22 29 utAction.nor.an.InputActionMap")
4b00 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 20 20 20 20 ;..............}................
4b20 2f 2f 20 47 72 61 62 20 74 68 65 20 73 74 61 74 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 //.Grab.the.state...............
4b40 76 61 72 20 73 74 61 74 65 20 3d 20 61 63 74 69 6f 6e 4d 61 70 2e 6d 5f 53 74 61 74 65 3b 0d 0a var.state.=.actionMap.m_State;..
4b60 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 6e 75 6c 6c 29 0d 0a ............if.(state.==.null)..
4b80 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 2f ............{................../
4ba0 2f 20 42 69 6e 64 69 6e 67 73 20 68 61 76 65 20 6e 6f 74 20 62 65 65 6e 20 72 65 73 6f 6c 76 65 /.Bindings.have.not.been.resolve
4bc0 64 20 79 65 74 20 66 6f 72 20 74 68 69 73 20 61 63 74 69 6f 6e 20 6d 61 70 2e 20 57 65 20 73 68 d.yet.for.this.action.map..We.sh
4be0 6f 75 6c 64 6e 27 74 20 65 76 65 6e 20 62 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ouldn't.even.be.................
4c00 20 2f 2f 20 6f 6e 20 74 68 65 20 6e 6f 74 69 66 69 63 61 74 69 6f 6e 20 6c 69 73 74 20 69 6e 20 .//.on.the.notification.list.in.
4c20 74 68 69 73 20 63 61 73 65 2c 20 62 75 74 20 6a 75 73 74 20 69 6e 20 63 61 73 65 2c 20 69 67 6e this.case,.but.just.in.case,.ign
4c40 6f 72 65 2e 0d 0a 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 ore...................return;...
4c60 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 20 53 ...........}................//.S
4c80 65 65 20 69 66 20 77 65 27 72 65 20 75 73 69 6e 67 20 74 68 65 20 67 69 76 65 6e 20 73 74 61 74 ee.if.we're.using.the.given.stat
4ca0 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 74 61 74 65 49 6e 64 65 78 20 3d e...............var.stateIndex.=
4cc0 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 53 74 61 74 65 73 2e 49 6e 64 65 78 4f 66 52 65 66 65 72 65 .m_ActionMapStates.IndexOfRefere
4ce0 6e 63 65 28 73 74 61 74 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 74 61 nce(state);..............if.(sta
4d00 74 65 49 6e 64 65 78 20 3d 3d 20 2d 31 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 teIndex.==.-1)..................
4d20 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 59 65 73 2c 20 77 return;................//.Yes,.w
4d40 65 20 61 72 65 20 73 6f 20 6d 61 6b 65 20 6f 75 72 20 6f 77 6e 20 70 72 69 76 61 74 65 20 63 6f e.are.so.make.our.own.private.co
4d60 70 79 20 6f 66 20 69 74 73 20 63 75 72 72 65 6e 74 20 73 74 61 74 65 2e 0d 0a 20 20 20 20 20 20 py.of.its.current.state.........
4d80 20 20 20 20 20 20 2f 2f 20 4e 4f 54 45 3a 20 57 65 20 64 6f 20 6e 6f 74 20 70 75 74 20 74 68 65 ......//.NOTE:.We.do.not.put.the
4da0 73 65 20 6c 6f 63 61 6c 20 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 53 74 61 74 65 73 20 6f 6e se.local.InputActionMapStates.on
4dc0 20 74 68 65 20 67 6c 6f 62 61 6c 20 6c 69 73 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 .the.global.list...............v
4de0 61 72 20 63 6c 6f 6e 65 20 3d 20 73 74 61 74 65 2e 43 6c 6f 6e 65 28 29 3b 0d 0a 20 20 20 20 20 ar.clone.=.state.Clone();.......
4e00 20 20 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 53 74 61 74 65 43 6c 6f 6e 65 73 2e 41 70 .......m_ActionMapStateClones.Ap
4e20 70 65 6e 64 28 63 6c 6f 6e 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 63 74 69 pend(clone);..............m_Acti
4e40 6f 6e 4d 61 70 53 74 61 74 65 73 5b 73 74 61 74 65 49 6e 64 65 78 5d 20 3d 20 63 6c 6f 6e 65 3b onMapStates[stateIndex].=.clone;
4e60 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 75 6d 6d ..........}............///.<summ
4e80 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 41 20 77 72 61 70 70 65 72 20 61 72 6f 75 ary>..........///.A.wrapper.arou
4ea0 6e 64 20 3c 73 65 65 20 63 72 65 66 3d 22 41 63 74 69 6f 6e 45 76 65 6e 74 22 2f 3e 20 74 68 61 nd.<see.cref="ActionEvent"/>.tha
4ec0 74 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 74 72 61 6e 73 6c 61 74 65 73 20 61 6c 6c 20 74 t.automatically.translates.all.t
4ee0 68 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 69 6e 20 65 he..........///.information.in.e
4f00 76 65 6e 74 73 20 69 6e 74 6f 20 74 68 65 69 72 20 68 69 67 68 2d 6c 65 76 65 6c 20 72 65 70 72 vents.into.their.high-level.repr
4f20 65 73 65 6e 74 61 74 69 6f 6e 73 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d esentations...........///.</summ
4f40 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>.....
4f60 20 20 20 20 20 2f 2f 2f 20 46 6f 72 20 65 78 61 6d 70 6c 65 2c 20 69 6e 73 74 65 61 64 20 6f 66 .....///.For.example,.instead.of
4f80 20 72 65 74 75 72 6e 69 6e 67 20 3c 73 65 65 20 63 72 65 66 3d 22 41 63 74 69 6f 6e 45 76 65 6e .returning.<see.cref="ActionEven
4fa0 74 2e 63 6f 6e 74 72 6f 6c 49 6e 64 65 78 22 3e 63 6f 6e 74 72 6f 6c 20 69 6e 64 69 63 65 73 3c t.controlIndex">control.indices<
4fc0 2f 73 65 65 3e 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 69 74 20 61 75 74 6f 6d 61 74 69 63 /see>,..........///.it.automatic
4fe0 61 6c 6c 79 20 72 65 73 6f 6c 76 65 73 20 61 6e 64 20 72 65 74 75 72 6e 73 20 74 68 65 20 72 65 ally.resolves.and.returns.the.re
5000 73 70 65 63 74 69 76 65 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 43 6f 6e 74 72 6f 6c spective.<see.cref="InputControl
5020 22 3e 63 6f 6e 74 72 6f 6c 73 3c 2f 73 65 65 3e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c ">controls</see>...........///.<
5040 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 75 6e 73 61 66 65 /remarks>..........public.unsafe
5060 20 73 74 72 75 63 74 20 41 63 74 69 6f 6e 45 76 65 6e 74 50 74 72 0d 0a 20 20 20 20 20 20 20 20 .struct.ActionEventPtr..........
5080 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 6e 70 75 74 41 63 74 {..............internal.InputAct
50a0 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 20 20 20 20 20 20 69 ionState.m_State;..............i
50c0 6e 74 65 72 6e 61 6c 20 41 63 74 69 6f 6e 45 76 65 6e 74 2a 20 6d 5f 50 74 72 3b 0d 0a 0d 0a 20 nternal.ActionEvent*.m_Ptr;.....
50e0 20 20 20 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 20 61 63 ...........public.InputAction.ac
5100 74 69 6f 6e 20 3d 3e 20 6d 5f 53 74 61 74 65 2e 47 65 74 41 63 74 69 6f 6e 4f 72 4e 75 6c 6c 28 tion.=>.m_State.GetActionOrNull(
5120 6d 5f 50 74 72 2d 3e 62 69 6e 64 69 6e 67 49 6e 64 65 78 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 m_Ptr->bindingIndex);...........
5140 20 20 20 20 20 70 75 62 6c 69 63 20 49 6e 70 75 74 41 63 74 69 6f 6e 50 68 61 73 65 20 70 68 61 .....public.InputActionPhase.pha
5160 73 65 20 3d 3e 20 6d 5f 50 74 72 2d 3e 70 68 61 73 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 se.=>.m_Ptr->phase;.............
5180 20 20 20 70 75 62 6c 69 63 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 20 63 6f 6e 74 72 6f 6c 20 3d ...public.InputControl.control.=
51a0 3e 20 6d 5f 53 74 61 74 65 2e 63 6f 6e 74 72 6f 6c 73 5b 6d 5f 50 74 72 2d 3e 63 6f 6e 74 72 6f >.m_State.controls[m_Ptr->contro
51c0 6c 49 6e 64 65 78 5d 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 lIndex];................public.I
51e0 49 6e 70 75 74 49 6e 74 65 72 61 63 74 69 6f 6e 20 69 6e 74 65 72 61 63 74 69 6f 6e 0d 0a 20 20 InputInteraction.interaction....
5200 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 74 ..........{..................get
5220 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 20 ..................{.............
5240 20 20 20 20 20 20 20 20 20 76 61 72 20 69 6e 64 65 78 20 3d 20 6d 5f 50 74 72 2d 3e 69 6e 74 65 .........var.index.=.m_Ptr->inte
5260 72 61 63 74 69 6f 6e 49 6e 64 65 78 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ractionIndex;...................
5280 20 20 20 69 66 20 28 69 6e 64 65 78 20 3d 3d 20 49 6e 70 75 74 41 63 74 69 6f 6e 53 74 61 74 65 ...if.(index.==.InputActionState
52a0 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 20 20 .kInvalidIndex).................
52c0 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6e 75 6c 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 .........return.null;...........
52e0 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 74 65 2e 69 6e 74 65 .............return.m_State.inte
5300 72 61 63 74 69 6f 6e 73 5b 69 6e 64 65 78 5d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ractions[index];................
5320 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 20 20 20 20 20 20 ..}..............}..............
5340 20 20 70 75 62 6c 69 63 20 64 6f 75 62 6c 65 20 74 69 6d 65 20 3d 3e 20 6d 5f 50 74 72 2d 3e 62 ..public.double.time.=>.m_Ptr->b
5360 61 73 65 45 76 65 6e 74 2e 74 69 6d 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 aseEvent.time;................pu
5380 62 6c 69 63 20 64 6f 75 62 6c 65 20 73 74 61 72 74 54 69 6d 65 20 3d 3e 20 6d 5f 50 74 72 2d 3e blic.double.startTime.=>.m_Ptr->
53a0 73 74 61 72 74 54 69 6d 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 startTime;................public
53c0 20 64 6f 75 62 6c 65 20 64 75 72 61 74 69 6f 6e 20 3d 3e 20 74 69 6d 65 20 2d 20 73 74 61 72 74 .double.duration.=>.time.-.start
53e0 54 69 6d 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 69 6e 74 20 Time;................public.int.
5400 76 61 6c 75 65 53 69 7a 65 49 6e 42 79 74 65 73 20 3d 3e 20 6d 5f 50 74 72 2d 3e 76 61 6c 75 65 valueSizeInBytes.=>.m_Ptr->value
5420 53 69 7a 65 49 6e 42 79 74 65 73 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c SizeInBytes;................publ
5440 69 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 ic.object.ReadValueAsObject()...
5460 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 76 61 ...........{..................va
5480 72 20 76 61 6c 75 65 53 69 7a 65 49 6e 42 79 74 65 73 20 3d 20 6d 5f 50 74 72 2d 3e 76 61 6c 75 r.valueSizeInBytes.=.m_Ptr->valu
54a0 65 53 69 7a 65 49 6e 42 79 74 65 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 eSizeInBytes;..................v
54c0 61 72 20 76 61 6c 75 65 50 74 72 20 3d 20 6d 5f 50 74 72 2d 3e 76 61 6c 75 65 44 61 74 61 3b 0d ar.valuePtr.=.m_Ptr->valueData;.
54e0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 63 6f 6e 74 72 6f 6c 2e .................return.control.
5500 52 65 61 64 56 61 6c 75 65 46 72 6f 6d 42 75 66 66 65 72 41 73 4f 62 6a 65 63 74 28 76 61 6c 75 ReadValueFromBufferAsObject(valu
5520 65 50 74 72 2c 20 76 61 6c 75 65 53 69 7a 65 49 6e 42 79 74 65 73 29 3b 0d 0a 20 20 20 20 20 20 ePtr,.valueSizeInBytes);........
5540 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f ......}................public.vo
5560 69 64 20 52 65 61 64 56 61 6c 75 65 28 76 6f 69 64 2a 20 62 75 66 66 65 72 2c 20 69 6e 74 20 62 id.ReadValue(void*.buffer,.int.b
5580 75 66 66 65 72 53 69 7a 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 ufferSize)..............{.......
55a0 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 76 61 6c 75 65 53 69 7a 65 49 6e 42 79 74 65 73 20 ...........var.valueSizeInBytes.
55c0 3d 20 6d 5f 50 74 72 2d 3e 76 61 6c 75 65 53 69 7a 65 49 6e 42 79 74 65 73 3b 0d 0a 0d 0a 20 20 =.m_Ptr->valueSizeInBytes;......
55e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 64 6f 20 77 65 20 ..............////REVIEW:.do.we.
5600 77 61 6e 74 20 6d 6f 72 65 20 63 68 65 63 6b 69 6e 67 20 74 68 61 6e 20 74 68 69 73 3f 0d 0a 20 want.more.checking.than.this?...
5620 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 53 69 7a 65 20 3c 20 ...............if.(bufferSize.<.
5640 76 61 6c 75 65 53 69 7a 65 49 6e 42 79 74 65 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 valueSizeInBytes)...............
5660 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 45 78 63 65 70 74 69 .......throw.new.ArgumentExcepti
5680 6f 6e 28 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 24 22 45 on(..........................$"E
56a0 78 70 65 63 74 65 64 20 62 75 66 66 65 72 20 6f 66 20 61 74 20 6c 65 61 73 74 20 7b 76 61 6c 75 xpected.buffer.of.at.least.{valu
56c0 65 53 69 7a 65 49 6e 42 79 74 65 73 7d 20 62 79 74 65 73 20 62 75 74 20 67 6f 74 20 62 75 66 66 eSizeInBytes}.bytes.but.got.buff
56e0 65 72 20 6f 66 20 6a 75 73 74 20 7b 62 75 66 66 65 72 53 69 7a 65 7d 20 62 79 74 65 73 20 69 6e er.of.just.{bufferSize}.bytes.in
5700 73 74 65 61 64 22 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 stead",.........................
5720 20 6e 61 6d 65 6f 66 28 62 75 66 66 65 72 53 69 7a 65 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 .nameof(bufferSize));...........
5740 20 20 20 20 20 20 20 20 20 55 6e 73 61 66 65 55 74 69 6c 69 74 79 2e 4d 65 6d 43 70 79 28 62 75 .........UnsafeUtility.MemCpy(bu
5760 66 66 65 72 2c 20 6d 5f 50 74 72 2d 3e 76 61 6c 75 65 44 61 74 61 2c 20 76 61 6c 75 65 53 69 7a ffer,.m_Ptr->valueData,.valueSiz
5780 65 49 6e 42 79 74 65 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 eInBytes);..............}.......
57a0 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 54 56 61 6c 75 65 20 52 65 61 64 56 61 6c 75 65 .........public.TValue.ReadValue
57c0 3c 54 56 61 6c 75 65 3e 28 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 68 65 72 <TValue>()..................wher
57e0 65 20 54 56 61 6c 75 65 20 3a 20 73 74 72 75 63 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b e.TValue.:.struct..............{
5800 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 76 61 6c 75 65 53 69 7a 65 49 ..................var.valueSizeI
5820 6e 42 79 74 65 73 20 3d 20 6d 5f 50 74 72 2d 3e 76 61 6c 75 65 53 69 7a 65 49 6e 42 79 74 65 73 nBytes.=.m_Ptr->valueSizeInBytes
5840 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 52 45 56 49 45 57 3a ;....................////REVIEW:
5860 20 64 6f 20 77 65 20 77 61 6e 74 20 6d 6f 72 65 20 63 68 65 63 6b 69 6e 67 20 74 68 61 6e 20 74 .do.we.want.more.checking.than.t
5880 68 69 73 3f 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 55 6e 73 61 66 65 his?..................if.(Unsafe
58a0 55 74 69 6c 69 74 79 2e 53 69 7a 65 4f 66 3c 54 56 61 6c 75 65 3e 28 29 20 21 3d 20 76 61 6c 75 Utility.SizeOf<TValue>().!=.valu
58c0 65 53 69 7a 65 49 6e 42 79 74 65 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 eSizeInBytes)...................
58e0 20 20 20 74 68 72 6f 77 20 6e 65 77 20 49 6e 76 61 6c 69 64 4f 70 65 72 61 74 69 6f 6e 45 78 63 ...throw.new.InvalidOperationExc
5900 65 70 74 69 6f 6e 28 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 eption(.........................
5920 20 24 22 43 61 6e 6e 6f 74 20 72 65 61 64 20 61 20 76 61 6c 75 65 20 6f 66 20 74 79 70 65 20 27 .$"Cannot.read.a.value.of.type.'
5940 7b 74 79 70 65 6f 66 28 54 56 61 6c 75 65 29 2e 4e 61 6d 65 7d 27 20 77 69 74 68 20 73 69 7a 65 {typeof(TValue).Name}'.with.size
5960 20 7b 55 6e 73 61 66 65 55 74 69 6c 69 74 79 2e 53 69 7a 65 4f 66 3c 54 56 61 6c 75 65 3e 28 29 .{UnsafeUtility.SizeOf<TValue>()
5980 7d 20 66 72 6f 6d 20 65 76 65 6e 74 20 6f 6e 20 61 63 74 69 6f 6e 20 27 7b 61 63 74 69 6f 6e 7d }.from.event.on.action.'{action}
59a0 27 20 77 69 74 68 20 76 61 6c 75 65 20 73 69 7a 65 20 7b 76 61 6c 75 65 53 69 7a 65 49 6e 42 79 '.with.value.size.{valueSizeInBy
59c0 74 65 73 7d 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 72 tes}");....................var.r
59e0 65 73 75 6c 74 20 3d 20 6e 65 77 20 54 56 61 6c 75 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 esult.=.new.TValue();...........
5a00 20 20 20 20 20 20 20 76 61 72 20 72 65 73 75 6c 74 50 74 72 20 3d 20 55 6e 73 61 66 65 55 74 69 .......var.resultPtr.=.UnsafeUti
5a20 6c 69 74 79 2e 41 64 64 72 65 73 73 4f 66 28 72 65 66 20 72 65 73 75 6c 74 29 3b 0d 0a 20 20 20 lity.AddressOf(ref.result);.....
5a40 20 20 20 20 20 20 20 20 20 20 20 20 20 55 6e 73 61 66 65 55 74 69 6c 69 74 79 2e 4d 65 6d 43 70 .............UnsafeUtility.MemCp
5a60 79 28 72 65 73 75 6c 74 50 74 72 2c 20 6d 5f 50 74 72 2d 3e 76 61 6c 75 65 44 61 74 61 2c 20 76 y(resultPtr,.m_Ptr->valueData,.v
5a80 61 6c 75 65 53 69 7a 65 49 6e 42 79 74 65 73 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 alueSizeInBytes);...............
5aa0 20 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 20 20 20 .....return.result;.............
5ac0 20 7d 0d 0a 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 .}................public.overrid
5ae0 65 20 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 e.string.ToString().............
5b00 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 50 74 72 20 3d 3d .{..................if.(m_Ptr.==
5b20 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 72 65 74 75 .null)......................retu
5b40 72 6e 20 22 3c 6e 75 6c 6c 3e 22 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 rn."<null>";....................
5b60 76 61 72 20 61 63 74 69 6f 6e 4e 61 6d 65 20 3d 20 61 63 74 69 6f 6e 2e 61 63 74 69 6f 6e 4d 61 var.actionName.=.action.actionMa
5b80 70 20 21 3d 20 6e 75 6c 6c 20 3f 20 24 22 7b 61 63 74 69 6f 6e 2e 61 63 74 69 6f 6e 4d 61 70 2e p.!=.null.?.$"{action.actionMap.
5ba0 6e 61 6d 65 7d 2f 7b 61 63 74 69 6f 6e 2e 6e 61 6d 65 7d 22 20 3a 20 61 63 74 69 6f 6e 2e 6e 61 name}/{action.name}".:.action.na
5bc0 6d 65 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 24 22 7b 7b me;..................return.$"{{
5be0 20 61 63 74 69 6f 6e 3d 7b 61 63 74 69 6f 6e 4e 61 6d 65 7d 20 70 68 61 73 65 3d 7b 70 68 61 73 .action={actionName}.phase={phas
5c00 65 7d 20 74 69 6d 65 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 e}.time={time}.control={control}
5c20 20 76 61 6c 75 65 3d 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 .value={ReadValueAsObject()}.int
5c40 65 72 61 63 74 69 6f 6e 3d 7b 69 6e 74 65 72 61 63 74 69 6f 6e 7d 20 64 75 72 61 74 69 6f 6e 3d eraction={interaction}.duration=
5c60 7b 64 75 72 61 74 69 6f 6e 7d 20 7d 7d 22 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a {duration}.}}";..............}..
5c80 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 65 20 75 6e 73 ........}............private.uns
5ca0 61 66 65 20 73 74 72 75 63 74 20 45 6e 75 6d 65 72 61 74 6f 72 20 3a 20 49 45 6e 75 6d 65 72 61 afe.struct.Enumerator.:.IEnumera
5cc0 74 6f 72 3c 41 63 74 69 6f 6e 45 76 65 6e 74 50 74 72 3e 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a tor<ActionEventPtr>..........{..
5ce0 20 20 20 20 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 72 65 61 64 6f 6e 6c 79 20 49 6e 70 ............private.readonly.Inp
5d00 75 74 41 63 74 69 6f 6e 54 72 61 63 65 20 6d 5f 54 72 61 63 65 3b 0d 0a 20 20 20 20 20 20 20 20 utActionTrace.m_Trace;..........
5d20 20 20 20 20 70 72 69 76 61 74 65 20 72 65 61 64 6f 6e 6c 79 20 41 63 74 69 6f 6e 45 76 65 6e 74 ....private.readonly.ActionEvent
5d40 2a 20 6d 5f 42 75 66 66 65 72 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 *.m_Buffer;..............private
5d60 20 72 65 61 64 6f 6e 6c 79 20 69 6e 74 20 6d 5f 45 76 65 6e 74 43 6f 75 6e 74 3b 0d 0a 20 20 20 .readonly.int.m_EventCount;.....
5d80 20 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 41 63 74 69 6f 6e 45 76 65 6e 74 2a 20 6d 5f .........private.ActionEvent*.m_
5da0 43 75 72 72 65 6e 74 45 76 65 6e 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 69 76 61 CurrentEvent;..............priva
5dc0 74 65 20 69 6e 74 20 6d 5f 43 75 72 72 65 6e 74 49 6e 64 65 78 3b 0d 0a 0d 0a 20 20 20 20 20 20 te.int.m_CurrentIndex;..........
5de0 20 20 20 20 20 20 70 75 62 6c 69 63 20 45 6e 75 6d 65 72 61 74 6f 72 28 49 6e 70 75 74 41 63 74 ......public.Enumerator(InputAct
5e00 69 6f 6e 54 72 61 63 65 20 74 72 61 63 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a ionTrace.trace)..............{..
5e20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 54 72 61 63 65 20 3d 20 74 72 61 63 65 3b ................m_Trace.=.trace;
5e40 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 42 75 66 66 65 72 20 3d 20 28 41 63 ..................m_Buffer.=.(Ac
5e60 74 69 6f 6e 45 76 65 6e 74 2a 29 74 72 61 63 65 2e 6d 5f 45 76 65 6e 74 42 75 66 66 65 72 2e 62 tionEvent*)trace.m_EventBuffer.b
5e80 75 66 66 65 72 50 74 72 2e 64 61 74 61 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ufferPtr.data;..................
5ea0 6d 5f 45 76 65 6e 74 43 6f 75 6e 74 20 3d 20 74 72 61 63 65 2e 6d 5f 45 76 65 6e 74 42 75 66 66 m_EventCount.=.trace.m_EventBuff
5ec0 65 72 2e 65 76 65 6e 74 43 6f 75 6e 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 er.eventCount;..................
5ee0 6d 5f 43 75 72 72 65 6e 74 45 76 65 6e 74 20 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 m_CurrentEvent.=.null;..........
5f00 20 20 20 20 20 20 20 20 6d 5f 43 75 72 72 65 6e 74 49 6e 64 65 78 20 3d 20 30 3b 0d 0a 20 20 20 ........m_CurrentIndex.=.0;.....
5f20 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 70 75 62 6c 69 63 .........}................public
5f40 20 62 6f 6f 6c 20 4d 6f 76 65 4e 65 78 74 28 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d .bool.MoveNext()..............{.
5f60 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 43 75 72 72 65 6e 74 49 6e .................if.(m_CurrentIn
5f80 64 65 78 20 3d 3d 20 6d 5f 45 76 65 6e 74 43 6f 75 6e 74 29 0d 0a 20 20 20 20 20 20 20 20 20 20 dex.==.m_EventCount)............
5fa0 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 20 20 20 20 20 ..........return.false;.........
5fc0 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 43 75 72 72 65 6e 74 45 76 65 6e 74 20 3d 3d ...........if.(m_CurrentEvent.==
5fe0 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 20 20 20 20 20 .null)..................{.......
6000 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 75 72 72 65 6e 74 45 76 65 6e 74 20 3d 20 ...............m_CurrentEvent.=.
6020 6d 5f 42 75 66 66 65 72 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 m_Buffer;......................r
6040 65 74 75 72 6e 20 6d 5f 43 75 72 72 65 6e 74 45 76 65 6e 74 20 21 3d 20 6e 75 6c 6c 3b 0d 0a 20 eturn.m_CurrentEvent.!=.null;...
6060 20 20 20 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 20 20 20 20 ...............}................
6080 20 20 20 20 44 65 62 75 67 2e 41 73 73 65 72 74 28 6d 5f 43 75 72 72 65 6e 74 45 76 65 6e 74 20 ....Debug.Assert(m_CurrentEvent.
60a0 21 3d 20 6e 75 6c 6c 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2b 2b 6d !=.null);....................++m
60c0 5f 43 75 72 72 65 6e 74 49 6e 64 65 78 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 _CurrentIndex;..................
60e0 69 66 20 28 6d 5f 43 75 72 72 65 6e 74 49 6e 64 65 78 20 3d 3d 20 6d 5f 45 76 65 6e 74 43 6f 75 if.(m_CurrentIndex.==.m_EventCou
6100 6e 74 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 74 75 72 6e 20 nt)......................return.
6120 66 61 6c 73 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 75 72 72 false;....................m_Curr
6140 65 6e 74 45 76 65 6e 74 20 3d 20 28 41 63 74 69 6f 6e 45 76 65 6e 74 2a 29 49 6e 70 75 74 45 76 entEvent.=.(ActionEvent*)InputEv
6160 65 6e 74 2e 47 65 74 4e 65 78 74 49 6e 4d 65 6d 6f 72 79 28 28 49 6e 70 75 74 45 76 65 6e 74 2a ent.GetNextInMemory((InputEvent*
6180 29 6d 5f 43 75 72 72 65 6e 74 45 76 65 6e 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 )m_CurrentEvent);...............
61a0 20 20 20 72 65 74 75 72 6e 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a ...return.true;..............}..
61c0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 52 65 73 65 74 28 ..............public.void.Reset(
61e0 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 )..............{................
6200 20 20 6d 5f 43 75 72 72 65 6e 74 45 76 65 6e 74 20 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 ..m_CurrentEvent.=.null;........
6220 20 20 20 20 20 20 20 20 20 20 6d 5f 43 75 72 72 65 6e 74 49 6e 64 65 78 20 3d 20 30 3b 0d 0a 20 ..........m_CurrentIndex.=.0;...
6240 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 70 75 62 6c ...........}................publ
6260 69 63 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 20 20 20 20 7b ic.void.Dispose()..............{
6280 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 20 20 20 20 70 ..............}................p
62a0 75 62 6c 69 63 20 41 63 74 69 6f 6e 45 76 65 6e 74 50 74 72 20 43 75 72 72 65 6e 74 0d 0a 20 20 ublic.ActionEventPtr.Current....
62c0 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 74 ..........{..................get
62e0 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 20 ..................{.............
6300 20 20 20 20 20 20 20 20 20 76 61 72 20 73 74 61 74 65 20 3d 20 6d 5f 54 72 61 63 65 2e 6d 5f 41 .........var.state.=.m_Trace.m_A
6320 63 74 69 6f 6e 4d 61 70 53 74 61 74 65 73 5b 6d 5f 43 75 72 72 65 6e 74 45 76 65 6e 74 2d 3e 73 ctionMapStates[m_CurrentEvent->s
6340 74 61 74 65 49 6e 64 65 78 5d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 tateIndex];.....................
6360 20 72 65 74 75 72 6e 20 6e 65 77 20 41 63 74 69 6f 6e 45 76 65 6e 74 50 74 72 0d 0a 20 20 20 20 .return.new.ActionEventPtr......
6380 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 20 20 20 ................{...............
63a0 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 74 61 74 65 20 3d 20 73 74 61 74 65 2c 0d 0a 20 20 20 ...........m_State.=.state,.....
63c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 50 74 72 20 3d 20 6d 5f 43 .....................m_Ptr.=.m_C
63e0 75 72 72 65 6e 74 45 76 65 6e 74 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 urrentEvent,....................
6400 20 20 7d 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 ..};..................}.........
6420 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6f 62 6a 65 63 74 20 49 45 6e .....}................object.IEn
6440 75 6d 65 72 61 74 6f 72 2e 43 75 72 72 65 6e 74 20 3d 3e 20 43 75 72 72 65 6e 74 3b 0d 0a 20 20 umerator.Current.=>.Current;....
6460 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 00 00 00 00 00 00 00 ......}......}..}...............
6480 00 00 00 00 00 00 00 00 10 00 00 00 49 6e 70 75 74 41 63 74 69 6f 6e 54 72 61 63 65 21 00 00 00 ............InputActionTrace!...
64a0 55 6e 69 74 79 45 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 UnityEngine.InputSystem.Utilitie
64c0 73 00 00 00 s...