summaryrefslogtreecommitdiff
path: root/Library/Artifacts/a8/a8eb6a845a5a5158ecd0154c7822286d
blob: 10e98566195cf8ff76045811a73bb038631c72e4 (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 54 1c 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe ......T.............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 bc 43 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 .C..............................
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 16 00 00 00 49 6e 70 75 74 44 65 76 69 63 65 44 65 73 63 72 69 70 74 69 ............InputDeviceDescripti
10a0 6f 6e 00 00 3f 43 00 00 75 73 69 6e 67 20 53 79 73 74 65 6d 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 on..?C..using.System;..using.Uni
10c0 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 73 3b 0d tyEngine.InputSystem.Utilities;.
10e0 0a 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 61 64 64 20 61 20 27 64 65 76 69 63 65 50 61 74 68 27 20 ...////TODO:.add.a.'devicePath'.
1100 70 72 6f 70 65 72 74 79 20 74 68 61 74 20 70 6c 61 74 66 6f 72 6d 73 20 63 61 6e 20 75 73 65 20 property.that.platforms.can.use.
1120 74 6f 20 72 65 6c 61 79 20 74 68 65 69 72 20 69 6e 74 65 72 6e 61 6c 20 64 65 76 69 63 65 20 6c to.relay.their.internal.device.l
1140 6f 63 61 74 6f 72 73 0d 0a 2f 2f 2f 2f 20 20 20 20 20 20 28 62 75 74 20 64 6f 20 2a 6e 6f 74 2a ocators..////......(but.do.*not*
1160 20 74 61 6b 65 20 69 74 20 69 6e 74 6f 20 61 63 63 6f 75 6e 74 20 77 68 65 6e 20 63 6f 6d 70 61 .take.it.into.account.when.compa
1180 72 69 6e 67 20 64 65 73 63 72 69 70 74 69 6f 6e 73 20 66 6f 72 20 64 69 73 63 6f 6e 6e 65 63 74 ring.descriptions.for.disconnect
11a0 65 64 20 64 65 76 69 63 65 73 29 0d 0a 0d 0a 6e 61 6d 65 73 70 61 63 65 20 55 6e 69 74 79 45 6e ed.devices)....namespace.UnityEn
11c0 67 69 6e 65 2e 49 6e 70 75 74 53 79 73 74 65 6d 2e 4c 61 79 6f 75 74 73 0d 0a 7b 0d 0a 20 20 20 gine.InputSystem.Layouts..{.....
11e0 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 2f 2f 2f 20 4d 65 74 61 64 61 74 61 .///.<summary>......///.Metadata
1200 20 66 6f 72 20 61 6e 20 69 6e 70 75 74 20 64 65 76 69 63 65 2e 0d 0a 20 20 20 20 2f 2f 2f 20 3c .for.an.input.device.......///.<
1220 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 /summary>......///.<remarks>....
1240 20 20 2f 2f 2f 20 44 65 76 69 63 65 20 64 65 73 63 72 69 70 74 69 6f 6e 73 20 61 72 65 20 6d 61 ..///.Device.descriptions.are.ma
1260 69 6e 6c 79 20 75 73 65 64 20 74 6f 20 64 65 74 65 72 6d 69 6e 65 20 77 68 69 63 68 20 3c 73 65 inly.used.to.determine.which.<se
1280 65 20 63 72 65 66 3d 22 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 4c 61 79 6f 75 74 22 2f 3e 0d 0a 20 e.cref="InputControlLayout"/>...
12a0 20 20 20 2f 2f 2f 20 74 6f 20 63 72 65 61 74 65 20 61 6e 20 61 63 74 75 61 6c 20 3c 73 65 65 20 ...///.to.create.an.actual.<see.
12c0 63 72 65 66 3d 22 49 6e 70 75 74 44 65 76 69 63 65 22 2f 3e 20 69 6e 73 74 61 6e 63 65 20 66 72 cref="InputDevice"/>.instance.fr
12e0 6f 6d 2e 20 45 61 63 68 20 64 65 73 63 72 69 70 74 69 6f 6e 20 69 73 20 63 6f 6d 70 72 69 73 65 om..Each.description.is.comprise
1300 64 0d 0a 20 20 20 20 2f 2f 2f 20 6f 66 20 61 20 73 65 74 20 6f 66 20 70 72 6f 70 65 72 74 69 65 d......///.of.a.set.of.propertie
1320 73 20 74 68 61 74 20 65 61 63 68 20 61 72 65 20 69 6e 64 69 76 69 64 75 61 6c 6c 79 20 6f 70 74 s.that.each.are.individually.opt
1340 69 6f 6e 61 6c 2e 20 48 6f 77 65 76 65 72 2c 20 66 6f 72 20 61 20 64 65 73 63 72 69 70 74 69 6f ional..However,.for.a.descriptio
1360 6e 0d 0a 20 20 20 20 2f 2f 2f 20 74 6f 20 62 65 20 75 73 61 62 6c 65 2c 20 61 74 20 6c 65 61 73 n......///.to.be.usable,.at.leas
1380 74 20 73 6f 6d 65 20 6e 65 65 64 20 74 6f 20 62 65 20 73 65 74 2e 20 47 65 6e 65 72 61 6c 6c 79 t.some.need.to.be.set..Generally
13a0 2c 20 74 68 65 20 6d 69 6e 69 6d 75 6d 20 76 69 61 62 6c 65 20 64 65 73 63 72 69 70 74 69 6f 6e ,.the.minimum.viable.description
13c0 0d 0a 20 20 20 20 2f 2f 2f 20 66 6f 72 20 61 20 64 65 76 69 63 65 20 69 73 20 6f 6e 65 20 77 69 ......///.for.a.device.is.one.wi
13e0 74 68 20 3c 73 65 65 20 63 72 65 66 3d 22 64 65 76 69 63 65 43 6c 61 73 73 22 2f 3e 20 66 69 6c th.<see.cref="deviceClass"/>.fil
1400 6c 65 64 20 6f 75 74 2e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 3c 65 78 61 6d led.out.......///......///.<exam
1420 70 6c 65 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 63 6f 64 65 3e 0d 0a 20 20 20 20 2f 2f 2f 20 2f 2f ple>......///.<code>......///.//
1440 20 44 65 76 69 63 65 20 64 65 73 63 72 69 70 74 69 6f 6e 20 65 71 75 69 76 61 6c 65 6e 74 20 74 .Device.description.equivalent.t
1460 6f 20 61 20 67 65 6e 65 72 69 63 20 67 61 6d 65 70 61 64 20 77 69 74 68 20 6e 6f 0d 0a 20 20 20 o.a.generic.gamepad.with.no.....
1480 20 2f 2f 2f 20 2f 2f 20 66 75 72 74 68 65 72 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 61 62 6f 75 .///.//.further.information.abou
14a0 74 20 74 68 65 20 64 65 76 69 63 65 2e 0d 0a 20 20 20 20 2f 2f 2f 20 6e 65 77 20 49 6e 70 75 74 t.the.device.......///.new.Input
14c0 44 65 76 69 63 65 44 65 73 63 72 69 70 74 69 6f 6e 0d 0a 20 20 20 20 2f 2f 2f 20 7b 0d 0a 20 20 DeviceDescription......///.{....
14e0 20 20 2f 2f 2f 20 20 20 20 20 64 65 76 69 63 65 43 6c 61 73 73 20 3d 20 22 47 61 6d 65 70 61 64 ..///.....deviceClass.=."Gamepad
1500 22 0d 0a 20 20 20 20 2f 2f 2f 20 7d 3b 0d 0a 20 20 20 20 2f 2f 2f 20 3c 2f 63 6f 64 65 3e 0d 0a "......///.};......///.</code>..
1520 20 20 20 20 2f 2f 2f 20 3c 2f 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 ....///.</example>......///.....
1540 20 2f 2f 2f 20 44 65 76 69 63 65 20 64 65 73 63 72 69 70 74 69 6f 6e 73 20 77 69 6c 6c 20 75 73 .///.Device.descriptions.will.us
1560 75 61 6c 6c 79 20 62 65 20 73 75 70 70 6c 69 65 64 20 62 79 20 74 68 65 20 55 6e 69 74 79 20 72 ually.be.supplied.by.the.Unity.r
1580 75 6e 74 69 6d 65 20 62 75 74 20 63 61 6e 20 61 6c 73 6f 20 62 65 20 6d 61 6e 75 61 6c 6c 79 0d untime.but.can.also.be.manually.
15a0 0a 20 20 20 20 2f 2f 2f 20 66 65 64 20 69 6e 74 6f 20 74 68 65 20 73 79 73 74 65 6d 20 75 73 69 .....///.fed.into.the.system.usi
15c0 6e 67 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 53 79 73 74 65 6d 2e 41 64 64 44 65 76 ng.<see.cref="InputSystem.AddDev
15e0 69 63 65 28 49 6e 70 75 74 44 65 76 69 63 65 44 65 73 63 72 69 70 74 69 6f 6e 29 22 2f 3e 2e 20 ice(InputDeviceDescription)"/>..
1600 54 68 65 0d 0a 20 20 20 20 2f 2f 2f 20 73 79 73 74 65 6d 20 77 69 6c 6c 20 72 65 6d 65 6d 62 65 The......///.system.will.remembe
1620 72 20 65 61 63 68 20 64 65 76 69 63 65 20 64 65 73 63 72 69 70 74 69 6f 6e 20 69 74 20 68 61 73 r.each.device.description.it.has
1640 20 73 65 65 6e 20 72 65 67 61 72 64 6c 65 73 73 20 6f 66 20 77 68 65 74 68 65 72 20 69 74 20 77 .seen.regardless.of.whether.it.w
1660 61 73 0d 0a 20 20 20 20 2f 2f 2f 20 61 62 6c 65 20 74 6f 20 73 75 63 63 65 73 73 66 75 6c 6c 79 as......///.able.to.successfully
1680 20 63 72 65 61 74 65 20 61 20 64 65 76 69 63 65 20 66 72 6f 6d 20 74 68 65 20 64 65 73 63 72 69 .create.a.device.from.the.descri
16a0 70 74 69 6f 6e 2e 20 54 6f 20 71 75 65 72 79 20 74 68 65 20 6c 69 73 74 20 6f 66 20 64 65 73 63 ption..To.query.the.list.of.desc
16c0 72 69 70 74 69 6f 6e 73 0d 0a 20 20 20 20 2f 2f 2f 20 74 68 61 74 20 66 6f 72 20 77 68 61 74 65 riptions......///.that.for.whate
16e0 76 65 72 20 72 65 61 73 6f 6e 20 64 69 64 20 6e 6f 74 20 72 65 73 75 6c 74 20 69 6e 20 61 20 64 ver.reason.did.not.result.in.a.d
1700 65 76 69 63 65 20 62 65 69 6e 67 20 63 72 65 61 74 65 64 2c 20 63 61 6c 6c 20 3c 73 65 65 0d 0a evice.being.created,.call.<see..
1720 20 20 20 20 2f 2f 2f 20 63 72 65 66 3d 22 49 6e 70 75 74 53 79 73 74 65 6d 2e 47 65 74 55 6e 73 ....///.cref="InputSystem.GetUns
1740 75 70 70 6f 72 74 65 64 44 65 76 69 63 65 73 28 29 22 2f 3e 2e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a upportedDevices()"/>.......///..
1760 20 20 20 20 2f 2f 2f 20 57 68 65 6e 65 76 65 72 20 6c 61 79 6f 75 74 20 72 65 67 69 73 74 72 61 ....///.Whenever.layout.registra
1780 74 69 6f 6e 73 20 69 6e 20 74 68 65 20 73 79 73 74 65 6d 20 61 72 65 20 63 68 61 6e 67 65 64 20 tions.in.the.system.are.changed.
17a0 28 65 2e 67 2e 20 62 79 20 63 61 6c 6c 69 6e 67 20 3c 73 65 65 0d 0a 20 20 20 20 2f 2f 2f 20 63 (e.g..by.calling.<see......///.c
17c0 72 65 66 3d 22 49 6e 70 75 74 53 79 73 74 65 6d 2e 52 65 67 69 73 74 65 72 4c 61 79 6f 75 74 7b ref="InputSystem.RegisterLayout{
17e0 54 7d 22 2f 3e 20 6f 72 20 77 68 65 6e 65 76 65 72 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 T}"/>.or.whenever.<see.cref="Inp
1800 75 74 53 65 74 74 69 6e 67 73 2e 73 75 70 70 6f 72 74 65 64 44 65 76 69 63 65 73 22 2f 3e 0d 0a utSettings.supportedDevices"/>..
1820 20 20 20 20 2f 2f 2f 20 69 73 20 63 68 61 6e 67 65 64 2c 20 74 68 65 20 73 79 73 74 65 6d 20 77 ....///.is.changed,.the.system.w
1840 69 6c 6c 20 67 6f 20 74 68 72 6f 75 67 68 20 74 68 65 20 6c 69 73 74 20 6f 66 20 75 6e 73 75 70 ill.go.through.the.list.of.unsup
1860 70 6f 72 74 65 64 20 64 65 76 69 63 65 73 20 69 74 73 65 6c 66 20 61 6e 64 20 66 69 67 75 72 65 ported.devices.itself.and.figure
1880 20 6f 75 74 0d 0a 20 20 20 20 2f 2f 2f 20 69 66 20 74 68 65 72 65 20 61 72 65 20 64 65 76 69 63 .out......///.if.there.are.devic
18a0 65 20 64 65 73 63 72 69 70 74 69 6f 6e 73 20 74 68 61 74 20 6e 6f 77 20 69 74 20 63 61 6e 20 74 e.descriptions.that.now.it.can.t
18c0 75 72 6e 20 69 6e 74 6f 20 64 65 76 69 63 65 73 2e 20 54 68 65 20 73 61 6d 65 20 61 6c 73 6f 20 urn.into.devices..The.same.also.
18e0 61 70 70 6c 69 65 73 0d 0a 20 20 20 20 2f 2f 2f 20 69 6e 20 72 65 76 65 72 73 65 3b 20 69 66 2c applies......///.in.reverse;.if,
1900 20 66 6f 72 20 65 78 61 6d 70 6c 65 2c 20 61 20 6c 61 79 6f 75 74 20 69 73 20 72 65 6d 6f 76 65 .for.example,.a.layout.is.remove
1920 64 20 74 68 61 74 20 69 73 20 63 75 72 72 65 6e 74 6c 79 20 75 73 65 64 20 61 20 64 65 76 69 63 d.that.is.currently.used.a.devic
1940 65 2c 20 74 68 65 0d 0a 20 20 20 20 2f 2f 2f 20 64 65 76 69 63 65 20 77 69 6c 6c 20 62 65 20 72 e,.the......///.device.will.be.r
1960 65 6d 6f 76 65 64 20 61 6e 64 20 69 74 73 20 64 65 73 63 72 69 70 74 69 6f 6e 20 28 69 66 20 61 emoved.and.its.description.(if.a
1980 6e 79 29 20 77 69 6c 6c 20 62 65 20 70 6c 61 63 65 64 20 6f 6e 20 74 68 65 20 6c 69 73 74 20 6f ny).will.be.placed.on.the.list.o
19a0 66 0d 0a 20 20 20 20 2f 2f 2f 20 75 6e 73 75 70 70 6f 72 74 65 64 20 64 65 76 69 63 65 73 2e 0d f......///.unsupported.devices..
19c0 0a 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 73 65 .....///.</remarks>......///.<se
19e0 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 44 65 76 69 63 65 2e 64 65 73 63 72 69 70 74 ealso.cref="InputDevice.descript
1a00 69 6f 6e 22 2f 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 ion"/>......///.<seealso.cref="I
1a20 6e 70 75 74 44 65 76 69 63 65 4d 61 74 63 68 65 72 22 2f 3e 0d 0a 20 20 20 20 5b 53 65 72 69 61 nputDeviceMatcher"/>......[Seria
1a40 6c 69 7a 61 62 6c 65 5d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 74 72 75 63 74 20 49 6e 70 75 lizable]......public.struct.Inpu
1a60 74 44 65 76 69 63 65 44 65 73 63 72 69 70 74 69 6f 6e 20 3a 20 49 45 71 75 61 74 61 62 6c 65 3c tDeviceDescription.:.IEquatable<
1a80 49 6e 70 75 74 44 65 76 69 63 65 44 65 73 63 72 69 70 74 69 6f 6e 3e 0d 0a 20 20 20 20 7b 0d 0a InputDeviceDescription>......{..
1aa0 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f ........///.<summary>........../
1ac0 2f 2f 20 48 6f 77 20 77 65 20 74 61 6c 6b 20 74 6f 20 74 68 65 20 64 65 76 69 63 65 3b 20 75 73 //.How.we.talk.to.the.device;.us
1ae0 75 61 6c 6c 79 20 6e 61 6d 65 20 6f 66 20 74 68 65 20 75 6e 64 65 72 6c 79 69 6e 67 20 62 61 63 ually.name.of.the.underlying.bac
1b00 6b 65 6e 64 20 74 68 61 74 20 66 65 65 64 73 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 73 74 61 kend.that.feeds..........///.sta
1b20 74 65 20 66 6f 72 20 74 68 65 20 64 65 76 69 63 65 20 28 65 2e 67 2e 20 22 48 49 44 22 20 6f 72 te.for.the.device.(e.g.."HID".or
1b40 20 22 58 49 6e 70 75 74 22 29 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 ."XInput")...........///.</summa
1b60 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 4e 61 6d 65 20 6f 66 20 ry>..........///.<value>Name.of.
1b80 69 6e 74 65 72 66 61 63 65 20 74 68 72 6f 75 67 68 20 77 68 69 63 68 20 74 68 65 20 64 65 76 69 interface.through.which.the.devi
1ba0 63 65 20 69 73 20 72 65 70 6f 72 74 65 64 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 ce.is.reported.</value>.........
1bc0 20 2f 2f 2f 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 44 65 76 69 63 65 4d 61 74 63 68 .///.<see.cref="InputDeviceMatch
1be0 65 72 2e 57 69 74 68 49 6e 74 65 72 66 61 63 65 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 er.WithInterface"/>..........pub
1c00 6c 69 63 20 73 74 72 69 6e 67 20 69 6e 74 65 72 66 61 63 65 4e 61 6d 65 0d 0a 20 20 20 20 20 20 lic.string.interfaceName........
1c20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 20 3d 3e 20 6d 5f 49 6e 74 65 72 66 ..{..............get.=>.m_Interf
1c40 61 63 65 4e 61 6d 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 3d 3e 20 6d 5f 49 aceName;..............set.=>.m_I
1c60 6e 74 65 72 66 61 63 65 4e 61 6d 65 20 3d 20 76 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d nterfaceName.=.value;..........}
1c80 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 ............///.<summary>.......
1ca0 20 20 20 2f 2f 2f 20 57 68 61 74 20 74 68 65 20 69 6e 74 65 72 66 61 63 65 20 74 68 69 6e 6b 73 ...///.What.the.interface.thinks
1cc0 20 74 68 65 20 64 65 76 69 63 65 20 63 6c 61 73 73 69 66 69 65 73 20 61 73 2e 0d 0a 20 20 20 20 .the.device.classifies.as.......
1ce0 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 ....///.</summary>..........///.
1d00 3c 76 61 6c 75 65 3e 42 72 6f 61 64 20 63 6c 61 73 73 69 66 69 63 61 74 69 6f 6e 20 6f 66 20 64 <value>Broad.classification.of.d
1d20 65 76 69 63 65 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d evice.</value>..........///.<rem
1d40 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 66 20 74 68 65 72 65 20 69 73 20 6e arks>..........///.If.there.is.n
1d60 6f 20 6c 61 79 6f 75 74 20 73 70 65 63 69 66 69 63 61 6c 6c 79 20 6d 61 74 63 68 69 6e 67 20 61 o.layout.specifically.matching.a
1d80 20 64 65 76 69 63 65 20 64 65 73 63 72 69 70 74 69 6f 6e 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f .device.description,..........//
1da0 2f 20 74 68 65 20 64 65 76 69 63 65 20 63 6c 61 73 73 20 69 73 20 75 73 65 64 20 61 73 20 61 73 /.the.device.class.is.used.as.as
1dc0 20 66 61 6c 6c 62 61 63 6b 2e 20 49 66 2c 20 66 6f 72 20 65 78 61 6d 70 6c 65 2c 20 74 68 69 73 .fallback..If,.for.example,.this
1de0 20 66 69 65 6c 64 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 69 73 20 73 65 74 20 74 6f 20 22 47 .field..........///.is.set.to."G
1e00 61 6d 65 70 61 64 22 2c 20 74 68 65 20 22 47 61 6d 65 70 61 64 22 20 6c 61 79 6f 75 74 20 69 73 amepad",.the."Gamepad".layout.is
1e20 20 75 73 65 64 20 61 73 20 61 20 66 61 6c 6c 62 61 63 6b 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f .used.as.a.fallback...........//
1e40 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c /.</remarks>..........///.<seeal
1e60 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 44 65 76 69 63 65 4d 61 74 63 68 65 72 2e 57 69 74 68 so.cref="InputDeviceMatcher.With
1e80 44 65 76 69 63 65 43 6c 61 73 73 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 DeviceClass"/>..........public.s
1ea0 74 72 69 6e 67 20 64 65 76 69 63 65 43 6c 61 73 73 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 tring.deviceClass..........{....
1ec0 20 20 20 20 20 20 20 20 20 20 67 65 74 20 3d 3e 20 6d 5f 44 65 76 69 63 65 43 6c 61 73 73 3b 0d ..........get.=>.m_DeviceClass;.
1ee0 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 3d 3e 20 6d 5f 44 65 76 69 63 65 43 6c 61 73 .............set.=>.m_DeviceClas
1f00 73 20 3d 20 76 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 s.=.value;..........}...........
1f20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 4e 61 6d 65 .///.<summary>..........///.Name
1f40 20 6f 66 20 74 68 65 20 76 65 6e 64 6f 72 20 74 68 61 74 20 70 72 6f 64 75 63 65 64 20 74 68 65 .of.the.vendor.that.produced.the
1f60 20 64 65 76 69 63 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 .device...........///.</summary>
1f80 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 4e 61 6d 65 20 6f 66 20 6d 61 6e ..........///.<value>Name.of.man
1fa0 75 66 61 63 74 75 72 65 72 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 ufacturer.</value>..........///.
1fc0 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 44 65 76 69 63 65 4d 61 74 63 68 65 <seealso.cref="InputDeviceMatche
1fe0 72 2e 57 69 74 68 4d 61 6e 75 66 61 63 74 75 72 65 72 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 r.WithManufacturer"/>..........p
2000 75 62 6c 69 63 20 73 74 72 69 6e 67 20 6d 61 6e 75 66 61 63 74 75 72 65 72 0d 0a 20 20 20 20 20 ublic.string.manufacturer.......
2020 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 20 3d 3e 20 6d 5f 4d 61 6e 75 66 ...{..............get.=>.m_Manuf
2040 61 63 74 75 72 65 72 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 3d 3e 20 6d 5f 4d acturer;..............set.=>.m_M
2060 61 6e 75 66 61 63 74 75 72 65 72 20 3d 20 76 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d anufacturer.=.value;..........}.
2080 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 ...........///.<summary>........
20a0 20 20 2f 2f 2f 20 4e 61 6d 65 20 6f 66 20 74 68 65 20 70 72 6f 64 75 63 74 20 61 73 73 69 67 6e ..///.Name.of.the.product.assign
20c0 65 64 20 62 79 20 74 68 65 20 76 65 6e 64 6f 72 20 74 6f 20 74 68 65 20 64 65 76 69 63 65 2e 0d ed.by.the.vendor.to.the.device..
20e0 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 .........///.</summary>.........
2100 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 4e 61 6d 65 20 6f 66 20 70 72 6f 64 75 63 74 2e 3c 2f 76 61 .///.<value>Name.of.product.</va
2120 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d lue>..........///.<seealso.cref=
2140 22 49 6e 70 75 74 44 65 76 69 63 65 4d 61 74 63 68 65 72 2e 57 69 74 68 50 72 6f 64 75 63 74 22 "InputDeviceMatcher.WithProduct"
2160 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 72 69 6e 67 20 70 72 6f 64 75 63 />..........public.string.produc
2180 74 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 20 3d 3e t..........{..............get.=>
21a0 20 6d 5f 50 72 6f 64 75 63 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 3d 3e 20 .m_Product;..............set.=>.
21c0 6d 5f 50 72 6f 64 75 63 74 20 3d 20 76 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d m_Product.=.value;..........}...
21e0 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 .........///.<summary>..........
2200 2f 2f 2f 20 49 66 20 61 76 61 69 6c 61 62 6c 65 2c 20 73 65 72 69 61 6c 20 6e 75 6d 62 65 72 20 ///.If.available,.serial.number.
2220 66 6f 72 20 74 68 65 20 64 65 76 69 63 65 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 for.the.device...........///.</s
2240 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 53 65 72 69 ummary>..........///.<value>Seri
2260 61 6c 20 6e 75 6d 62 65 72 20 6f 66 20 64 65 76 69 63 65 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 al.number.of.device.</value>....
2280 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 72 69 6e 67 20 73 65 72 69 61 6c 0d 0a 20 20 20 20 ......public.string.serial......
22a0 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 20 3d 3e 20 6d 5f 53 65 72 69 ....{..............get.=>.m_Seri
22c0 61 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 3d 3e 20 6d 5f 53 65 72 69 61 6c al;..............set.=>.m_Serial
22e0 20 3d 20 76 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 .=.value;..........}............
2300 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 56 65 72 73 69 ///.<summary>..........///.Versi
2320 6f 6e 20 73 74 72 69 6e 67 20 6f 66 20 74 68 65 20 64 65 76 69 63 65 20 61 6e 64 2f 6f 72 20 64 on.string.of.the.device.and/or.d
2340 72 69 76 65 72 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 river...........///.</summary>..
2360 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 56 65 72 73 69 6f 6e 20 6f 66 20 64 65 ........///.<value>Version.of.de
2380 76 69 63 65 20 61 6e 64 2f 6f 72 20 64 72 69 76 65 72 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 vice.and/or.driver.</value>.....
23a0 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 44 65 76 .....///.<seealso.cref="InputDev
23c0 69 63 65 4d 61 74 63 68 65 72 2e 57 69 74 68 56 65 72 73 69 6f 6e 22 2f 3e 0d 0a 20 20 20 20 20 iceMatcher.WithVersion"/>.......
23e0 20 20 20 70 75 62 6c 69 63 20 73 74 72 69 6e 67 20 76 65 72 73 69 6f 6e 0d 0a 20 20 20 20 20 20 ...public.string.version........
2400 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 20 3d 3e 20 6d 5f 56 65 72 73 69 6f ..{..............get.=>.m_Versio
2420 6e 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 3d 3e 20 6d 5f 56 65 72 73 69 6f 6e n;..............set.=>.m_Version
2440 20 3d 20 76 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 .=.value;..........}............
2460 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 41 6e 20 6f 70 ///.<summary>..........///.An.op
2480 74 69 6f 6e 61 6c 20 4a 53 4f 4e 20 73 74 72 69 6e 67 20 6c 69 73 74 69 6e 67 20 64 65 76 69 63 tional.JSON.string.listing.devic
24a0 65 2d 73 70 65 63 69 66 69 63 20 63 61 70 61 62 69 6c 69 74 69 65 73 2e 0d 0a 20 20 20 20 20 20 e-specific.capabilities.........
24c0 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 76 ..///.</summary>..........///.<v
24e0 61 6c 75 65 3e 49 6e 74 65 72 66 61 63 65 2d 73 70 65 63 69 66 69 63 20 6c 69 73 74 69 6e 67 20 alue>Interface-specific.listing.
2500 6f 66 20 64 65 76 69 63 65 20 63 61 70 61 62 69 6c 69 74 69 65 73 2e 3c 2f 76 61 6c 75 65 3e 0d of.device.capabilities.</value>.
2520 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 .........///.<remarks>..........
2540 2f 2f 2f 20 54 68 65 20 70 72 69 6d 61 72 79 20 75 73 65 20 6f 66 20 74 68 69 73 20 66 69 65 6c ///.The.primary.use.of.this.fiel
2560 64 20 69 73 20 74 6f 20 61 6c 6c 6f 77 20 63 75 73 74 6f 6d 20 6c 61 79 6f 75 74 20 66 61 63 74 d.is.to.allow.custom.layout.fact
2580 6f 72 69 65 73 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 6f 20 63 72 65 61 74 65 20 6c 61 79 ories..........///.to.create.lay
25a0 6f 75 74 73 20 6f 6e 20 74 68 65 20 66 6c 79 20 66 72 6f 6d 20 69 6e 2d 64 65 70 74 68 20 64 65 outs.on.the.fly.from.in-depth.de
25c0 76 69 63 65 20 64 65 73 63 72 69 70 74 69 6f 6e 73 20 64 65 6c 69 76 65 72 65 64 0d 0a 20 20 20 vice.descriptions.delivered.....
25e0 20 20 20 20 20 2f 2f 2f 20 62 79 20 65 78 74 65 72 6e 61 6c 20 41 50 49 73 2e 0d 0a 20 20 20 20 .....///.by.external.APIs.......
2600 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 6e 20 74 68 65 20 63 61 73 65 ....///..........///.In.the.case
2620 20 6f 66 20 48 49 44 2c 20 66 6f 72 20 65 78 61 6d 70 6c 65 2c 20 74 68 69 73 20 66 69 65 6c 64 .of.HID,.for.example,.this.field
2640 20 63 6f 6e 74 61 69 6e 73 20 61 20 4a 53 4f 4e 20 72 65 70 72 65 73 65 6e 74 61 74 69 6f 6e 0d .contains.a.JSON.representation.
2660 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 6f 66 20 74 68 65 20 48 49 44 20 64 65 73 63 72 69 70 74 .........///.of.the.HID.descript
2680 6f 72 20 28 73 65 65 20 3c 73 65 65 20 63 72 65 66 3d 22 48 49 44 2e 48 49 44 2e 48 49 44 44 65 or.(see.<see.cref="HID.HID.HIDDe
26a0 76 69 63 65 44 65 73 63 72 69 70 74 6f 72 22 2f 3e 29 20 61 73 0d 0a 20 20 20 20 20 20 20 20 2f viceDescriptor"/>).as........../
26c0 2f 2f 20 72 65 70 6f 72 74 65 64 20 62 79 20 74 68 65 20 64 65 76 69 63 65 20 64 72 69 76 65 72 //.reported.by.the.device.driver
26e0 2e 20 54 68 69 73 20 64 65 73 63 72 69 70 74 6f 72 20 63 6f 6e 74 61 69 6e 73 20 69 6e 66 6f 72 ..This.descriptor.contains.infor
2700 6d 61 74 69 6f 6e 20 61 62 6f 75 74 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 6c 6c 20 49 2f mation.about..........///.all.I/
2720 4f 20 65 6c 65 6d 65 6e 74 73 20 6f 6e 20 74 68 65 20 64 65 76 69 63 65 20 77 68 69 63 68 20 63 O.elements.on.the.device.which.c
2740 61 6e 20 62 65 20 75 73 65 64 20 74 6f 20 64 65 74 65 72 6d 69 6e 65 20 74 68 65 20 63 6f 6e 74 an.be.used.to.determine.the.cont
2760 72 6f 6c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 73 65 74 75 70 20 61 6e 64 20 64 61 74 61 20 rol..........///.setup.and.data.
2780 66 6f 72 6d 61 74 20 75 73 65 64 20 62 79 20 74 68 65 20 64 65 76 69 63 65 2e 0d 0a 20 20 20 20 format.used.by.the.device.......
27a0 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 ....///.</remarks>..........///.
27c0 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 44 65 76 69 63 65 4d 61 74 63 68 65 <seealso.cref="InputDeviceMatche
27e0 72 2e 57 69 74 68 43 61 70 61 62 69 6c 69 74 79 7b 54 7d 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 r.WithCapability{T}"/>..........
2800 70 75 62 6c 69 63 20 73 74 72 69 6e 67 20 63 61 70 61 62 69 6c 69 74 69 65 73 0d 0a 20 20 20 20 public.string.capabilities......
2820 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 20 3d 3e 20 6d 5f 43 61 70 61 ....{..............get.=>.m_Capa
2840 62 69 6c 69 74 69 65 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 3d 3e 20 6d 5f bilities;..............set.=>.m_
2860 43 61 70 61 62 69 6c 69 74 69 65 73 20 3d 20 76 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d Capabilities.=.value;..........}
2880 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 ............///.<summary>.......
28a0 20 20 20 2f 2f 2f 20 57 68 65 74 68 65 72 20 61 6e 79 20 6f 66 20 74 68 65 20 70 72 6f 70 65 72 ...///.Whether.any.of.the.proper
28c0 74 69 65 73 20 69 6e 20 74 68 65 20 64 65 73 63 72 69 70 74 69 6f 6e 20 61 72 65 20 73 65 74 2e ties.in.the.description.are.set.
28e0 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 ..........///.</summary>........
2900 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 54 72 75 65 20 69 66 20 61 6e 79 20 6f 66 20 3c 73 65 65 ..///.<value>True.if.any.of.<see
2920 20 63 72 65 66 3d 22 69 6e 74 65 72 66 61 63 65 4e 61 6d 65 22 2f 3e 2c 20 3c 73 65 65 20 63 72 .cref="interfaceName"/>,.<see.cr
2940 65 66 3d 22 64 65 76 69 63 65 43 6c 61 73 73 22 2f 3e 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f ef="deviceClass"/>,..........///
2960 20 3c 73 65 65 20 63 72 65 66 3d 22 6d 61 6e 75 66 61 63 74 75 72 65 72 22 2f 3e 2c 20 3c 73 65 .<see.cref="manufacturer"/>,.<se
2980 65 20 63 72 65 66 3d 22 70 72 6f 64 75 63 74 22 2f 3e 2c 20 3c 73 65 65 20 63 72 65 66 3d 22 73 e.cref="product"/>,.<see.cref="s
29a0 65 72 69 61 6c 22 2f 3e 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 20 63 72 65 66 erial"/>,..........///.<see.cref
29c0 3d 22 76 65 72 73 69 6f 6e 22 2f 3e 2c 20 6f 72 20 3c 73 65 65 20 63 72 65 66 3d 22 63 61 70 61 ="version"/>,.or.<see.cref="capa
29e0 62 69 6c 69 74 69 65 73 22 2f 3e 20 69 73 20 6e 6f 74 20 3c 63 3e 6e 75 6c 6c 3c 2f 63 3e 20 61 bilities"/>.is.not.<c>null</c>.a
2a00 6e 64 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 6e 6f 74 20 65 6d 70 74 79 2e 2e 3c 2f 76 61 6c nd..........///.not.empty..</val
2a20 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 65 6d 70 74 79 20 3d ue>..........public.bool.empty.=
2a40 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d >..............string.IsNullOrEm
2a60 70 74 79 28 6d 5f 49 6e 74 65 72 66 61 63 65 4e 61 6d 65 29 20 26 26 0d 0a 20 20 20 20 20 20 20 pty(m_InterfaceName).&&.........
2a80 20 20 20 20 20 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 6d 5f 44 65 76 69 .....string.IsNullOrEmpty(m_Devi
2aa0 63 65 43 6c 61 73 73 29 20 26 26 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 69 6e 67 2e ceClass).&&..............string.
2ac0 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 6d 5f 4d 61 6e 75 66 61 63 74 75 72 65 72 29 20 26 26 IsNullOrEmpty(m_Manufacturer).&&
2ae0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 ..............string.IsNullOrEmp
2b00 74 79 28 6d 5f 50 72 6f 64 75 63 74 29 20 26 26 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 74 ty(m_Product).&&..............st
2b20 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 6d 5f 53 65 72 69 61 6c 29 20 26 26 0d ring.IsNullOrEmpty(m_Serial).&&.
2b40 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 .............string.IsNullOrEmpt
2b60 79 28 6d 5f 56 65 72 73 69 6f 6e 29 20 26 26 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 y(m_Version).&&..............str
2b80 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 6d 5f 43 61 70 61 62 69 6c 69 74 69 65 73 ing.IsNullOrEmpty(m_Capabilities
2ba0 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 );............///.<summary>.....
2bc0 20 20 20 20 20 2f 2f 2f 20 52 65 74 75 72 6e 20 61 20 73 74 72 69 6e 67 20 72 65 70 72 65 73 65 .....///.Return.a.string.represe
2be0 6e 74 61 74 69 6f 6e 20 6f 66 20 74 68 65 20 64 65 73 63 72 69 70 74 69 6f 6e 20 75 73 65 66 75 ntation.of.the.description.usefu
2c00 6c 20 66 6f 72 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 64 65 62 75 67 67 69 6e 67 2e 0d 0a 20 l.for..........///.debugging....
2c20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f .......///.</summary>........../
2c40 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 41 20 73 63 72 69 70 74 20 72 65 70 72 65 73 65 6e 74 61 74 //.<returns>A.script.representat
2c60 69 6f 6e 20 6f 66 20 74 68 65 20 64 65 73 63 72 69 70 74 69 6f 6e 2e 3c 2f 72 65 74 75 72 6e 73 ion.of.the.description.</returns
2c80 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 73 74 72 69 6e >..........public.override.strin
2ca0 67 20 54 6f 53 74 72 69 6e 67 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 g.ToString()..........{.........
2cc0 20 20 20 20 20 76 61 72 20 68 61 76 65 50 72 6f 64 75 63 74 20 3d 20 21 73 74 72 69 6e 67 2e 49 .....var.haveProduct.=.!string.I
2ce0 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 70 72 6f 64 75 63 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 sNullOrEmpty(product);..........
2d00 20 20 20 20 76 61 72 20 68 61 76 65 4d 61 6e 75 66 61 63 74 75 72 65 72 20 3d 20 21 73 74 72 69 ....var.haveManufacturer.=.!stri
2d20 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 6d 61 6e 75 66 61 63 74 75 72 65 72 29 3b 0d ng.IsNullOrEmpty(manufacturer);.
2d40 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 68 61 76 65 49 6e 74 65 72 66 61 63 65 20 3d .............var.haveInterface.=
2d60 20 21 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 69 6e 74 65 72 66 61 63 65 .!string.IsNullOrEmpty(interface
2d80 4e 61 6d 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 68 61 76 65 50 72 Name);................if.(havePr
2da0 6f 64 75 63 74 20 26 26 20 68 61 76 65 4d 61 6e 75 66 61 63 74 75 72 65 72 29 0d 0a 20 20 20 20 oduct.&&.haveManufacturer)......
2dc0 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 68 ........{..................if.(h
2de0 61 76 65 49 6e 74 65 72 66 61 63 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 aveInterface)...................
2e00 20 20 20 72 65 74 75 72 6e 20 24 22 7b 6d 61 6e 75 66 61 63 74 75 72 65 72 7d 20 7b 70 72 6f 64 ...return.$"{manufacturer}.{prod
2e20 75 63 74 7d 20 28 7b 69 6e 74 65 72 66 61 63 65 4e 61 6d 65 7d 29 22 3b 0d 0a 0d 0a 20 20 20 20 uct}.({interfaceName})";........
2e40 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 24 22 7b 6d 61 6e 75 66 61 63 74 75 72 ............return.$"{manufactur
2e60 65 72 7d 20 7b 70 72 6f 64 75 63 74 7d 22 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a er}.{product}";..............}..
2e80 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 68 61 76 65 50 72 6f 64 75 63 74 29 0d 0a ..............if.(haveProduct)..
2ea0 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 69 ............{..................i
2ec0 66 20 28 68 61 76 65 49 6e 74 65 72 66 61 63 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 f.(haveInterface)...............
2ee0 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 24 22 7b 70 72 6f 64 75 63 74 7d 20 28 7b 69 6e 74 65 .......return.$"{product}.({inte
2f00 72 66 61 63 65 4e 61 6d 65 7d 29 22 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 rfaceName})";...................
2f20 20 72 65 74 75 72 6e 20 70 72 6f 64 75 63 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d .return.product;..............}.
2f40 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 73 74 72 69 6e 67 2e 49 73 4e 75 6c ...............if.(!string.IsNul
2f60 6c 4f 72 45 6d 70 74 79 28 64 65 76 69 63 65 43 6c 61 73 73 29 29 0d 0a 20 20 20 20 20 20 20 20 lOrEmpty(deviceClass))..........
2f80 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 68 61 76 65 49 ....{..................if.(haveI
2fa0 6e 74 65 72 66 61 63 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 nterface)......................r
2fc0 65 74 75 72 6e 20 24 22 7b 64 65 76 69 63 65 43 6c 61 73 73 7d 20 28 7b 69 6e 74 65 72 66 61 63 eturn.$"{deviceClass}.({interfac
2fe0 65 4e 61 6d 65 7d 29 22 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 eName})";....................ret
3000 75 72 6e 20 64 65 76 69 63 65 43 6c 61 73 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d urn.deviceClass;..............}.
3020 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 46 6f 72 20 73 6f 6d 65 20 48 49 44 73 20 ...............//.For.some.HIDs.
3040 6f 6e 20 57 69 6e 64 6f 77 73 2c 20 77 65 20 64 6f 6e 27 74 20 67 65 74 20 61 20 70 72 6f 64 75 on.Windows,.we.don't.get.a.produ
3060 63 74 20 61 6e 64 20 6d 61 6e 75 66 61 63 74 75 72 65 72 20 73 74 72 69 6e 67 20 65 76 65 6e 20 ct.and.manufacturer.string.even.
3080 74 68 6f 75 67 68 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 74 68 65 20 48 49 44 20 69 though..............//.the.HID.i
30a0 73 20 67 75 61 72 61 6e 74 65 65 64 20 74 6f 20 68 61 76 65 20 61 20 70 72 6f 64 75 63 74 20 61 s.guaranteed.to.have.a.product.a
30c0 6e 64 20 76 65 6e 64 6f 72 20 49 44 2e 20 52 65 73 6f 72 74 20 74 6f 20 70 72 69 6e 74 69 6e 67 nd.vendor.ID..Resort.to.printing
30e0 20 63 61 70 61 62 69 6c 69 74 69 65 73 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 77 68 .capabilities..............//.wh
3100 69 63 68 20 66 6f 72 20 48 49 44 73 20 61 74 20 6c 65 61 73 74 20 69 6e 63 6c 75 64 65 20 74 68 ich.for.HIDs.at.least.include.th
3120 65 20 70 72 6f 64 75 63 74 20 61 6e 64 20 76 65 6e 64 6f 72 20 49 44 2e 0d 0a 20 20 20 20 20 20 e.product.and.vendor.ID.........
3140 20 20 20 20 20 20 69 66 20 28 21 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 ......if.(!string.IsNullOrEmpty(
3160 63 61 70 61 62 69 6c 69 74 69 65 73 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 capabilities))..............{...
3180 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 73 74 20 69 6e 74 20 6b 4d 61 78 43 61 70 ...............const.int.kMaxCap
31a0 61 62 69 6c 69 74 69 65 73 4c 65 6e 67 74 68 20 3d 20 34 30 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 abilitiesLength.=.40;...........
31c0 20 20 20 20 20 20 20 20 20 76 61 72 20 63 61 70 73 20 3d 20 63 61 70 61 62 69 6c 69 74 69 65 73 .........var.caps.=.capabilities
31e0 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 61 70 61 62 69 6c 69 74 ;..................if.(capabilit
3200 69 65 73 2e 4c 65 6e 67 74 68 20 3e 20 6b 4d 61 78 43 61 70 61 62 69 6c 69 74 69 65 73 4c 65 6e ies.Length.>.kMaxCapabilitiesLen
3220 67 74 68 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 70 73 20 3d gth)......................caps.=
3240 20 63 61 70 73 2e 53 75 62 73 74 72 69 6e 67 28 30 2c 20 6b 4d 61 78 43 61 70 61 62 69 6c 69 74 .caps.Substring(0,.kMaxCapabilit
3260 69 65 73 4c 65 6e 67 74 68 29 20 2b 20 22 2e 2e 2e 22 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 iesLength).+."...";.............
3280 20 20 20 20 20 20 20 69 66 20 28 68 61 76 65 49 6e 74 65 72 66 61 63 65 29 0d 0a 20 20 20 20 20 .......if.(haveInterface).......
32a0 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 63 61 70 73 7d 20 28 ...............return.$"{caps}.(
32c0 7b 69 6e 74 65 72 66 61 63 65 4e 61 6d 65 7d 29 22 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 {interfaceName})";..............
32e0 20 20 20 20 20 20 72 65 74 75 72 6e 20 63 61 70 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ......return.caps;..............
3300 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 68 61 76 65 49 6e 74 65 72 66 61 }................if.(haveInterfa
3320 63 65 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 69 6e 74 65 ce)..................return.inte
3340 72 66 61 63 65 4e 61 6d 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e rfaceName;................return
3360 20 22 3c 45 6d 70 74 79 20 44 65 76 69 63 65 20 44 65 73 63 72 69 70 74 69 6f 6e 3e 22 3b 0d 0a ."<Empty.Device.Description>";..
3380 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 ........}............///.<summar
33a0 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 43 6f 6d 70 61 72 65 20 74 68 65 20 64 65 73 63 y>..........///.Compare.the.desc
33c0 72 69 70 74 69 6f 6e 20 74 6f 20 74 68 65 20 67 69 76 65 6e 20 3c 70 61 72 61 6d 72 65 66 20 6e ription.to.the.given.<paramref.n
33e0 61 6d 65 3d 22 6f 74 68 65 72 22 2f 3e 20 64 65 73 63 72 69 70 74 69 6f 6e 2e 0d 0a 20 20 20 20 ame="other"/>.description.......
3400 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 ....///.</summary>..........///.
3420 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 6f 74 68 65 72 22 3e 41 6e 6f 74 68 65 72 20 64 65 76 69 <param.name="other">Another.devi
3440 63 65 20 64 65 73 63 72 69 70 74 69 6f 6e 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 ce.description.</param>.........
3460 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 54 72 75 65 20 69 66 20 74 68 65 20 74 77 6f 20 64 65 .///.<returns>True.if.the.two.de
3480 73 63 72 69 70 74 69 6f 6e 73 20 61 72 65 20 65 71 75 69 76 61 6c 65 6e 74 2e 3c 2f 72 65 74 75 scriptions.are.equivalent.</retu
34a0 72 6e 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 rns>..........///.<remarks>.....
34c0 20 20 20 20 20 2f 2f 2f 20 54 77 6f 20 64 65 73 63 72 69 70 74 69 6f 6e 73 20 61 72 65 20 65 71 .....///.Two.descriptions.are.eq
34e0 75 69 76 61 6c 65 6e 74 20 69 66 20 61 6c 6c 20 74 68 65 69 72 20 70 72 6f 70 65 72 74 69 65 73 uivalent.if.all.their.properties
3500 20 61 72 65 20 65 71 75 61 6c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 28 69 67 6e 6f 72 65 20 .are.equal..........///.(ignore.
3520 63 61 73 65 29 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a case)...........///.</remarks>..
3540 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 45 71 75 61 6c 73 28 49 6e 70 75 74 ........public.bool.Equals(Input
3560 44 65 76 69 63 65 44 65 73 63 72 69 70 74 69 6f 6e 20 6f 74 68 65 72 29 0d 0a 20 20 20 20 20 20 DeviceDescription.other)........
3580 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6d 5f 49 6e 74 65 72 66 ..{..............return.m_Interf
35a0 61 63 65 4e 61 6d 65 2e 49 6e 76 61 72 69 61 6e 74 45 71 75 61 6c 73 49 67 6e 6f 72 65 43 61 73 aceName.InvariantEqualsIgnoreCas
35c0 65 28 6f 74 68 65 72 2e 6d 5f 49 6e 74 65 72 66 61 63 65 4e 61 6d 65 29 20 26 26 0d 0a 20 20 20 e(other.m_InterfaceName).&&.....
35e0 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 44 65 76 69 63 65 43 6c 61 73 73 2e 49 6e 76 61 72 .............m_DeviceClass.Invar
3600 69 61 6e 74 45 71 75 61 6c 73 49 67 6e 6f 72 65 43 61 73 65 28 6f 74 68 65 72 2e 6d 5f 44 65 76 iantEqualsIgnoreCase(other.m_Dev
3620 69 63 65 43 6c 61 73 73 29 20 26 26 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f iceClass).&&..................m_
3640 4d 61 6e 75 66 61 63 74 75 72 65 72 2e 49 6e 76 61 72 69 61 6e 74 45 71 75 61 6c 73 49 67 6e 6f Manufacturer.InvariantEqualsIgno
3660 72 65 43 61 73 65 28 6f 74 68 65 72 2e 6d 5f 4d 61 6e 75 66 61 63 74 75 72 65 72 29 20 26 26 0d reCase(other.m_Manufacturer).&&.
3680 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 50 72 6f 64 75 63 74 2e 49 6e 76 61 72 .................m_Product.Invar
36a0 69 61 6e 74 45 71 75 61 6c 73 49 67 6e 6f 72 65 43 61 73 65 28 6f 74 68 65 72 2e 6d 5f 50 72 6f iantEqualsIgnoreCase(other.m_Pro
36c0 64 75 63 74 29 20 26 26 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 65 72 69 duct).&&..................m_Seri
36e0 61 6c 2e 49 6e 76 61 72 69 61 6e 74 45 71 75 61 6c 73 49 67 6e 6f 72 65 43 61 73 65 28 6f 74 68 al.InvariantEqualsIgnoreCase(oth
3700 65 72 2e 6d 5f 53 65 72 69 61 6c 29 20 26 26 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 er.m_Serial).&&.................
3720 20 6d 5f 56 65 72 73 69 6f 6e 2e 49 6e 76 61 72 69 61 6e 74 45 71 75 61 6c 73 49 67 6e 6f 72 65 .m_Version.InvariantEqualsIgnore
3740 43 61 73 65 28 6f 74 68 65 72 2e 6d 5f 56 65 72 73 69 6f 6e 29 20 26 26 0d 0a 20 20 20 20 20 20 Case(other.m_Version).&&........
3760 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 74 68 69 73 20 77 6f 75 6c 64 ..........////REVIEW:.this.would
3780 20 69 64 65 61 6c 6c 79 20 63 6f 6d 70 61 72 65 20 4a 53 4f 4e 20 63 6f 6e 74 65 6e 74 73 20 6e .ideally.compare.JSON.contents.n
37a0 6f 74 20 6a 75 73 74 20 74 68 65 20 72 61 77 20 73 74 72 69 6e 67 0d 0a 20 20 20 20 20 20 20 20 ot.just.the.raw.string..........
37c0 20 20 20 20 20 20 20 20 6d 5f 43 61 70 61 62 69 6c 69 74 69 65 73 2e 49 6e 76 61 72 69 61 6e 74 ........m_Capabilities.Invariant
37e0 45 71 75 61 6c 73 49 67 6e 6f 72 65 43 61 73 65 28 6f 74 68 65 72 2e 6d 5f 43 61 70 61 62 69 6c EqualsIgnoreCase(other.m_Capabil
3800 69 74 69 65 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 2f 2f ities);..........}............//
3820 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 43 6f 6d 70 61 72 65 /.<summary>..........///.Compare
3840 20 74 68 65 20 64 65 73 63 72 69 70 74 69 6f 6e 20 74 6f 20 74 68 65 20 67 69 76 65 6e 20 6f 62 .the.description.to.the.given.ob
3860 6a 65 63 74 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 ject...........///.</summary>...
3880 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 6f 62 6a 22 3e 41 6e 20 .......///.<param.name="obj">An.
38a0 6f 62 6a 65 63 74 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 object.</param>..........///.<re
38c0 74 75 72 6e 73 3e 54 72 75 65 20 69 66 20 3c 70 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d 22 6f 62 turns>True.if.<paramref.name="ob
38e0 6a 22 2f 3e 20 69 73 20 61 6e 20 49 6e 70 75 74 44 65 76 69 63 65 44 65 73 63 72 69 70 74 69 6f j"/>.is.an.InputDeviceDescriptio
3900 6e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 65 71 75 69 76 61 6c 65 6e 74 20 74 6f 20 74 68 69 n..........///.equivalent.to.thi
3920 73 20 6f 6e 65 2e 3c 2f 72 65 74 75 72 6e 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 s.one.</returns>..........///.<s
3940 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 45 71 75 61 6c 73 28 49 6e 70 75 74 44 65 76 69 63 65 44 eealso.cref="Equals(InputDeviceD
3960 65 73 63 72 69 70 74 69 6f 6e 29 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f escription)"/>..........public.o
3980 76 65 72 72 69 64 65 20 62 6f 6f 6c 20 45 71 75 61 6c 73 28 6f 62 6a 65 63 74 20 6f 62 6a 29 0d verride.bool.Equals(object.obj).
39a0 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 52 65 66 65 .........{..............if.(Refe
39c0 72 65 6e 63 65 45 71 75 61 6c 73 28 6e 75 6c 6c 2c 20 6f 62 6a 29 29 0d 0a 20 20 20 20 20 20 20 renceEquals(null,.obj)).........
39e0 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 .........return.false;..........
3a00 20 20 20 20 72 65 74 75 72 6e 20 6f 62 6a 20 69 73 20 49 6e 70 75 74 44 65 76 69 63 65 44 65 73 ....return.obj.is.InputDeviceDes
3a20 63 72 69 70 74 69 6f 6e 20 64 65 73 63 72 69 70 74 69 6f 6e 20 26 26 20 45 71 75 61 6c 73 28 64 cription.description.&&.Equals(d
3a40 65 73 63 72 69 70 74 69 6f 6e 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 escription);..........}.........
3a60 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 43 6f ...///.<summary>..........///.Co
3a80 6d 70 75 74 65 20 61 20 68 61 73 68 20 63 6f 64 65 20 66 6f 72 20 74 68 65 20 64 65 76 69 63 65 mpute.a.hash.code.for.the.device
3aa0 20 64 65 73 63 72 69 70 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d .description...........///.</sum
3ac0 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 41 20 68 61 mary>..........///.<returns>A.ha
3ae0 73 68 20 63 6f 64 65 2e 3c 2f 72 65 74 75 72 6e 73 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c sh.code.</returns>..........publ
3b00 69 63 20 6f 76 65 72 72 69 64 65 20 69 6e 74 20 47 65 74 48 61 73 68 43 6f 64 65 28 29 0d 0a 20 ic.override.int.GetHashCode()...
3b20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 75 6e 63 68 65 63 6b 65 64 0d .......{..............unchecked.
3b40 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .............{..................
3b60 76 61 72 20 68 61 73 68 43 6f 64 65 20 3d 20 6d 5f 49 6e 74 65 72 66 61 63 65 4e 61 6d 65 20 21 var.hashCode.=.m_InterfaceName.!
3b80 3d 20 6e 75 6c 6c 20 3f 20 6d 5f 49 6e 74 65 72 66 61 63 65 4e 61 6d 65 2e 47 65 74 48 61 73 68 =.null.?.m_InterfaceName.GetHash
3ba0 43 6f 64 65 28 29 20 3a 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 68 61 73 Code().:.0;..................has
3bc0 68 43 6f 64 65 20 3d 20 28 68 61 73 68 43 6f 64 65 20 2a 20 33 39 37 29 20 5e 20 28 6d 5f 44 65 hCode.=.(hashCode.*.397).^.(m_De
3be0 76 69 63 65 43 6c 61 73 73 20 21 3d 20 6e 75 6c 6c 20 3f 20 6d 5f 44 65 76 69 63 65 43 6c 61 73 viceClass.!=.null.?.m_DeviceClas
3c00 73 2e 47 65 74 48 61 73 68 43 6f 64 65 28 29 20 3a 20 30 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 s.GetHashCode().:.0);...........
3c20 20 20 20 20 20 20 20 68 61 73 68 43 6f 64 65 20 3d 20 28 68 61 73 68 43 6f 64 65 20 2a 20 33 39 .......hashCode.=.(hashCode.*.39
3c40 37 29 20 5e 20 28 6d 5f 4d 61 6e 75 66 61 63 74 75 72 65 72 20 21 3d 20 6e 75 6c 6c 20 3f 20 6d 7).^.(m_Manufacturer.!=.null.?.m
3c60 5f 4d 61 6e 75 66 61 63 74 75 72 65 72 2e 47 65 74 48 61 73 68 43 6f 64 65 28 29 20 3a 20 30 29 _Manufacturer.GetHashCode().:.0)
3c80 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 68 61 73 68 43 6f 64 65 20 3d 20 28 68 ;..................hashCode.=.(h
3ca0 61 73 68 43 6f 64 65 20 2a 20 33 39 37 29 20 5e 20 28 6d 5f 50 72 6f 64 75 63 74 20 21 3d 20 6e ashCode.*.397).^.(m_Product.!=.n
3cc0 75 6c 6c 20 3f 20 6d 5f 50 72 6f 64 75 63 74 2e 47 65 74 48 61 73 68 43 6f 64 65 28 29 20 3a 20 ull.?.m_Product.GetHashCode().:.
3ce0 30 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 68 61 73 68 43 6f 64 65 20 3d 20 0);..................hashCode.=.
3d00 28 68 61 73 68 43 6f 64 65 20 2a 20 33 39 37 29 20 5e 20 28 6d 5f 53 65 72 69 61 6c 20 21 3d 20 (hashCode.*.397).^.(m_Serial.!=.
3d20 6e 75 6c 6c 20 3f 20 6d 5f 53 65 72 69 61 6c 2e 47 65 74 48 61 73 68 43 6f 64 65 28 29 20 3a 20 null.?.m_Serial.GetHashCode().:.
3d40 30 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 68 61 73 68 43 6f 64 65 20 3d 20 0);..................hashCode.=.
3d60 28 68 61 73 68 43 6f 64 65 20 2a 20 33 39 37 29 20 5e 20 28 6d 5f 56 65 72 73 69 6f 6e 20 21 3d (hashCode.*.397).^.(m_Version.!=
3d80 20 6e 75 6c 6c 20 3f 20 6d 5f 56 65 72 73 69 6f 6e 2e 47 65 74 48 61 73 68 43 6f 64 65 28 29 20 .null.?.m_Version.GetHashCode().
3da0 3a 20 30 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 68 61 73 68 43 6f 64 65 20 :.0);..................hashCode.
3dc0 3d 20 28 68 61 73 68 43 6f 64 65 20 2a 20 33 39 37 29 20 5e 20 28 6d 5f 43 61 70 61 62 69 6c 69 =.(hashCode.*.397).^.(m_Capabili
3de0 74 69 65 73 20 21 3d 20 6e 75 6c 6c 20 3f 20 6d 5f 43 61 70 61 62 69 6c 69 74 69 65 73 2e 47 65 ties.!=.null.?.m_Capabilities.Ge
3e00 74 48 61 73 68 43 6f 64 65 28 29 20 3a 20 30 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 tHashCode().:.0);...............
3e20 20 20 20 72 65 74 75 72 6e 20 68 61 73 68 43 6f 64 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ...return.hashCode;.............
3e40 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 .}..........}............///.<su
3e60 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 43 6f 6d 70 61 72 65 20 74 68 65 20 mmary>..........///.Compare.the.
3e80 74 77 6f 20 64 65 76 69 63 65 20 64 65 73 63 72 69 70 74 69 6f 6e 73 2e 0d 0a 20 20 20 20 20 20 two.device.descriptions.........
3ea0 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 70 ..///.</summary>..........///.<p
3ec0 61 72 61 6d 20 6e 61 6d 65 3d 22 6c 65 66 74 22 3e 46 69 72 73 74 20 64 65 76 69 63 65 20 64 65 aram.name="left">First.device.de
3ee0 73 63 72 69 70 74 69 6f 6e 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 scription.</param>..........///.
3f00 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 72 69 67 68 74 22 3e 53 65 63 6f 6e 64 20 64 65 76 69 63 <param.name="right">Second.devic
3f20 65 20 64 65 73 63 72 69 70 74 69 6f 6e 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 e.description.</param>..........
3f40 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 54 72 75 65 20 69 66 20 74 68 65 20 74 77 6f 20 64 65 73 ///.<returns>True.if.the.two.des
3f60 63 72 69 70 74 69 6f 6e 73 20 61 72 65 20 65 71 75 69 76 61 6c 65 6e 74 2e 3c 2f 72 65 74 75 72 criptions.are.equivalent.</retur
3f80 6e 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 ns>..........///.<seealso.cref="
3fa0 45 71 75 61 6c 73 28 49 6e 70 75 74 44 65 76 69 63 65 44 65 73 63 72 69 70 74 69 6f 6e 29 22 2f Equals(InputDeviceDescription)"/
3fc0 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 62 6f 6f 6c 20 6f 70 >..........public.static.bool.op
3fe0 65 72 61 74 6f 72 3d 3d 28 49 6e 70 75 74 44 65 76 69 63 65 44 65 73 63 72 69 70 74 69 6f 6e 20 erator==(InputDeviceDescription.
4000 6c 65 66 74 2c 20 49 6e 70 75 74 44 65 76 69 63 65 44 65 73 63 72 69 70 74 69 6f 6e 20 72 69 67 left,.InputDeviceDescription.rig
4020 68 74 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 ht)..........{..............retu
4040 72 6e 20 6c 65 66 74 2e 45 71 75 61 6c 73 28 72 69 67 68 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 rn.left.Equals(right);..........
4060 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 }............///.<summary>......
4080 20 20 20 20 2f 2f 2f 20 43 6f 6d 70 61 72 65 20 74 68 65 20 74 77 6f 20 64 65 76 69 63 65 20 64 ....///.Compare.the.two.device.d
40a0 65 73 63 72 69 70 74 69 6f 6e 73 20 66 6f 72 20 69 6e 65 71 75 61 6c 69 74 79 2e 0d 0a 20 20 20 escriptions.for.inequality......
40c0 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f .....///.</summary>..........///
40e0 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 6c 65 66 74 22 3e 46 69 72 73 74 20 64 65 76 69 63 65 .<param.name="left">First.device
4100 20 64 65 73 63 72 69 70 74 69 6f 6e 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f .description.</param>........../
4120 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 72 69 67 68 74 22 3e 53 65 63 6f 6e 64 20 64 65 //.<param.name="right">Second.de
4140 76 69 63 65 20 64 65 73 63 72 69 70 74 69 6f 6e 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 vice.description.</param>.......
4160 20 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 54 72 75 65 20 69 66 20 74 68 65 20 74 77 6f 20 ...///.<returns>True.if.the.two.
4180 64 65 73 63 72 69 70 74 69 6f 6e 73 20 61 72 65 20 6e 6f 74 20 65 71 75 69 76 61 6c 65 6e 74 2e descriptions.are.not.equivalent.
41a0 3c 2f 72 65 74 75 72 6e 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f </returns>..........///.<seealso
41c0 20 63 72 65 66 3d 22 45 71 75 61 6c 73 28 49 6e 70 75 74 44 65 76 69 63 65 44 65 73 63 72 69 70 .cref="Equals(InputDeviceDescrip
41e0 74 69 6f 6e 29 22 2f 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 tion)"/>..........public.static.
4200 62 6f 6f 6c 20 6f 70 65 72 61 74 6f 72 21 3d 28 49 6e 70 75 74 44 65 76 69 63 65 44 65 73 63 72 bool.operator!=(InputDeviceDescr
4220 69 70 74 69 6f 6e 20 6c 65 66 74 2c 20 49 6e 70 75 74 44 65 76 69 63 65 44 65 73 63 72 69 70 74 iption.left,.InputDeviceDescript
4240 69 6f 6e 20 72 69 67 68 74 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 ion.right)..........{...........
4260 20 20 20 72 65 74 75 72 6e 20 21 6c 65 66 74 2e 45 71 75 61 6c 73 28 72 69 67 68 74 29 3b 0d 0a ...return.!left.Equals(right);..
4280 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 ........}............///.<summar
42a0 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 52 65 74 75 72 6e 20 61 20 4a 53 4f 4e 20 72 65 y>..........///.Return.a.JSON.re
42c0 70 72 65 73 65 6e 74 61 74 69 6f 6e 20 6f 66 20 74 68 65 20 64 65 76 69 63 65 20 64 65 73 63 72 presentation.of.the.device.descr
42e0 69 70 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d iption...........///.</summary>.
4300 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 41 20 4a 53 4f 4e 20 72 65 70 .........///.<returns>A.JSON.rep
4320 72 65 73 65 6e 74 61 74 69 6f 6e 20 6f 66 20 74 68 65 20 64 65 73 63 72 69 70 74 69 6f 6e 2e 3c resentation.of.the.description.<
4340 2f 72 65 74 75 72 6e 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e /returns>..........///.<remarks>
4360 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 20 20 20 ..........///.<example>.........
4380 20 2f 2f 2f 20 54 68 65 20 72 65 73 75 6c 74 20 63 61 6e 20 62 65 20 63 6f 6e 76 65 72 74 65 64 .///.The.result.can.be.converted
43a0 20 62 61 63 6b 20 69 6e 74 6f 20 61 6e 20 49 6e 70 75 74 44 65 76 69 63 65 44 65 73 63 72 69 70 .back.into.an.InputDeviceDescrip
43c0 74 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 75 73 69 6e 67 20 3c 73 65 65 20 63 72 65 tion..........///.using.<see.cre
43e0 66 3d 22 46 72 6f 6d 4a 73 6f 6e 22 2f 3e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 f="FromJson"/>...........///....
4400 20 20 20 20 20 20 2f 2f 2f 20 3c 63 6f 64 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 76 61 ......///.<code>..........///.va
4420 72 20 64 65 73 63 72 69 70 74 69 6f 6e 20 3d 20 6e 65 77 20 49 6e 70 75 74 44 65 76 69 63 65 44 r.description.=.new.InputDeviceD
4440 65 73 63 72 69 70 74 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 7b 0d 0a 20 20 20 20 20 escription..........///.{.......
4460 20 20 20 2f 2f 2f 20 20 20 20 20 69 6e 74 65 72 66 61 63 65 4e 61 6d 65 20 3d 20 22 48 49 44 22 ...///.....interfaceName.=."HID"
4480 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 70 72 6f 64 75 63 74 20 3d 20 22 53 6f ,..........///.....product.=."So
44a0 6d 65 44 65 76 69 63 65 22 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 63 61 70 61 meDevice",..........///.....capa
44c0 62 69 6c 69 74 69 65 73 20 3d 20 40 22 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 bilities.=.@"..........///......
44e0 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 22 22 ...{..........///.............""
4500 76 65 6e 64 6f 72 49 64 22 22 20 3a 20 30 78 41 42 41 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f vendorId"".:.0xABA,..........///
4520 20 20 20 20 20 20 20 20 20 20 20 20 20 22 22 70 72 6f 64 75 63 74 49 64 22 22 20 3a 20 30 78 45 .............""productId"".:.0xE
4540 46 45 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 FE..........///.........}.......
4560 20 20 20 2f 2f 2f 20 20 20 20 20 22 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 7d 3b 0d 0a 20 20 ...///....."..........///.};....
4580 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 44 65 62 75 67 2e 4c 6f 67 ......///..........///.Debug.Log
45a0 28 64 65 73 63 72 69 70 74 69 6f 6e 2e 54 6f 4a 73 6f 6e 28 29 29 3b 0d 0a 20 20 20 20 20 20 20 (description.ToJson());.........
45c0 20 2f 2f 2f 20 2f 2f 20 50 72 69 6e 74 73 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 7b .///.//.Prints..........///.//.{
45e0 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 20 20 20 20 22 69 6e 74 65 72 66 61 63 65 22 ..........///.//....."interface"
4600 20 3a 20 22 48 49 44 22 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 20 20 20 20 22 70 .:."HID",..........///.//....."p
4620 72 6f 64 75 63 74 22 20 3a 20 22 53 6f 6d 65 44 65 76 69 63 65 22 2c 0d 0a 20 20 20 20 20 20 20 roduct".:."SomeDevice",.........
4640 20 2f 2f 2f 20 2f 2f 20 20 20 20 20 22 63 61 70 61 62 69 6c 69 74 69 65 73 22 20 3a 20 22 7b 20 .///.//....."capabilities".:."{.
4660 5c 22 76 65 6e 64 6f 72 49 64 5c 22 20 3a 20 30 78 41 42 41 2c 20 5c 22 70 72 6f 64 75 63 74 49 \"vendorId\".:.0xABA,.\"productI
4680 64 5c 22 20 3a 20 30 78 45 46 46 20 7d 22 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 7d d\".:.0xEFF.}"..........///.//.}
46a0 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 63 6f 64 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f ..........///.</code>........../
46c0 2f 2f 20 3c 2f 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d //.</example>..........///.</rem
46e0 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 arks>..........///.<seealso.cref
4700 3d 22 46 72 6f 6d 4a 73 6f 6e 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 ="FromJson"/>..........public.st
4720 72 69 6e 67 20 54 6f 4a 73 6f 6e 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 ring.ToJson()..........{........
4740 20 20 20 20 20 20 76 61 72 20 64 61 74 61 20 3d 20 6e 65 77 20 44 65 76 69 63 65 44 65 73 63 72 ......var.data.=.new.DeviceDescr
4760 69 70 74 69 6f 6e 4a 73 6f 6e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 iptionJson..............{.......
4780 20 20 20 20 20 20 20 20 20 20 20 40 69 6e 74 65 72 66 61 63 65 20 3d 20 69 6e 74 65 72 66 61 63 ...........@interface.=.interfac
47a0 65 4e 61 6d 65 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 79 70 65 20 3d 20 64 eName,..................type.=.d
47c0 65 76 69 63 65 43 6c 61 73 73 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f eviceClass,..................pro
47e0 64 75 63 74 20 3d 20 70 72 6f 64 75 63 74 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 duct.=.product,.................
4800 20 6d 61 6e 75 66 61 63 74 75 72 65 72 20 3d 20 6d 61 6e 75 66 61 63 74 75 72 65 72 2c 0d 0a 20 .manufacturer.=.manufacturer,...
4820 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 72 69 61 6c 20 3d 20 73 65 72 69 61 6c 2c 0d ...............serial.=.serial,.
4840 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 65 72 73 69 6f 6e 20 3d 20 76 65 72 73 69 .................version.=.versi
4860 6f 6e 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 70 61 62 69 6c 69 74 69 65 on,..................capabilitie
4880 73 20 3d 20 63 61 70 61 62 69 6c 69 74 69 65 73 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 3b s.=.capabilities..............};
48a0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 4a 73 6f 6e 55 74 69 6c 69 74 79 ..............return.JsonUtility
48c0 2e 54 6f 4a 73 6f 6e 28 64 61 74 61 2c 20 74 72 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d .ToJson(data,.true);..........}.
48e0 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 ...........///.<summary>........
4900 20 20 2f 2f 2f 20 52 65 61 64 20 61 6e 20 49 6e 70 75 74 44 65 76 69 63 65 44 65 73 63 72 69 70 ..///.Read.an.InputDeviceDescrip
4920 74 69 6f 6e 20 66 72 6f 6d 20 69 74 73 20 4a 53 4f 4e 20 72 65 70 72 65 73 65 6e 74 61 74 69 6f tion.from.its.JSON.representatio
4940 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 n...........///.</summary>......
4960 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 6a 73 6f 6e 22 3e 53 74 72 69 6e ....///.<param.name="json">Strin
4980 67 20 69 6e 20 4a 53 4f 4e 20 66 6f 72 6d 61 74 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 g.in.JSON.format.</param>.......
49a0 20 20 20 2f 2f 2f 20 3c 65 78 63 65 70 74 69 6f 6e 20 63 72 65 66 3d 22 41 72 67 75 6d 65 6e 74 ...///.<exception.cref="Argument
49c0 4e 75 6c 6c 45 78 63 65 70 74 69 6f 6e 22 3e 3c 70 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d 22 6a NullException"><paramref.name="j
49e0 73 6f 6e 22 2f 3e 20 69 73 20 3c 63 3e 6e 75 6c 6c 3c 2f 63 3e 2e 3c 2f 65 78 63 65 70 74 69 6f son"/>.is.<c>null</c>.</exceptio
4a00 6e 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 54 68 65 20 63 6f 6e n>..........///.<returns>The.con
4a20 76 65 72 74 65 64 20 3c 2f 72 65 74 75 72 6e 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c verted.</returns>..........///.<
4a40 65 78 63 65 70 74 69 6f 6e 20 63 72 65 66 3d 22 41 72 67 75 6d 65 6e 74 45 78 63 65 70 74 69 6f exception.cref="ArgumentExceptio
4a60 6e 22 3e 54 68 65 72 65 20 61 73 20 61 20 70 61 72 73 65 20 65 72 72 6f 72 20 69 6e 20 3c 70 61 n">There.as.a.parse.error.in.<pa
4a80 72 61 6d 72 65 66 20 6e 61 6d 65 3d 22 6a 73 6f 6e 22 2f 3e 2e 0d 0a 20 20 20 20 20 20 20 20 2f ramref.name="json"/>.........../
4aa0 2f 2f 20 3c 2f 65 78 63 65 70 74 69 6f 6e 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 //.</exception>..........///.<re
4ac0 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 65 78 61 6d 70 6c 65 3e 0d 0a 20 marks>..........///.<example>...
4ae0 20 20 20 20 20 20 20 2f 2f 2f 20 3c 63 6f 64 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 .......///.<code>..........///.I
4b00 6e 70 75 74 44 65 76 69 63 65 44 65 73 63 72 69 70 74 69 6f 6e 2e 46 72 6f 6d 4a 73 6f 6e 28 40 nputDeviceDescription.FromJson(@
4b20 22 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 2f 2f "..........///.....{..........//
4b40 2f 20 20 20 20 20 20 20 20 20 22 22 69 6e 74 65 72 66 61 63 65 22 22 20 3a 20 22 22 48 49 44 22 /.........""interface"".:.""HID"
4b60 22 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 22 22 70 72 6f 64 75 63 ",..........///.........""produc
4b80 74 22 22 20 3a 20 22 22 53 6f 6d 65 44 65 76 69 63 65 22 22 0d 0a 20 20 20 20 20 20 20 20 2f 2f t"".:.""SomeDevice""..........//
4ba0 2f 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 22 29 3b 0d 0a 20 20 20 20 20 20 /.....}..........///.");........
4bc0 20 20 2f 2f 2f 20 3c 2f 63 6f 64 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 65 78 61 ..///.</code>..........///.</exa
4be0 6d 70 6c 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 mple>..........///.</remarks>...
4c00 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 54 6f 4a 73 6f 6e .......///.<seealso.cref="ToJson
4c20 22 2f 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 6e 70 75 74 "/>..........public.static.Input
4c40 44 65 76 69 63 65 44 65 73 63 72 69 70 74 69 6f 6e 20 46 72 6f 6d 4a 73 6f 6e 28 73 74 72 69 6e DeviceDescription.FromJson(strin
4c60 67 20 6a 73 6f 6e 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 g.json)..........{..............
4c80 69 66 20 28 6a 73 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 if.(json.==.null)...............
4ca0 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
4cc0 6f 6e 28 6e 61 6d 65 6f 66 28 6a 73 6f 6e 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 on(nameof(json));...............
4ce0 20 76 61 72 20 64 61 74 61 20 3d 20 4a 73 6f 6e 55 74 69 6c 69 74 79 2e 46 72 6f 6d 4a 73 6f 6e .var.data.=.JsonUtility.FromJson
4d00 3c 44 65 76 69 63 65 44 65 73 63 72 69 70 74 69 6f 6e 4a 73 6f 6e 3e 28 6a 73 6f 6e 29 3b 0d 0a <DeviceDescriptionJson>(json);..
4d20 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 49 6e 70 75 74 44 65 ..............return.new.InputDe
4d40 76 69 63 65 44 65 73 63 72 69 70 74 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a viceDescription..............{..
4d60 20 20 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 ................interfaceName.=.
4d80 64 61 74 61 2e 40 69 6e 74 65 72 66 61 63 65 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 data.@interface,................
4da0 20 20 64 65 76 69 63 65 43 6c 61 73 73 20 3d 20 64 61 74 61 2e 74 79 70 65 2c 0d 0a 20 20 20 20 ..deviceClass.=.data.type,......
4dc0 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 64 75 63 74 20 3d 20 64 61 74 61 2e 70 72 6f 64 75 ............product.=.data.produ
4de0 63 74 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 61 6e 75 66 61 63 74 75 72 65 ct,..................manufacture
4e00 72 20 3d 20 64 61 74 61 2e 6d 61 6e 75 66 61 63 74 75 72 65 72 2c 0d 0a 20 20 20 20 20 20 20 20 r.=.data.manufacturer,..........
4e20 20 20 20 20 20 20 20 20 73 65 72 69 61 6c 20 3d 20 64 61 74 61 2e 73 65 72 69 61 6c 2c 0d 0a 20 ........serial.=.data.serial,...
4e40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 65 72 73 69 6f 6e 20 3d 20 64 61 74 61 2e 76 65 ...............version.=.data.ve
4e60 72 73 69 6f 6e 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 70 61 62 69 6c 69 rsion,..................capabili
4e80 74 69 65 73 20 3d 20 64 61 74 61 2e 63 61 70 61 62 69 6c 69 74 69 65 73 0d 0a 20 20 20 20 20 20 ties.=.data.capabilities........
4ea0 20 20 20 20 20 20 7d 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 69 ......};..........}............i
4ec0 6e 74 65 72 6e 61 6c 20 73 74 61 74 69 63 20 62 6f 6f 6c 20 43 6f 6d 70 61 72 65 50 72 6f 70 65 nternal.static.bool.ComparePrope
4ee0 72 74 79 54 6f 44 65 76 69 63 65 44 65 73 63 72 69 70 74 6f 72 28 73 74 72 69 6e 67 20 70 72 6f rtyToDeviceDescriptor(string.pro
4f00 70 65 72 74 79 4e 61 6d 65 2c 20 73 74 72 69 6e 67 20 70 72 6f 70 65 72 74 79 56 61 6c 75 65 2c pertyName,.string.propertyValue,
4f20 20 73 74 72 69 6e 67 20 64 65 76 69 63 65 44 65 73 63 72 69 70 74 6f 72 29 0d 0a 20 20 20 20 20 .string.deviceDescriptor).......
4f40 20 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 4a 73 6f 6e ...{..............//.We.use.Json
4f60 50 61 72 73 65 72 20 69 6e 73 74 65 61 64 20 6f 66 20 4a 73 6f 6e 55 74 69 6c 69 74 79 2e 50 61 Parser.instead.of.JsonUtility.Pa
4f80 72 73 65 20 69 6e 20 6f 72 64 65 72 20 74 6f 20 6e 6f 74 20 61 6c 6c 6f 63 61 74 65 20 47 43 20 rse.in.order.to.not.allocate.GC.
4fa0 6d 65 6d 6f 72 79 20 68 65 72 65 2e 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 memory.here.................var.
4fc0 6a 73 6f 6e 20 3d 20 6e 65 77 20 4a 73 6f 6e 50 61 72 73 65 72 28 64 65 76 69 63 65 44 65 73 63 json.=.new.JsonParser(deviceDesc
4fe0 72 69 70 74 6f 72 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 6a 73 6f 6e 2e riptor);..............if.(!json.
5000 4e 61 76 69 67 61 74 65 54 6f 50 72 6f 70 65 72 74 79 28 70 72 6f 70 65 72 74 79 4e 61 6d 65 29 NavigateToProperty(propertyName)
5020 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 )..............{................
5040 20 20 69 66 20 28 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 70 72 6f 70 65 ..if.(string.IsNullOrEmpty(prope
5060 72 74 79 56 61 6c 75 65 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 rtyValue))......................
5080 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 20 20 20 20 72 65 return.true;..................re
50a0 74 75 72 6e 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 turn.false;..............}......
50c0 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6a 73 6f 6e 2e 43 75 72 72 65 6e 74 50 72 6f ..........return.json.CurrentPro
50e0 70 65 72 74 79 48 61 73 56 61 6c 75 65 45 71 75 61 6c 54 6f 28 70 72 6f 70 65 72 74 79 56 61 6c pertyHasValueEqualTo(propertyVal
5100 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 ue);..........}............[Seri
5120 61 6c 69 7a 65 46 69 65 6c 64 5d 20 70 72 69 76 61 74 65 20 73 74 72 69 6e 67 20 6d 5f 49 6e 74 alizeField].private.string.m_Int
5140 65 72 66 61 63 65 4e 61 6d 65 3b 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 erfaceName;..........[SerializeF
5160 69 65 6c 64 5d 20 70 72 69 76 61 74 65 20 73 74 72 69 6e 67 20 6d 5f 44 65 76 69 63 65 43 6c 61 ield].private.string.m_DeviceCla
5180 73 73 3b 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 70 72 ss;..........[SerializeField].pr
51a0 69 76 61 74 65 20 73 74 72 69 6e 67 20 6d 5f 4d 61 6e 75 66 61 63 74 75 72 65 72 3b 0d 0a 20 20 ivate.string.m_Manufacturer;....
51c0 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 70 72 69 76 61 74 65 20 73 ......[SerializeField].private.s
51e0 74 72 69 6e 67 20 6d 5f 50 72 6f 64 75 63 74 3b 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 tring.m_Product;..........[Seria
5200 6c 69 7a 65 46 69 65 6c 64 5d 20 70 72 69 76 61 74 65 20 73 74 72 69 6e 67 20 6d 5f 53 65 72 69 lizeField].private.string.m_Seri
5220 61 6c 3b 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 70 72 al;..........[SerializeField].pr
5240 69 76 61 74 65 20 73 74 72 69 6e 67 20 6d 5f 56 65 72 73 69 6f 6e 3b 0d 0a 20 20 20 20 20 20 20 ivate.string.m_Version;.........
5260 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 70 72 69 76 61 74 65 20 73 74 72 69 6e 67 .[SerializeField].private.string
5280 20 6d 5f 43 61 70 61 62 69 6c 69 74 69 65 73 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 .m_Capabilities;............priv
52a0 61 74 65 20 73 74 72 75 63 74 20 44 65 76 69 63 65 44 65 73 63 72 69 70 74 69 6f 6e 4a 73 6f 6e ate.struct.DeviceDescriptionJson
52c0 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 70 75 62 6c 69 63 20 ..........{..............public.
52e0 73 74 72 69 6e 67 20 40 69 6e 74 65 72 66 61 63 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 string.@interface;..............
5300 70 75 62 6c 69 63 20 73 74 72 69 6e 67 20 74 79 70 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 public.string.type;.............
5320 20 70 75 62 6c 69 63 20 73 74 72 69 6e 67 20 70 72 6f 64 75 63 74 3b 0d 0a 20 20 20 20 20 20 20 .public.string.product;.........
5340 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 72 69 6e 67 20 73 65 72 69 61 6c 3b 0d 0a 20 20 20 20 .....public.string.serial;......
5360 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 72 69 6e 67 20 76 65 72 73 69 6f 6e 3b 0d 0a ........public.string.version;..
5380 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 72 69 6e 67 20 6d 61 6e 75 66 61 ............public.string.manufa
53a0 63 74 75 72 65 72 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 72 69 cturer;..............public.stri
53c0 6e 67 20 63 61 70 61 62 69 6c 69 74 69 65 73 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 ng.capabilities;..........}.....
53e0 20 7d 0d 0a 7d 0d 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 16 00 00 00 .}..}...........................
5400 49 6e 70 75 74 44 65 76 69 63 65 44 65 73 63 72 69 70 74 69 6f 6e 00 00 00 00 00 00 InputDeviceDescription......