summaryrefslogtreecommitdiff
path: root/Library/Artifacts/8c/8c48936b25146fe085a96b9e9a5500e2
blob: b683ebc9f2514957a0d44eee5f22a00408fe2314 (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 32 f8 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe ......2.............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 98 22 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ."..............................
0fa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0fc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0fe0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 e0 79 af 00 00 00 00 00 00 00 00 00 .....................y..........
1040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1080 00 00 00 00 00 00 00 00 0c 00 00 00 53 74 65 61 6d 53 75 70 70 6f 72 74 12 22 00 00 23 69 66 20 ............SteamSupport."..#if.
10a0 28 55 4e 49 54 59 5f 53 54 41 4e 44 41 4c 4f 4e 45 20 7c 7c 20 55 4e 49 54 59 5f 45 44 49 54 4f (UNITY_STANDALONE.||.UNITY_EDITO
10c0 52 29 20 26 26 20 55 4e 49 54 59 5f 45 4e 41 42 4c 45 5f 53 54 45 41 4d 5f 43 4f 4e 54 52 4f 4c R).&&.UNITY_ENABLE_STEAM_CONTROL
10e0 4c 45 52 5f 53 55 50 50 4f 52 54 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 3b 0d 0a 75 73 69 6e LER_SUPPORT..using.System;..usin
1100 67 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 4c 61 79 6f 75 74 g.UnityEngine.InputSystem.Layout
1120 73 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 6e 70 75 74 53 79 73 74 65 s;..using.UnityEngine.InputSyste
1140 6d 2e 55 74 69 6c 69 74 69 65 73 3b 0d 0a 0d 0a 6e 61 6d 65 73 70 61 63 65 20 55 6e 69 74 79 45 m.Utilities;....namespace.UnityE
1160 6e 67 69 6e 65 2e 49 6e 70 75 74 53 79 73 74 65 6d 2e 53 74 65 61 6d 0d 0a 7b 0d 0a 20 20 20 20 ngine.InputSystem.Steam..{......
1180 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 2f 2f 2f 20 41 64 64 73 20 73 75 70 70 ///.<summary>......///.Adds.supp
11a0 6f 72 74 20 66 6f 72 20 53 74 65 61 6d 20 63 6f 6e 74 72 6f 6c 6c 65 72 73 2e 0d 0a 20 20 20 20 ort.for.Steam.controllers.......
11c0 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 23 69 66 20 55 4e 49 54 59 5f 44 49 53 41 42 4c ///.</summary>..#if.UNITY_DISABL
11e0 45 5f 44 45 46 41 55 4c 54 5f 49 4e 50 55 54 5f 50 4c 55 47 49 4e 5f 49 4e 49 54 49 41 4c 49 5a E_DEFAULT_INPUT_PLUGIN_INITIALIZ
1200 41 54 49 4f 4e 0d 0a 20 20 20 20 70 75 62 6c 69 63 0d 0a 23 65 6c 73 65 0d 0a 20 20 20 20 69 6e ATION......public..#else......in
1220 74 65 72 6e 61 6c 0d 0a 23 65 6e 64 69 66 0d 0a 20 20 20 20 73 74 61 74 69 63 20 63 6c 61 73 73 ternal..#endif......static.class
1240 20 53 74 65 61 6d 53 75 70 70 6f 72 74 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 2f 2f .SteamSupport......{..........//
1260 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 57 72 61 70 70 65 72 /.<summary>..........///.Wrapper
1280 20 61 72 6f 75 6e 64 20 74 68 65 20 53 74 65 61 6d 20 63 6f 6e 74 72 6f 6c 6c 65 72 20 41 50 49 .around.the.Steam.controller.API
12a0 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 ...........///.</summary>.......
12c0 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 ...///.<remarks>..........///.Th
12e0 69 73 20 6d 75 73 74 20 62 65 20 73 65 74 20 62 79 20 75 73 65 72 20 63 6f 64 65 20 66 6f 72 20 is.must.be.set.by.user.code.for.
1300 53 74 65 61 6d 20 63 6f 6e 74 72 6f 6c 6c 65 72 20 73 75 70 70 6f 72 74 20 74 6f 20 62 65 63 6f Steam.controller.support.to.beco
1320 6d 65 20 66 75 6e 63 74 69 6f 6e 61 6c 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 me.functional...........///.</re
1340 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 49 53 marks>..........public.static.IS
1360 74 65 61 6d 43 6f 6e 74 72 6f 6c 6c 65 72 41 50 49 20 61 70 69 0d 0a 20 20 20 20 20 20 20 20 7b teamControllerAPI.api..........{
1380 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 20 7b 20 72 65 74 75 72 6e 20 73 5f 41 50 49 ..............get.{.return.s_API
13a0 3b 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 0d 0a 20 20 20 20 20 20 20 20 20 20 ;.}..............set............
13c0 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 41 50 49 20 3d 20 76 61 6c ..{..................s_API.=.val
13e0 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 49 6e 73 74 61 6c 6c 48 6f 6f 6b ue;..................InstallHook
1400 73 28 73 5f 41 50 49 20 21 3d 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d s(s_API.!=.null);..............}
1420 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 ..........}............internal.
1440 73 74 61 74 69 63 20 49 53 74 65 61 6d 43 6f 6e 74 72 6f 6c 6c 65 72 41 50 49 20 47 65 74 41 50 static.ISteamControllerAPI.GetAP
1460 49 41 6e 64 52 65 71 75 69 72 65 49 74 54 6f 42 65 53 65 74 28 29 0d 0a 20 20 20 20 20 20 20 20 IAndRequireItToBeSet()..........
1480 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 5f 41 50 49 20 3d 3d 20 6e 75 6c 6c {..............if.(s_API.==.null
14a0 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 20 49 6e 76 )..................throw.new.Inv
14c0 61 6c 69 64 4f 70 65 72 61 74 69 6f 6e 45 78 63 65 70 74 69 6f 6e 28 22 49 53 74 65 61 6d 43 6f alidOperationException("ISteamCo
14e0 6e 74 72 6f 6c 6c 65 72 41 50 49 20 69 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 20 68 61 73 20 6e ntrollerAPI.implementation.has.n
1500 6f 74 20 62 65 65 6e 20 73 65 74 20 6f 6e 20 53 74 65 61 6d 53 75 70 70 6f 72 74 22 29 3b 0d 0a ot.been.set.on.SteamSupport");..
1520 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 73 5f 41 50 49 3b 0d 0a 20 20 20 20 20 ............return.s_API;.......
1540 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 73 74 61 74 69 63 20 ...}............internal.static.
1560 53 74 65 61 6d 48 61 6e 64 6c 65 3c 53 74 65 61 6d 43 6f 6e 74 72 6f 6c 6c 65 72 3e 5b 5d 20 73 SteamHandle<SteamController>[].s
1580 5f 43 6f 6e 6e 65 63 74 65 64 43 6f 6e 74 72 6f 6c 6c 65 72 73 3b 0d 0a 20 20 20 20 20 20 20 20 _ConnectedControllers;..........
15a0 69 6e 74 65 72 6e 61 6c 20 73 74 61 74 69 63 20 53 74 65 61 6d 43 6f 6e 74 72 6f 6c 6c 65 72 5b internal.static.SteamController[
15c0 5d 20 73 5f 49 6e 70 75 74 44 65 76 69 63 65 73 3b 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 ].s_InputDevices;..........inter
15e0 6e 61 6c 20 73 74 61 74 69 63 20 69 6e 74 20 73 5f 49 6e 70 75 74 44 65 76 69 63 65 43 6f 75 6e nal.static.int.s_InputDeviceCoun
1600 74 3b 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 73 74 61 74 69 63 20 62 6f 6f 6c t;..........internal.static.bool
1620 20 73 5f 48 6f 6f 6b 73 49 6e 73 74 61 6c 6c 65 64 3b 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 .s_HooksInstalled;..........inte
1640 72 6e 61 6c 20 73 74 61 74 69 63 20 49 53 74 65 61 6d 43 6f 6e 74 72 6f 6c 6c 65 72 41 50 49 20 rnal.static.ISteamControllerAPI.
1660 73 5f 41 50 49 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 63 6f 6e 73 74 20 s_API;............private.const.
1680 69 6e 74 20 53 54 45 41 4d 5f 43 4f 4e 54 52 4f 4c 4c 45 52 5f 4d 41 58 5f 43 4f 55 4e 54 20 3d int.STEAM_CONTROLLER_MAX_COUNT.=
16a0 20 31 36 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 .16;............///.<summary>...
16c0 20 20 20 20 20 20 20 2f 2f 2f 20 45 6e 61 62 6c 65 20 73 75 70 70 6f 72 74 20 66 6f 72 20 74 68 .......///.Enable.support.for.th
16e0 65 20 53 74 65 61 6d 20 63 6f 6e 74 72 6f 6c 6c 65 72 20 41 50 49 2e 0d 0a 20 20 20 20 20 20 20 e.Steam.controller.API..........
1700 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.
1720 73 74 61 74 69 63 20 76 6f 69 64 20 49 6e 69 74 69 61 6c 69 7a 65 28 29 0d 0a 20 20 20 20 20 20 static.void.Initialize()........
1740 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 57 65 20 75 73 65 20 74 68 69 73 20 ..{..............//.We.use.this.
1760 61 73 20 61 20 62 61 73 65 20 6c 61 79 6f 75 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 49 as.a.base.layout...............I
1780 6e 70 75 74 53 79 73 74 65 6d 2e 52 65 67 69 73 74 65 72 4c 61 79 6f 75 74 3c 53 74 65 61 6d 43 nputSystem.RegisterLayout<SteamC
17a0 6f 6e 74 72 6f 6c 6c 65 72 3e 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 ontroller>();................if.
17c0 28 61 70 69 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 49 (api.!=.null)..................I
17e0 6e 73 74 61 6c 6c 48 6f 6f 6b 73 28 74 72 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d nstallHooks(true);..........}...
1800 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 76 6f 69 64 20 49 6e 73 .........private.static.void.Ins
1820 74 61 6c 6c 48 6f 6f 6b 73 28 62 6f 6f 6c 20 73 74 61 74 65 29 0d 0a 20 20 20 20 20 20 20 20 7b tallHooks(bool.state)..........{
1840 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 65 62 75 67 2e 41 73 73 65 72 74 28 61 70 69 20 21 ..............Debug.Assert(api.!
1860 3d 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 74 61 74 65 20 =.null);..............if.(state.
1880 26 26 20 21 73 5f 48 6f 6f 6b 73 49 6e 73 74 61 6c 6c 65 64 29 0d 0a 20 20 20 20 20 20 20 20 20 &&.!s_HooksInstalled)...........
18a0 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 79 73 74 65 ...{..................InputSyste
18c0 6d 2e 6f 6e 42 65 66 6f 72 65 55 70 64 61 74 65 20 2b 3d 20 4f 6e 55 70 64 61 74 65 3b 0d 0a 20 m.onBeforeUpdate.+=.OnUpdate;...
18e0 20 20 20 20 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 ...............InputSystem.onAct
1900 69 6f 6e 43 68 61 6e 67 65 20 2b 3d 20 4f 6e 41 63 74 69 6f 6e 43 68 61 6e 67 65 3b 0d 0a 20 20 ionChange.+=.OnActionChange;....
1920 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 20 69 66 ..........}..............else.if
1940 20 28 21 73 74 61 74 65 20 26 26 20 73 5f 48 6f 6f 6b 73 49 6e 73 74 61 6c 6c 65 64 29 0d 0a 20 .(!state.&&.s_HooksInstalled)...
1960 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 49 6e ...........{..................In
1980 70 75 74 53 79 73 74 65 6d 2e 6f 6e 42 65 66 6f 72 65 55 70 64 61 74 65 20 2d 3d 20 4f 6e 55 70 putSystem.onBeforeUpdate.-=.OnUp
19a0 64 61 74 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 49 6e 70 75 74 53 79 73 74 date;..................InputSyst
19c0 65 6d 2e 6f 6e 41 63 74 69 6f 6e 43 68 61 6e 67 65 20 2d 3d 20 4f 6e 41 63 74 69 6f 6e 43 68 61 em.onActionChange.-=.OnActionCha
19e0 6e 67 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 7d 0d 0a nge;..............}..........}..
1a00 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 76 6f 69 64 20 4f 6e ..........private.static.void.On
1a20 41 63 74 69 6f 6e 43 68 61 6e 67 65 28 6f 62 6a 65 63 74 20 6d 61 70 4f 72 41 63 74 69 6f 6e 2c ActionChange(object.mapOrAction,
1a40 20 49 6e 70 75 74 41 63 74 69 6f 6e 43 68 61 6e 67 65 20 63 68 61 6e 67 65 29 0d 0a 20 20 20 20 .InputActionChange.change)......
1a60 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 57 65 20 6f 6e 6c 79 20 63 61 ....{..............//.We.only.ca
1a80 72 65 20 61 62 6f 75 74 20 61 63 74 69 6f 6e 20 6d 61 70 20 61 63 74 69 76 61 74 69 6f 6e 73 2e re.about.action.map.activations.
1aa0 20 53 74 65 61 6d 20 68 61 73 20 6e 6f 20 73 75 70 70 6f 72 74 20 66 6f 72 20 65 6e 61 62 6c 69 .Steam.has.no.support.for.enabli
1ac0 6e 67 20 6f 72 20 64 69 73 61 62 6c 69 6e 67 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 ng.or.disabling..............//.
1ae0 69 6e 64 69 76 69 64 75 61 6c 20 61 63 74 69 6f 6e 73 20 61 6e 64 20 61 6c 73 6f 20 68 61 73 20 individual.actions.and.also.has.
1b00 6e 6f 20 73 75 70 70 6f 72 74 20 64 69 73 61 62 6c 69 6e 67 20 73 65 74 73 20 6f 6e 63 65 20 65 no.support.disabling.sets.once.e
1b20 6e 61 62 6c 65 64 20 28 63 61 6e 20 6f 6e 6c 79 20 73 77 69 74 63 68 0d 0a 20 20 20 20 20 20 20 nabled.(can.only.switch.........
1b40 20 20 20 20 20 2f 2f 20 74 6f 20 64 69 66 66 65 72 65 6e 74 20 73 65 74 29 2e 0d 0a 20 20 20 20 .....//.to.different.set).......
1b60 20 20 20 20 20 20 20 20 69 66 20 28 63 68 61 6e 67 65 20 21 3d 20 49 6e 70 75 74 41 63 74 69 6f ........if.(change.!=.InputActio
1b80 6e 43 68 61 6e 67 65 2e 41 63 74 69 6f 6e 4d 61 70 45 6e 61 62 6c 65 64 29 0d 0a 20 20 20 20 20 nChange.ActionMapEnabled).......
1ba0 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 20 20 ...........return;..............
1bc0 20 20 2f 2f 20 53 65 65 20 69 66 20 74 68 65 20 6d 61 70 20 68 61 73 20 61 6e 79 20 62 69 6e 64 ..//.See.if.the.map.has.any.bind
1be0 69 6e 67 73 20 74 6f 20 53 74 65 61 6d 43 6f 6e 74 72 6f 6c 6c 65 72 73 2e 0d 0a 20 20 20 20 20 ings.to.SteamControllers........
1c00 20 20 20 20 20 20 20 2f 2f 20 4e 4f 54 45 3a 20 57 65 20 6f 6e 6c 79 20 73 75 70 70 6f 72 74 20 .......//.NOTE:.We.only.support.
1c20 61 20 73 69 6e 67 6c 65 20 53 74 65 61 6d 43 6f 6e 74 72 6f 6c 6c 65 72 20 6f 6e 20 61 6e 79 20 a.single.SteamController.on.any.
1c40 61 63 74 69 6f 6e 20 6d 61 70 20 68 65 72 65 2e 20 54 68 65 20 66 69 72 73 74 20 53 74 65 61 6d action.map.here..The.first.Steam
1c60 43 6f 6e 74 72 6f 6c 6c 65 72 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 20 20 20 20 20 Controller..............//......
1c80 20 77 65 20 66 69 6e 64 20 69 73 20 74 68 65 20 6f 6e 65 20 77 65 27 72 65 20 64 6f 69 6e 67 20 .we.find.is.the.one.we're.doing.
1ca0 61 6c 6c 20 74 68 65 20 77 6f 72 6b 20 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 all.the.work.on...............va
1cc0 72 20 61 63 74 69 6f 6e 4d 61 70 20 3d 20 28 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 29 6d 61 r.actionMap.=.(InputActionMap)ma
1ce0 70 4f 72 41 63 74 69 6f 6e 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 65 61 63 68 20 pOrAction;..............foreach.
1d00 28 76 61 72 20 61 63 74 69 6f 6e 20 69 6e 20 61 63 74 69 6f 6e 4d 61 70 2e 61 63 74 69 6f 6e 73 (var.action.in.actionMap.actions
1d20 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 )..............{................
1d40 20 20 66 6f 72 65 61 63 68 20 28 76 61 72 20 63 6f 6e 74 72 6f 6c 20 69 6e 20 61 63 74 69 6f 6e ..foreach.(var.control.in.action
1d60 2e 63 6f 6e 74 72 6f 6c 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 .controls)..................{...
1d80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 74 65 61 6d 43 6f 6e 74 ...................var.steamCont
1da0 72 6f 6c 6c 65 72 20 3d 20 63 6f 6e 74 72 6f 6c 2e 64 65 76 69 63 65 20 61 73 20 53 74 65 61 6d roller.=.control.device.as.Steam
1dc0 43 6f 6e 74 72 6f 6c 6c 65 72 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 Controller;.....................
1de0 20 69 66 20 28 73 74 65 61 6d 43 6f 6e 74 72 6f 6c 6c 65 72 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 .if.(steamController.==.null)...
1e00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 69 6e 75 65 3b .......................continue;
1e20 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 59 65 73 2c 20 ........................//.Yes,.
1e40 74 68 65 72 65 27 73 20 61 63 74 69 76 65 20 62 69 6e 64 69 6e 67 73 20 74 6f 20 61 20 53 74 65 there's.active.bindings.to.a.Ste
1e60 61 6d 43 6f 6e 74 72 6f 6c 6c 65 72 20 6f 6e 20 74 68 65 20 6d 61 70 2e 20 4c 6f 6f 6b 20 74 68 amController.on.the.map..Look.th
1e80 72 6f 75 67 68 20 74 68 65 20 53 74 65 61 6d 20 61 63 74 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 rough.the.Steam.action..........
1ea0 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 73 65 74 73 20 6f 6e 20 74 68 65 20 63 6f 6e 74 72 ............//.sets.on.the.contr
1ec0 6f 6c 6c 65 72 20 66 6f 72 20 61 20 6e 61 6d 65 20 6d 61 74 63 68 20 6f 6e 20 74 68 65 20 61 63 oller.for.a.name.match.on.the.ac
1ee0 74 69 6f 6e 20 6d 61 70 2e 20 49 66 20 77 65 20 68 61 76 65 20 6f 6e 65 2c 20 73 79 6e 63 20 74 tion.map..If.we.have.one,.sync.t
1f00 68 65 20 65 6e 61 62 6c 65 2f 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 he.enable/......................
1f20 2f 2f 20 64 69 73 61 62 6c 65 20 73 74 61 74 75 73 20 6f 66 20 74 68 65 20 73 65 74 2e 0d 0a 20 //.disable.status.of.the.set....
1f40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 63 74 69 6f 6e 4d 61 70 ...................var.actionMap
1f60 4e 61 6d 65 20 3d 20 61 63 74 69 6f 6e 4d 61 70 2e 6e 61 6d 65 3b 0d 0a 20 20 20 20 20 20 20 20 Name.=.actionMap.name;..........
1f80 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 65 61 63 68 20 28 76 61 72 20 73 65 74 20 69 6e 20 ............foreach.(var.set.in.
1fa0 73 74 65 61 6d 43 6f 6e 74 72 6f 6c 6c 65 72 2e 73 74 65 61 6d 41 63 74 69 6f 6e 53 65 74 73 29 steamController.steamActionSets)
1fc0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 ......................{.........
1fe0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 74 72 69 6e 67 2e 43 6f 6d 70 .................if.(string.Comp
2000 61 72 65 28 73 65 74 2e 6e 61 6d 65 2c 20 61 63 74 69 6f 6e 4d 61 70 4e 61 6d 65 2c 20 53 74 72 are(set.name,.actionMapName,.Str
2020 69 6e 67 43 6f 6d 70 61 72 69 73 6f 6e 2e 49 6e 76 61 72 69 61 6e 74 43 75 6c 74 75 72 65 49 67 ingComparison.InvariantCultureIg
2040 6e 6f 72 65 43 61 73 65 29 20 21 3d 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 noreCase).!=.0).................
2060 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 69 6e 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 .............continue;..........
2080 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4e 6f 74 68 69 6e 67 20 74 6f 20 ..................//.Nothing.to.
20a0 64 6f 20 69 66 20 74 68 65 20 53 74 65 61 6d 20 63 6f 6e 74 72 6f 6c 6c 65 72 20 68 61 73 20 61 do.if.the.Steam.controller.has.a
20c0 75 74 6f 2d 73 79 6e 63 69 6e 67 20 64 69 73 61 62 6c 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 20 uto-syncing.disabled............
20e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 73 74 65 61 6d 43 6f 6e 74 72 6f 6c ...............if.(!steamControl
2100 6c 65 72 2e 61 75 74 6f 41 63 74 69 76 61 74 65 53 65 74 73 29 0d 0a 20 20 20 20 20 20 20 20 20 ler.autoActivateSets)...........
2120 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 3b 0d 0a 0d 0a 20 20 ...................return;......
2140 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 79 6e 63 20 73 74 ......................//.Sync.st
2160 61 74 75 73 2e 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 73 atus...........................s
2180 74 65 61 6d 43 6f 6e 74 72 6f 6c 6c 65 72 2e 41 63 74 69 76 61 74 65 53 74 65 61 6d 41 63 74 69 teamController.ActivateSteamActi
21a0 6f 6e 53 65 74 28 73 65 74 2e 68 61 6e 64 6c 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 onSet(set.handle);..............
21c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 6f 6e 65 2e 0d 0a 20 20 20 20 20 20 20 20 ..............//.Done...........
21e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b 0d 0a 20 20 20 20 20 20 20 ................return;.........
2200 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .............}..................
2220 7d 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 7d 0d 0a 0d 0a 20 }..............}..........}.....
2240 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 76 6f 69 64 20 4f 6e 55 70 64 .......private.static.void.OnUpd
2260 61 74 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 66 ate()..........{..............if
2280 20 28 61 70 69 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 .(api.==.null)..................
22a0 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 55 70 64 61 74 65 return;................//.Update
22c0 20 63 6f 6e 74 72 6f 6c 6c 65 72 20 73 74 61 74 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 .controller.state...............
22e0 61 70 69 2e 52 75 6e 46 72 61 6d 65 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f api.RunFrame();................/
2300 2f 20 43 68 65 63 6b 20 69 66 20 77 65 20 68 61 76 65 20 61 6e 79 20 6e 65 77 20 63 6f 6e 74 72 /.Check.if.we.have.any.new.contr
2320 6f 6c 6c 65 72 73 20 68 61 76 65 20 61 70 70 65 61 72 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 20 ollers.have.appeared............
2340 20 20 20 69 66 20 28 73 5f 43 6f 6e 6e 65 63 74 65 64 43 6f 6e 74 72 6f 6c 6c 65 72 73 20 3d 3d ...if.(s_ConnectedControllers.==
2360 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 43 6f 6e 6e 65 63 .null)..................s_Connec
2380 74 65 64 43 6f 6e 74 72 6f 6c 6c 65 72 73 20 3d 20 6e 65 77 20 53 74 65 61 6d 48 61 6e 64 6c 65 tedControllers.=.new.SteamHandle
23a0 3c 53 74 65 61 6d 43 6f 6e 74 72 6f 6c 6c 65 72 3e 5b 53 54 45 41 4d 5f 43 4f 4e 54 52 4f 4c 4c <SteamController>[STEAM_CONTROLL
23c0 45 52 5f 4d 41 58 5f 43 4f 55 4e 54 5d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 ER_MAX_COUNT];..............var.
23e0 6e 75 6d 43 6f 6e 6e 65 63 74 65 64 43 6f 6e 74 72 6f 6c 6c 65 72 73 20 3d 20 61 70 69 2e 47 65 numConnectedControllers.=.api.Ge
2400 74 43 6f 6e 6e 65 63 74 65 64 43 6f 6e 74 72 6f 6c 6c 65 72 73 28 73 5f 43 6f 6e 6e 65 63 74 65 tConnectedControllers(s_Connecte
2420 64 43 6f 6e 74 72 6f 6c 6c 65 72 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 dControllers);..............for.
2440 28 76 61 72 20 69 20 3d 20 30 3b 20 69 20 3c 20 6e 75 6d 43 6f 6e 6e 65 63 74 65 64 43 6f 6e 74 (var.i.=.0;.i.<.numConnectedCont
2460 72 6f 6c 6c 65 72 73 3b 20 2b 2b 69 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 rollers;.++i)..............{....
2480 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 68 61 6e 64 6c 65 20 3d 20 73 5f 43 6f 6e ..............var.handle.=.s_Con
24a0 6e 65 63 74 65 64 43 6f 6e 74 72 6f 6c 6c 65 72 73 5b 69 5d 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 nectedControllers[i];...........
24c0 20 20 20 20 20 20 20 20 20 2f 2f 20 53 65 65 20 69 66 20 77 65 20 61 6c 72 65 61 64 79 20 68 61 .........//.See.if.we.already.ha
24e0 76 65 20 61 20 64 65 76 69 63 65 20 66 6f 72 20 74 68 69 73 20 6f 6e 65 2e 0d 0a 20 20 20 20 20 ve.a.device.for.this.one........
2500 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 5f 49 6e 70 75 74 44 65 76 69 63 65 73 20 21 3d ...........if.(s_InputDevices.!=
2520 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)..................{.......
2540 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 74 65 61 6d 43 6f 6e 74 72 6f 6c 6c 65 72 20 65 ...............SteamController.e
2560 78 69 73 74 69 6e 67 44 65 76 69 63 65 20 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 xistingDevice.=.null;...........
2580 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 76 61 72 20 6e 20 3d 20 30 3b 20 6e 20 3c 20 73 ...........for.(var.n.=.0;.n.<.s
25a0 5f 49 6e 70 75 74 44 65 76 69 63 65 43 6f 75 6e 74 3b 20 2b 2b 6e 29 0d 0a 20 20 20 20 20 20 20 _InputDeviceCount;.++n).........
25c0 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 .............{..................
25e0 20 20 20 20 20 20 20 20 69 66 20 28 73 5f 49 6e 70 75 74 44 65 76 69 63 65 73 5b 6e 5d 2e 73 74 ........if.(s_InputDevices[n].st
2600 65 61 6d 43 6f 6e 74 72 6f 6c 6c 65 72 48 61 6e 64 6c 65 20 3d 3d 20 68 61 6e 64 6c 65 29 0d 0a eamControllerHandle.==.handle)..
2620 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 ........................{.......
2640 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 78 69 73 74 69 6e 67 44 .......................existingD
2660 65 76 69 63 65 20 3d 20 73 5f 49 6e 70 75 74 44 65 76 69 63 65 73 5b 6e 5d 3b 0d 0a 20 20 20 20 evice.=.s_InputDevices[n];......
2680 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 72 65 61 6b 3b 0d 0a ........................break;..
26a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 ........................}.......
26c0 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 ...............}................
26e0 20 20 20 20 20 20 20 20 2f 2f 20 59 65 73 2c 20 77 65 20 64 6f 2e 0d 0a 20 20 20 20 20 20 20 20 ........//.Yes,.we.do...........
2700 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 65 78 69 73 74 69 6e 67 44 65 76 69 63 65 20 21 ............if.(existingDevice.!
2720 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 =.null).........................
2740 20 63 6f 6e 74 69 6e 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d .continue;..................}...
2760 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 46 49 58 4d 45 3a 20 74 68 69 73 .................////FIXME:.this
2780 20 73 68 6f 75 6c 64 20 6e 6f 74 20 63 72 65 61 74 65 20 67 61 72 62 61 67 65 0d 0a 20 20 20 20 .should.not.create.garbage......
27a0 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4e 6f 2c 20 73 6f 20 63 72 65 61 74 65 20 61 20 6e ............//.No,.so.create.a.n
27c0 65 77 20 64 65 76 69 63 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 ew.device...................var.
27e0 63 6f 6e 74 72 6f 6c 6c 65 72 4c 61 79 6f 75 74 73 20 3d 20 49 6e 70 75 74 53 79 73 74 65 6d 2e controllerLayouts.=.InputSystem.
2800 4c 69 73 74 4c 61 79 6f 75 74 73 42 61 73 65 64 4f 6e 28 22 53 74 65 61 6d 43 6f 6e 74 72 6f 6c ListLayoutsBasedOn("SteamControl
2820 6c 65 72 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 65 61 63 68 20 ler");..................foreach.
2840 28 76 61 72 20 6c 61 79 6f 75 74 20 69 6e 20 63 6f 6e 74 72 6f 6c 6c 65 72 4c 61 79 6f 75 74 73 (var.layout.in.controllerLayouts
2860 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 )..................{............
2880 20 20 20 20 20 20 20 20 20 20 2f 2f 20 52 61 74 68 65 72 20 74 68 61 6e 20 64 69 72 65 63 74 6c ..........//.Rather.than.directl
28a0 79 20 63 72 65 61 74 69 6e 67 20 61 20 64 65 76 69 63 65 20 77 69 74 68 20 74 68 65 20 6c 61 79 y.creating.a.device.with.the.lay
28c0 6f 75 74 2c 20 6c 65 74 20 69 74 20 67 6f 20 74 68 72 6f 75 67 68 0d 0a 20 20 20 20 20 20 20 20 out,.let.it.go.through..........
28e0 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 74 68 65 20 75 73 75 61 6c 20 6d 61 74 63 68 69 6e ............//.the.usual.matchin
2900 67 20 70 72 6f 63 65 73 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 g.process.......................
2920 76 61 72 20 64 65 76 69 63 65 20 3d 20 49 6e 70 75 74 53 79 73 74 65 6d 2e 41 64 64 44 65 76 69 var.device.=.InputSystem.AddDevi
2940 63 65 28 6e 65 77 20 49 6e 70 75 74 44 65 76 69 63 65 44 65 73 63 72 69 70 74 69 6f 6e 0d 0a 20 ce(new.InputDeviceDescription...
2960 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 ...................{............
2980 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 65 72 66 61 63 65 4e 61 6d 65 20 3d 20 53 74 ..............interfaceName.=.St
29a0 65 61 6d 43 6f 6e 74 72 6f 6c 6c 65 72 2e 6b 53 74 65 61 6d 49 6e 74 65 72 66 61 63 65 2c 0d 0a eamController.kSteamInterface,..
29c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 64 75 63 74 20 ........................product.
29e0 3d 20 6c 61 79 6f 75 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 29 =.layout......................})
2a00 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 2f 2f 20 4d 61 6b 65 ;........................//.Make
2a20 20 73 75 72 65 20 69 74 27 73 20 61 20 53 74 65 61 6d 43 6f 6e 74 72 6f 6c 6c 65 72 20 77 65 20 .sure.it's.a.SteamController.we.
2a40 67 6f 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 74 got.......................var.st
2a60 65 61 6d 44 65 76 69 63 65 20 3d 20 64 65 76 69 63 65 20 61 73 20 53 74 65 61 6d 43 6f 6e 74 72 eamDevice.=.device.as.SteamContr
2a80 6f 6c 6c 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 69 66 20 28 oller;......................if.(
2aa0 73 74 65 61 6d 44 65 76 69 63 65 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 steamDevice.==.null)............
2ac0 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 20 ..........{.....................
2ae0 20 20 20 20 20 44 65 62 75 67 2e 4c 6f 67 45 72 72 6f 72 28 73 74 72 69 6e 67 2e 46 6f 72 6d 61 .....Debug.LogError(string.Forma
2b00 74 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 20 20 20 20 t(..............................
2b20 22 49 6e 70 75 74 44 65 76 69 63 65 20 63 72 65 61 74 65 64 20 66 72 6f 6d 20 6c 61 79 6f 75 74 "InputDevice.created.from.layout
2b40 20 27 7b 30 7d 27 20 62 61 73 65 64 20 6f 6e 20 74 68 65 20 27 53 74 65 61 6d 43 6f 6e 74 72 6f .'{0}'.based.on.the.'SteamContro
2b60 6c 6c 65 72 27 20 6c 61 79 6f 75 74 20 69 73 20 6e 6f 74 20 61 20 53 74 65 61 6d 43 6f 6e 74 72 ller'.layout.is.not.a.SteamContr
2b80 6f 6c 6c 65 72 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 oller",.........................
2ba0 20 20 20 20 20 64 65 76 69 63 65 2e 6c 61 79 6f 75 74 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 .....device.layout));...........
2bc0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 69 6e 75 65 3b 0d 0a 20 20 20 20 20 20 ...............continue;........
2be0 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 20 ..............}.................
2c00 20 20 20 20 20 20 20 2f 2f 20 52 65 73 6f 6c 76 65 20 74 68 65 20 63 6f 6e 74 72 6f 6c 6c 65 72 .......//.Resolve.the.controller
2c20 27 73 20 61 63 74 69 6f 6e 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 's.actions......................
2c40 20 73 74 65 61 6d 44 65 76 69 63 65 2e 49 6e 76 6f 6b 65 52 65 73 6f 6c 76 65 53 74 65 61 6d 41 .steamDevice.InvokeResolveSteamA
2c60 63 74 69 6f 6e 73 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ctions();.......................
2c80 20 2f 2f 20 41 73 73 69 67 6e 20 69 74 20 74 68 65 20 53 74 65 61 6d 20 63 6f 6e 74 72 6f 6c 6c .//.Assign.it.the.Steam.controll
2ca0 65 72 20 68 61 6e 64 6c 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 er.handle.......................
2cc0 73 74 65 61 6d 44 65 76 69 63 65 2e 73 74 65 61 6d 43 6f 6e 74 72 6f 6c 6c 65 72 48 61 6e 64 6c steamDevice.steamControllerHandl
2ce0 65 20 3d 20 68 61 6e 64 6c 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 e.=.handle;.....................
2d00 20 20 20 41 72 72 61 79 48 65 6c 70 65 72 73 2e 41 70 70 65 6e 64 57 69 74 68 43 61 70 61 63 69 ...ArrayHelpers.AppendWithCapaci
2d20 74 79 28 72 65 66 20 73 5f 49 6e 70 75 74 44 65 76 69 63 65 73 2c 20 72 65 66 20 73 5f 49 6e 70 ty(ref.s_InputDevices,.ref.s_Inp
2d40 75 74 44 65 76 69 63 65 43 6f 75 6e 74 2c 20 73 74 65 61 6d 44 65 76 69 63 65 29 3b 0d 0a 20 20 utDeviceCount,.steamDevice);....
2d60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a ..............}..............}..
2d80 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 55 70 64 61 74 65 20 61 6c 6c 20 63 6f 6e 74 ..............//.Update.all.cont
2da0 72 6f 6c 6c 65 72 73 20 77 65 20 68 61 76 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f rollers.we.have...............fo
2dc0 72 20 28 76 61 72 20 69 20 3d 20 30 3b 20 69 20 3c 20 73 5f 49 6e 70 75 74 44 65 76 69 63 65 43 r.(var.i.=.0;.i.<.s_InputDeviceC
2de0 6f 75 6e 74 3b 20 2b 2b 69 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 ount;.++i)..............{.......
2e00 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 64 65 76 69 63 65 20 3d 20 73 5f 49 6e 70 75 74 44 ...........var.device.=.s_InputD
2e20 65 76 69 63 65 73 5b 69 5d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 evices[i];..................var.
2e40 68 61 6e 64 6c 65 20 3d 20 64 65 76 69 63 65 2e 73 74 65 61 6d 43 6f 6e 74 72 6f 6c 6c 65 72 48 handle.=.device.steamControllerH
2e60 61 6e 64 6c 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 68 65 andle;....................//.Che
2e80 63 6b 20 69 66 20 74 68 65 20 64 65 76 69 63 65 20 73 74 69 6c 6c 20 65 78 69 73 74 73 2e 0d 0a ck.if.the.device.still.exists...
2ea0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 74 69 6c 6c 45 78 69 73 74 73 20 ................var.stillExists.
2ec0 3d 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 76 =.false;..................for.(v
2ee0 61 72 20 6e 20 3d 20 30 3b 20 6e 20 3c 20 6e 75 6d 43 6f 6e 6e 65 63 74 65 64 43 6f 6e 74 72 6f ar.n.=.0;.n.<.numConnectedContro
2f00 6c 6c 65 72 73 3b 20 2b 2b 6e 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 llers;.++n).....................
2f20 20 69 66 20 28 73 5f 43 6f 6e 6e 65 63 74 65 64 43 6f 6e 74 72 6f 6c 6c 65 72 73 5b 6e 5d 20 3d .if.(s_ConnectedControllers[n].=
2f40 3d 20 68 61 6e 64 6c 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b =.handle)......................{
2f60 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 73 74 69 6c 6c 45 ..........................stillE
2f80 78 69 73 74 73 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 xists.=.true;...................
2fa0 20 20 20 20 20 20 20 62 72 65 61 6b 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .......break;...................
2fc0 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 49 66 20 6e 6f ...}....................//.If.no
2fe0 74 2c 20 72 65 6d 6f 76 65 20 69 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 t,.remove.it...................i
3000 66 20 28 21 73 74 69 6c 6c 45 78 69 73 74 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 f.(!stillExists)................
3020 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 41 72 72 61 79 48 65 ..{......................ArrayHe
3040 6c 70 65 72 73 2e 45 72 61 73 65 41 74 42 79 4d 6f 76 69 6e 67 54 61 69 6c 28 73 5f 49 6e 70 75 lpers.EraseAtByMovingTail(s_Inpu
3060 74 44 65 76 69 63 65 73 2c 20 72 65 66 20 73 5f 49 6e 70 75 74 44 65 76 69 63 65 43 6f 75 6e 74 tDevices,.ref.s_InputDeviceCount
3080 2c 20 69 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 52 ,.i);......................////R
30a0 45 56 49 45 57 3a 20 73 68 6f 75 6c 64 20 74 68 69 73 20 72 61 74 68 65 72 20 71 75 65 75 65 20 EVIEW:.should.this.rather.queue.
30c0 61 20 64 65 76 69 63 65 20 72 65 6d 6f 76 61 6c 20 65 76 65 6e 74 3f 0d 0a 20 20 20 20 20 20 20 a.device.removal.event?.........
30e0 20 20 20 20 20 20 20 20 20 20 20 20 20 49 6e 70 75 74 53 79 73 74 65 6d 2e 52 65 6d 6f 76 65 44 .............InputSystem.RemoveD
3100 65 76 69 63 65 28 64 65 76 69 63 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 evice(device);..................
3120 20 20 20 20 2d 2d 69 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f ....--i;......................co
3140 6e 74 69 6e 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 ntinue;..................}......
3160 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 54 4f 44 4f 3a 20 73 75 70 70 6f 72 74 20 ..............////TODO:.support.
3180 70 6f 6c 6c 69 6e 67 20 53 74 65 61 6d 20 63 6f 6e 74 72 6f 6c 6c 65 72 73 20 6f 6e 20 61 6e 20 polling.Steam.controllers.on.an.
31a0 61 73 79 6e 63 20 70 6f 6c 6c 69 6e 67 20 74 68 72 65 61 64 20 61 64 68 65 72 69 6e 67 20 74 6f async.polling.thread.adhering.to
31c0 20 49 6e 70 75 74 53 79 73 74 65 6d 2e 70 6f 6c 6c 69 6e 67 46 72 65 71 75 65 6e 63 79 0d 0a 20 .InputSystem.pollingFrequency...
31e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4f 74 68 65 72 77 69 73 65 2c 20 75 70 64 ...............//.Otherwise,.upd
3200 61 74 65 20 69 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 65 76 69 63 65 2e ate.it...................device.
3220 49 6e 76 6f 6b 65 55 70 64 61 74 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a InvokeUpdate();..............}..
3240 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 7d 0d 0a 0d 0a 23 65 6e 64 69 66 20 2f 2f ........}......}..}....#endif.//
3260 20 28 55 4e 49 54 59 5f 53 54 41 4e 44 41 4c 4f 4e 45 20 7c 7c 20 55 4e 49 54 59 5f 45 44 49 54 .(UNITY_STANDALONE.||.UNITY_EDIT
3280 4f 52 29 20 26 26 20 55 4e 49 54 59 5f 45 4e 41 42 4c 45 5f 53 54 45 41 4d 5f 43 4f 4e 54 52 4f OR).&&.UNITY_ENABLE_STEAM_CONTRO
32a0 4c 4c 45 52 5f 53 55 50 50 4f 52 54 0d 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 LLER_SUPPORT....................
32c0 00 00 00 00 0c 00 00 00 53 74 65 61 6d 53 75 70 70 6f 72 74 1d 00 00 00 55 6e 69 74 79 45 6e 67 ........SteamSupport....UnityEng
32e0 69 6e 65 2e 49 6e 70 75 74 53 79 73 74 65 6d 2e 53 74 65 61 6d 00 00 00 ine.InputSystem.Steam...