| ofs | hex dump | ascii |
|---|
| 0000 | 00 00 0f 81 00 00 94 7c 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe | .......|............2019.3.6f1.. |
| 0020 | ff ff ff 01 02 00 00 00 0b 04 00 00 00 ff ff 66 9a 86 21 eb 14 35 98 39 dd 34 1d 51 0e c1 f3 42 | ...............f..!..5.9.4.Q...B |
| 0040 | 00 00 00 ed 00 00 00 02 00 00 00 00 00 00 00 37 00 00 80 ff ff ff ff 00 00 00 00 00 80 00 00 00 | ...............7................ |
| 0060 | 00 00 00 00 00 00 00 01 00 01 00 a6 03 00 80 b2 01 00 80 04 00 00 00 01 00 00 00 01 00 00 00 00 | ................................ |
| 0080 | 00 00 00 00 00 00 00 01 00 01 00 0d 00 00 00 45 04 00 80 0c 00 00 00 02 00 00 00 01 00 00 00 00 | ...............E................ |
| 00a0 | 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 03 00 00 00 01 00 80 00 00 | ...............#................ |
| 00c0 | 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 04 00 00 00 01 00 80 00 00 | ...............,................ |
| 00e0 | 00 00 00 00 00 00 00 01 00 01 00 35 00 00 00 61 04 00 80 0c 00 00 00 05 00 00 00 01 00 00 00 00 | ...........5...a................ |
| 0100 | 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 06 00 00 00 01 00 80 00 00 | ...............#................ |
| 0120 | 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 07 00 00 00 01 00 80 00 00 | ...............,................ |
| 0140 | 00 00 00 00 00 00 00 01 00 01 00 86 02 00 80 72 04 00 80 0c 00 00 00 08 00 00 00 01 00 00 00 00 | ...............r................ |
| 0160 | 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 09 00 00 00 01 00 80 00 00 | ...............#................ |
| 0180 | 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 0a 00 00 00 01 00 80 00 00 | ...............,................ |
| 01a0 | 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ab 01 00 80 ff ff ff ff 0b 00 00 00 01 80 08 00 00 | ...........H.................... |
| 01c0 | 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 0c 00 00 00 01 40 08 00 00 | ...........1...1............@... |
| 01e0 | 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 0d 00 00 00 01 00 08 00 00 | ................................ |
| 0200 | 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 0e 00 00 00 01 00 08 00 00 | ...........Q...j................ |
| 0220 | 00 00 00 00 00 00 00 01 00 01 00 f1 00 00 80 4a 00 00 00 ff ff ff ff 0f 00 00 00 00 c0 00 00 00 | ...............J................ |
| 0240 | 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 10 00 00 00 00 80 00 00 00 | ...........1...1................ |
| 0260 | 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 11 00 00 00 00 00 00 00 00 | ................................ |
| 0280 | 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a 00 00 80 ff ff ff ff 12 00 00 00 00 80 00 00 00 | ...............j................ |
| 02a0 | 00 00 00 00 00 00 00 01 00 04 00 5c 00 00 00 9b 00 00 80 ff ff ff ff 13 00 00 00 00 80 00 00 00 | ...........\.................... |
| 02c0 | 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 72 00 00 00 ff ff ff ff 14 00 00 00 00 80 00 00 00 | ...........H...r................ |
| 02e0 | 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 15 00 00 00 01 40 00 00 00 | ...........1...1............@... |
| 0300 | 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 16 00 00 00 01 00 00 00 00 | ................................ |
| 0320 | 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 17 00 00 00 01 00 00 00 00 | ...........Q...j................ |
| 0340 | 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 77 00 00 00 ff ff ff ff 18 00 00 00 00 80 00 00 00 | ...........H...w................ |
| 0360 | 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 19 00 00 00 01 40 00 00 00 | ...........1...1............@... |
| 0380 | 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 1a 00 00 00 01 00 00 00 00 | ................................ |
| 03a0 | 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 1b 00 00 00 01 00 00 00 00 | ...........Q...j................ |
| 03c0 | 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 80 00 00 00 ff ff ff ff 1c 00 00 00 00 80 00 00 00 | ...........H.................... |
| 03e0 | 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 1d 00 00 00 01 40 00 00 00 | ...........1...1............@... |
| 0400 | 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 1e 00 00 00 01 00 00 00 00 | ................................ |
| 0420 | 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 1f 00 00 00 01 00 00 00 00 | ...........Q...j................ |
| 0440 | 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a 03 00 80 0c 00 00 00 20 00 00 00 00 00 00 00 00 | ...........y.................... |
| 0460 | 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 23 00 00 00 04 00 00 00 21 00 00 00 01 00 80 00 00 | ...............#.......!........ |
| 0480 | 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 2c 00 00 00 08 00 00 00 22 00 00 00 01 00 80 00 00 | ...............,......."........ |
| 04a0 | 00 00 00 00 00 00 00 01 00 01 00 11 03 00 80 85 00 00 00 ff ff ff ff 23 00 00 00 01 40 08 00 00 | .......................#....@... |
| 04c0 | 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 24 00 00 00 01 00 08 00 00 | ...........1...1.......$........ |
| 04e0 | 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 25 00 00 00 01 00 08 00 00 | .......................%........ |
| 0500 | 00 00 00 00 00 00 00 01 00 03 00 2e 03 00 80 6a 00 00 80 08 00 00 00 26 00 00 00 01 00 08 00 00 | ...............j.......&........ |
| 0520 | 00 00 00 00 00 00 00 01 00 01 00 d5 03 00 80 93 00 00 00 ff ff ff ff 27 00 00 00 00 80 00 00 00 | .......................'........ |
| 0540 | 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 28 00 00 00 00 c0 00 00 00 | ...........1...1.......(........ |
| 0560 | 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 29 00 00 00 00 00 00 00 00 | .......................)........ |
| 0580 | 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a 00 00 80 ff ff ff ff 2a 00 00 00 00 80 00 00 00 | ...............j.......*........ |
| 05a0 | 00 00 00 00 00 00 00 01 00 04 00 48 03 00 80 9b 00 00 80 ff ff ff ff 2b 00 00 00 00 80 00 00 00 | ...........H...........+........ |
| 05c0 | 00 00 00 00 00 00 00 01 00 05 01 31 00 00 80 31 00 00 80 ff ff ff ff 2c 00 00 00 01 40 00 00 00 | ...........1...1.......,....@... |
| 05e0 | 00 00 00 00 00 00 00 01 00 06 00 de 00 00 80 1b 03 00 80 04 00 00 00 2d 00 00 00 01 00 00 00 00 | .......................-........ |
| 0600 | 00 00 00 00 00 00 00 01 00 06 00 51 00 00 80 6a 00 00 80 01 00 00 00 2e 00 00 00 01 00 00 00 00 | ...........Q...j................ |
| 0620 | 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a 03 00 80 0c 00 00 00 2f 00 00 00 00 00 00 00 00 | ...........y.........../........ |
| 0640 | 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 23 00 00 00 04 00 00 00 30 00 00 00 01 00 80 00 00 | ...............#.......0........ |
| 0660 | 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 2c 00 00 00 08 00 00 00 31 00 00 00 01 00 80 00 00 | ...............,.......1........ |
| 0680 | 00 00 00 00 00 00 00 01 00 01 00 20 03 00 80 a7 00 00 00 02 00 00 00 32 00 00 00 00 40 00 00 00 | .......................2....@... |
| 06a0 | 00 00 00 00 00 00 00 01 00 01 00 be 02 00 80 b6 00 00 00 0c 00 00 00 33 00 00 00 00 40 00 00 00 | .......................3....@... |
| 06c0 | 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 34 00 00 00 01 00 80 00 00 | ...............#.......4........ |
| 06e0 | 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 35 00 00 00 01 00 80 00 00 | ...............,.......5........ |
| 0700 | 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 bb 00 00 00 ff ff ff ff 36 00 00 00 01 80 00 00 00 | ...........H...........6........ |
| 0720 | 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 37 00 00 00 01 40 00 00 00 | ...........1...1.......7....@... |
| 0740 | 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 38 00 00 00 01 00 00 00 00 | .......................8........ |
| 0760 | 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 39 00 00 00 01 00 00 00 00 | ...........Q...j.......9........ |
| 0780 | 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 c6 00 00 00 ff ff ff ff 3a 00 00 00 01 80 00 00 00 | ...........H...........:........ |
| 07a0 | 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 3b 00 00 00 01 40 00 00 00 | ...........1...1.......;....@... |
| 07c0 | 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 3c 00 00 00 01 00 00 00 00 | .......................<........ |
| 07e0 | 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 3d 00 00 00 01 00 00 00 00 | ...........Q...j.......=........ |
| 0800 | 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 d8 00 00 00 ff ff ff ff 3e 00 00 00 01 80 00 00 00 | ...........H...........>........ |
| 0820 | 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 3f 00 00 00 01 40 00 00 00 | ...........1...1.......?....@... |
| 0840 | 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 40 00 00 00 01 00 00 00 00 | .......................@........ |
| 0860 | 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 41 00 00 00 01 00 00 00 00 | ...........Q...j.......A........ |
| 0880 | 00 00 00 00 00 00 00 4d 6f 6e 6f 49 6d 70 6f 72 74 65 72 00 50 50 74 72 3c 45 64 69 74 6f 72 45 | .......MonoImporter.PPtr<EditorE |
| 08a0 | 78 74 65 6e 73 69 6f 6e 3e 00 6d 5f 46 69 6c 65 49 44 00 6d 5f 50 61 74 68 49 44 00 50 50 74 72 | xtension>.m_FileID.m_PathID.PPtr |
| 08c0 | 3c 50 72 65 66 61 62 49 6e 73 74 61 6e 63 65 3e 00 6d 5f 45 78 74 65 72 6e 61 6c 4f 62 6a 65 63 | <PrefabInstance>.m_ExternalObjec |
| 08e0 | 74 73 00 53 6f 75 72 63 65 41 73 73 65 74 49 64 65 6e 74 69 66 69 65 72 00 74 79 70 65 00 61 73 | ts.SourceAssetIdentifier.type.as |
| 0900 | 73 65 6d 62 6c 79 00 6e 61 6d 65 00 6d 5f 55 73 65 64 46 69 6c 65 49 44 73 00 6d 5f 44 65 66 61 | sembly.name.m_UsedFileIDs.m_Defa |
| 0920 | 75 6c 74 52 65 66 65 72 65 6e 63 65 73 00 65 78 65 63 75 74 69 6f 6e 4f 72 64 65 72 00 69 63 6f | ultReferences.executionOrder.ico |
| 0940 | 6e 00 6d 5f 55 73 65 72 44 61 74 61 00 6d 5f 41 73 73 65 74 42 75 6e 64 6c 65 4e 61 6d 65 00 6d | n.m_UserData.m_AssetBundleName.m |
| 0960 | 5f 41 73 73 65 74 42 75 6e 64 6c 65 56 61 72 69 61 6e 74 00 00 00 00 00 73 00 00 00 00 ff ff a3 | _AssetBundleVariant.....s....... |
| 0980 | 47 f1 d7 dc 8f 5a 35 36 a0 3a 21 40 69 c1 4a 2a 00 00 00 81 00 00 00 05 00 00 00 15 01 00 80 37 | G....Z56.:!@i.J*...............7 |
| 09a0 | 00 00 80 ff ff ff ff 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 01 00 01 00 a6 03 00 80 b2 | ................................ |
| 09c0 | 01 00 80 04 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 00 00 00 00 45 | ...............................E |
| 09e0 | 04 00 80 0c 00 00 00 02 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 | ................................ |
| 0a00 | 00 00 00 04 00 00 00 03 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f | ................................ |
| 0a20 | 00 00 00 08 00 00 00 04 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 28 00 00 00 61 | ...........................(...a |
| 0a40 | 04 00 80 0c 00 00 00 05 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 | ................................ |
| 0a60 | 00 00 00 04 00 00 00 06 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f | ................................ |
| 0a80 | 00 00 00 08 00 00 00 07 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 86 02 00 80 72 | ...............................r |
| 0aa0 | 04 00 80 0c 00 00 00 08 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 | ................................ |
| 0ac0 | 00 00 00 04 00 00 00 09 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f | ................................ |
| 0ae0 | 00 00 00 08 00 00 00 0a 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ab | ...........................H.... |
| 0b00 | 01 00 80 ff ff ff ff 0b 00 00 00 01 80 08 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 | ...........................1...1 |
| 0b20 | 00 00 80 ff ff ff ff 0c 00 00 00 01 40 08 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b | ............@................... |
| 0b40 | 03 00 80 04 00 00 00 0d 00 00 00 01 00 08 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a | ...........................Q...j |
| 0b60 | 00 00 80 01 00 00 00 0e 00 00 00 01 00 08 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ea | ...........................H.... |
| 0b80 | 01 00 80 ff ff ff ff 0f 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 | ...........................1...1 |
| 0ba0 | 00 00 80 ff ff ff ff 10 00 00 00 01 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b | ............@................... |
| 0bc0 | 03 00 80 04 00 00 00 11 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a | ...........................Q...j |
| 0be0 | 00 00 80 01 00 00 00 12 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 f1 00 00 80 3d | ...............................= |
| 0c00 | 00 00 00 ff ff ff ff 13 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 | ...........................1...1 |
| 0c20 | 00 00 80 ff ff ff ff 14 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b | ................................ |
| 0c40 | 03 00 80 04 00 00 00 15 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a | ...............................j |
| 0c60 | 00 00 80 ff ff ff ff 16 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 04 00 48 03 00 80 9b | ...........................H.... |
| 0c80 | 00 00 80 ff ff ff ff 17 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 05 01 31 00 00 80 31 | ...........................1...1 |
| 0ca0 | 00 00 80 ff ff ff ff 18 00 00 00 01 40 00 00 00 00 00 00 00 00 00 00 01 00 06 00 de 00 00 80 1b | ............@................... |
| 0cc0 | 03 00 80 04 00 00 00 19 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 06 00 51 00 00 80 6a | ...........................Q...j |
| 0ce0 | 00 00 80 01 00 00 00 1a 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a | ...........................y.... |
| 0d00 | 03 00 80 0c 00 00 00 1b 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 16 | ................................ |
| 0d20 | 00 00 00 04 00 00 00 1c 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 1f | ................................ |
| 0d40 | 00 00 00 08 00 00 00 1d 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 79 02 00 80 51 | ...........................y...Q |
| 0d60 | 00 00 00 0c 00 00 00 1e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 | ................................ |
| 0d80 | 00 00 00 04 00 00 00 1f 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f | ................................ |
| 0da0 | 00 00 00 08 00 00 00 20 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 de 00 00 80 58 | ...............................X |
| 0dc0 | 00 00 00 04 00 00 00 21 00 00 00 10 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 69 | .......!...................H...i |
| 0de0 | 00 00 00 ff ff ff ff 22 00 00 00 10 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 | ......."...................1...1 |
| 0e00 | 00 00 80 ff ff ff ff 23 00 00 00 11 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b | .......#....@................... |
| 0e20 | 03 00 80 04 00 00 00 24 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a | .......$...................Q...j |
| 0e40 | 00 00 80 01 00 00 00 25 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 75 | .......%...................H...u |
| 0e60 | 00 00 00 ff ff ff ff 26 00 00 00 10 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 | .......&...................1...1 |
| 0e80 | 00 00 80 ff ff ff ff 27 00 00 00 11 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b | .......'....@................... |
| 0ea0 | 03 00 80 04 00 00 00 28 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a | .......(...................Q...j |
| 0ec0 | 00 00 80 01 00 00 00 29 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 50 50 74 72 3c 45 64 69 74 | .......)...............PPtr<Edit |
| 0ee0 | 6f 72 45 78 74 65 6e 73 69 6f 6e 3e 00 6d 5f 46 69 6c 65 49 44 00 6d 5f 50 61 74 68 49 44 00 50 | orExtension>.m_FileID.m_PathID.P |
| 0f00 | 50 74 72 3c 50 72 65 66 61 62 49 6e 73 74 61 6e 63 65 3e 00 6d 5f 44 65 66 61 75 6c 74 52 65 66 | Ptr<PrefabInstance>.m_DefaultRef |
| 0f20 | 65 72 65 6e 63 65 73 00 6d 5f 49 63 6f 6e 00 6d 5f 45 78 65 63 75 74 69 6f 6e 4f 72 64 65 72 00 | erences.m_Icon.m_ExecutionOrder. |
| 0f40 | 6d 5f 43 6c 61 73 73 4e 61 6d 65 00 6d 5f 4e 61 6d 65 73 70 61 63 65 00 00 00 00 00 02 00 00 00 | m_ClassName.m_Namespace......... |
| 0f60 | 03 00 00 00 00 00 00 00 00 00 00 00 5c 00 00 00 00 00 00 00 e0 79 af 00 00 00 00 00 60 00 00 00 | ............\........y......`... |
| 0f80 | 1c 84 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 0b 00 00 00 49 6e 70 75 74 44 65 76 69 63 65 00 9d 83 00 00 75 73 69 6e | ............InputDevice.....usin |
| 10a0 | 67 20 53 79 73 74 65 6d 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 6e 70 | g.System;..using.UnityEngine.Inp |
| 10c0 | 75 74 53 79 73 74 65 6d 2e 4c 6f 77 4c 65 76 65 6c 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 | utSystem.LowLevel;..using.UnityE |
| 10e0 | 6e 67 69 6e 65 2e 49 6e 70 75 74 53 79 73 74 65 6d 2e 55 74 69 6c 69 74 69 65 73 3b 0d 0a 75 73 | ngine.InputSystem.Utilities;..us |
| 1100 | 69 6e 67 20 55 6e 69 74 79 2e 43 6f 6c 6c 65 63 74 69 6f 6e 73 2e 4c 6f 77 4c 65 76 65 6c 2e 55 | ing.Unity.Collections.LowLevel.U |
| 1120 | 6e 73 61 66 65 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 6e 70 75 74 53 | nsafe;..using.UnityEngine.InputS |
| 1140 | 79 73 74 65 6d 2e 4c 61 79 6f 75 74 73 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e | ystem.Layouts;..using.UnityEngin |
| 1160 | 65 2e 49 6e 70 75 74 53 79 73 74 65 6d 2e 58 52 3b 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 72 | e.InputSystem.XR;....////TODO:.r |
| 1180 | 75 6e 74 69 6d 65 20 72 65 6d 61 70 70 69 6e 67 20 6f 66 20 63 6f 6e 74 72 6f 6c 20 75 73 61 67 | untime.remapping.of.control.usag |
| 11a0 | 65 73 20 6f 6e 20 61 20 70 65 72 2d 64 65 76 69 63 65 20 62 61 73 69 73 0d 0a 0d 0a 2f 2f 2f 2f | es.on.a.per-device.basis....//// |
| 11c0 | 54 4f 44 4f 3a 20 66 69 6e 65 72 2d 67 72 61 69 6e 65 64 20 63 6f 6e 74 72 6f 6c 20 6f 76 65 72 | TODO:.finer-grained.control.over |
| 11e0 | 20 77 68 61 74 20 64 65 76 69 63 65 73 20 64 65 6c 69 76 65 72 20 69 6e 70 75 74 20 77 68 69 6c | .what.devices.deliver.input.whil |
| 1200 | 65 20 72 75 6e 6e 69 6e 67 20 69 6e 20 62 61 63 6b 67 72 6f 75 6e 64 0d 0a 2f 2f 2f 2f 20 20 20 | e.running.in.background..////... |
| 1220 | 20 20 20 28 65 2e 67 2e 20 67 65 74 20 67 61 6d 65 70 61 64 20 69 6e 70 75 74 20 62 75 74 20 64 | ...(e.g..get.gamepad.input.but.d |
| 1240 | 6f 20 2a 6e 6f 74 2a 20 67 65 74 20 6d 6f 75 73 65 20 61 6e 64 20 6b 65 79 62 6f 61 72 64 20 69 | o.*not*.get.mouse.and.keyboard.i |
| 1260 | 6e 70 75 74 29 0d 0a 0d 0a 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 73 68 6f 75 6c 64 20 62 65 20 70 | nput)....////REVIEW:.should.be.p |
| 1280 | 6f 73 73 69 62 6c 65 20 74 6f 20 63 6f 6d 70 6c 65 74 65 6c 79 20 68 69 6a 61 63 6b 20 74 68 65 | ossible.to.completely.hijack.the |
| 12a0 | 20 69 6e 70 75 74 20 73 74 72 65 61 6d 20 6f 66 20 61 20 64 65 76 69 63 65 20 73 75 63 68 20 74 | .input.stream.of.a.device.such.t |
| 12c0 | 68 61 74 20 69 74 73 20 6f 72 69 67 69 6e 61 6c 20 69 6e 70 75 74 20 69 73 20 73 75 70 70 72 65 | hat.its.original.input.is.suppre |
| 12e0 | 73 73 65 64 0d 0a 0d 0a 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 63 61 6e 20 77 65 20 63 6f 6e 73 74 | ssed....////REVIEW:.can.we.const |
| 1300 | 72 75 63 74 20 74 68 65 20 63 6f 6e 74 72 6f 6c 20 74 72 65 65 20 6f 66 20 64 65 76 69 63 65 73 | ruct.the.control.tree.of.devices |
| 1320 | 20 6f 6e 20 64 65 6d 61 6e 64 20 73 6f 20 74 68 61 74 20 74 68 65 20 75 73 65 72 20 6e 65 76 65 | .on.demand.so.that.the.user.neve |
| 1340 | 72 20 68 61 73 20 74 6f 20 70 61 79 20 66 6f 72 0d 0a 2f 2f 2f 2f 20 20 20 20 20 20 20 20 74 68 | r.has.to.pay.for..////........th |
| 1360 | 65 20 68 65 61 70 20 6f 62 6a 65 63 74 73 20 6f 66 20 64 65 76 69 63 65 73 20 74 68 61 74 20 61 | e.heap.objects.of.devices.that.a |
| 1380 | 72 65 6e 27 74 20 75 73 65 64 3f 0d 0a 0d 0a 2f 2f 20 70 65 72 20 64 65 76 69 63 65 20 66 75 6e | ren't.used?....//.per.device.fun |
| 13a0 | 63 74 69 6f 6e 73 3a 0d 0a 2f 2f 20 20 2d 20 75 70 64 61 74 65 2f 70 6f 6c 6c 0d 0a 2f 2f 20 20 | ctions:..//..-.update/poll..//.. |
| 13c0 | 2d 20 49 4f 43 54 4c 0d 0a 2f 2f 20 20 2d 20 74 65 78 74 20 69 6e 70 75 74 0d 0a 2f 2f 20 20 2d | -.IOCTL..//..-.text.input..//..- |
| 13e0 | 20 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e 20 63 68 61 6e 67 65 0d 0a 2f 2f 20 20 2d 20 6d 61 6b | .configuration.change..//..-.mak |
| 1400 | 65 20 63 75 72 72 65 6e 74 0d 0a 2f 2f 20 20 2d 20 6f 6e 20 72 65 6d 6f 76 65 20 28 61 6c 73 6f | e.current..//..-.on.remove.(also |
| 1420 | 20 72 65 73 65 74 73 20 63 75 72 72 65 6e 74 29 0d 0a 2f 2f 0d 0a 2f 2f 20 49 64 65 61 6c 6c 79 | .resets.current)..//..//.Ideally |
| 1440 | 2c 20 74 68 65 73 65 20 77 6f 75 6c 64 20 2a 6e 6f 74 2a 20 62 65 20 76 69 72 74 75 61 6c 20 6d | ,.these.would.*not*.be.virtual.m |
| 1460 | 65 74 68 6f 64 73 20 6f 6e 20 49 6e 70 75 74 44 65 76 69 63 65 20 62 75 74 20 75 73 65 20 61 20 | ethods.on.InputDevice.but.use.a. |
| 1480 | 64 69 66 66 65 72 65 6e 74 20 70 72 6f 63 65 73 73 20 28 77 68 69 63 68 3f 29 0d 0a 2f 2f 20 66 | different.process.(which?)..//.f |
| 14a0 | 6f 72 20 61 73 73 6f 63 69 61 74 69 6e 67 20 72 65 73 70 6f 6e 73 65 73 20 77 69 74 68 20 64 65 | or.associating.responses.with.de |
| 14c0 | 76 69 63 65 73 0d 0a 0d 0a 6e 61 6d 65 73 70 61 63 65 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 | vices....namespace.UnityEngine.I |
| 14e0 | 6e 70 75 74 53 79 73 74 65 6d 0d 0a 7b 0d 0a 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e | nputSystem..{......///.<summary> |
| 1500 | 0d 0a 20 20 20 20 2f 2f 2f 20 52 65 70 72 65 73 65 6e 74 73 20 61 6e 20 69 6e 70 75 74 20 64 65 | ......///.Represents.an.input.de |
| 1520 | 76 69 63 65 20 77 68 69 63 68 20 69 73 20 61 6c 77 61 79 73 20 74 68 65 20 72 6f 6f 74 20 6f 66 | vice.which.is.always.the.root.of |
| 1540 | 20 61 20 68 69 65 72 61 72 63 68 79 20 6f 66 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 | .a.hierarchy.of.<see.cref="Input |
| 1560 | 43 6f 6e 74 72 6f 6c 22 2f 3e 20 69 6e 73 74 61 6e 63 65 73 2e 0d 0a 20 20 20 20 2f 2f 2f 20 3c | Control"/>.instances.......///.< |
| 1580 | 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>.... |
| 15a0 | 20 20 2f 2f 2f 20 49 6e 70 75 74 20 64 65 76 69 63 65 73 20 61 63 74 20 61 73 20 74 68 65 20 63 | ..///.Input.devices.act.as.the.c |
| 15c0 | 6f 6e 74 61 69 6e 65 72 20 66 6f 72 20 63 6f 6e 74 72 6f 6c 20 68 69 65 72 61 72 63 68 69 65 73 | ontainer.for.control.hierarchies |
| 15e0 | 2e 20 45 76 65 72 79 20 68 69 65 72 61 72 63 68 79 20 68 61 73 20 74 6f 20 68 61 76 65 0d 0a 20 | ..Every.hierarchy.has.to.have... |
| 1600 | 20 20 20 2f 2f 2f 20 61 20 64 65 76 69 63 65 20 61 74 20 74 68 65 20 72 6f 6f 74 2e 20 44 65 76 | ...///.a.device.at.the.root..Dev |
| 1620 | 69 63 65 73 20 63 61 6e 6e 6f 74 20 6f 63 63 75 72 20 61 73 20 63 68 69 6c 64 72 65 6e 20 6f 66 | ices.cannot.occur.as.children.of |
| 1640 | 20 6f 74 68 65 72 20 63 6f 6e 74 72 6f 6c 73 2e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f | .other.controls.......///....../ |
| 1660 | 2f 2f 20 44 65 76 69 63 65 73 20 61 72 65 20 75 73 75 61 6c 6c 79 20 63 72 65 61 74 65 64 20 61 | //.Devices.are.usually.created.a |
| 1680 | 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 69 6e 20 72 65 73 70 6f 6e 73 65 20 74 6f 20 68 61 72 64 | utomatically.in.response.to.hard |
| 16a0 | 77 61 72 65 20 62 65 69 6e 67 20 64 69 73 63 6f 76 65 72 65 64 20 62 79 20 74 68 65 20 55 6e 69 | ware.being.discovered.by.the.Uni |
| 16c0 | 74 79 0d 0a 20 20 20 20 2f 2f 2f 20 72 75 6e 74 69 6d 65 2e 20 48 6f 77 65 76 65 72 2c 20 69 74 | ty......///.runtime..However,.it |
| 16e0 | 20 69 73 20 70 6f 73 73 69 62 6c 65 20 74 6f 20 6d 61 6e 75 61 6c 6c 79 20 61 64 64 20 64 65 76 | .is.possible.to.manually.add.dev |
| 1700 | 69 63 65 73 20 75 73 69 6e 67 20 6d 65 74 68 6f 64 73 20 73 75 63 68 20 61 73 20 3c 73 65 65 0d | ices.using.methods.such.as.<see. |
| 1720 | 0a 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 41 64 64 44 65 | .....///.cref="InputSystem.AddDe |
| 1740 | 76 69 63 65 7b 54 44 65 76 69 63 65 7d 28 73 74 72 69 6e 67 29 22 2f 3e 2e 0d 0a 20 20 20 20 2f | vice{TDevice}(string)"/>......./ |
| 1760 | 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 3c 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c | //......///.<example>......///.< |
| 1780 | 63 6f 64 65 3e 0d 0a 20 20 20 20 2f 2f 2f 20 2f 2f 20 41 64 64 20 61 20 22 73 79 6e 74 68 65 74 | code>......///.//.Add.a."synthet |
| 17a0 | 69 63 22 20 67 61 6d 65 70 61 64 20 74 68 61 74 20 69 73 6e 27 74 20 61 63 74 75 61 6c 6c 79 20 | ic".gamepad.that.isn't.actually. |
| 17c0 | 62 61 63 6b 65 64 20 62 79 20 68 61 72 64 77 61 72 65 2e 0d 0a 20 20 20 20 2f 2f 2f 20 76 61 72 | backed.by.hardware.......///.var |
| 17e0 | 20 67 61 6d 65 70 61 64 20 3d 20 49 6e 70 75 74 53 79 73 74 65 6d 2e 41 64 64 44 65 76 69 63 65 | .gamepad.=.InputSystem.AddDevice |
| 1800 | 26 6c 74 3b 47 61 6d 65 70 61 64 26 67 74 3b 28 29 3b 0d 0a 20 20 20 20 2f 2f 2f 20 3c 2f 63 6f | <Gamepad>();......///.</co |
| 1820 | 64 65 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 2f 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 2f 2f 2f | de>......///.</example>....../// |
| 1840 | 0d 0a 20 20 20 20 2f 2f 2f 20 54 68 65 72 65 20 61 72 65 20 73 75 62 63 6c 61 73 73 65 73 20 72 | ......///.There.are.subclasses.r |
| 1860 | 65 70 72 65 73 65 6e 74 69 6e 67 20 74 68 65 20 6d 6f 73 74 20 63 6f 6d 6d 6f 6e 20 74 79 70 65 | epresenting.the.most.common.type |
| 1880 | 73 20 6f 66 20 64 65 76 69 63 65 73 2c 20 6c 69 6b 65 20 3c 73 65 65 20 63 72 65 66 3d 22 4d 6f | s.of.devices,.like.<see.cref="Mo |
| 18a0 | 75 73 65 22 2f 3e 2c 0d 0a 20 20 20 20 2f 2f 2f 20 3c 73 65 65 20 63 72 65 66 3d 22 4b 65 79 62 | use"/>,......///.<see.cref="Keyb |
| 18c0 | 6f 61 72 64 22 2f 3e 2c 20 3c 73 65 65 20 63 72 65 66 3d 22 47 61 6d 65 70 61 64 22 2f 3e 2c 20 | oard"/>,.<see.cref="Gamepad"/>,. |
| 18e0 | 61 6e 64 20 3c 73 65 65 20 63 72 65 66 3d 22 54 6f 75 63 68 73 63 72 65 65 6e 22 2f 3e 2e 0d 0a | and.<see.cref="Touchscreen"/>... |
| 1900 | 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 54 6f 20 63 72 65 61 74 65 20 79 6f 75 72 20 | ....///......///.To.create.your. |
| 1920 | 6f 77 6e 20 74 79 70 65 73 20 6f 66 20 64 65 76 69 63 65 73 2c 20 79 6f 75 20 63 61 6e 20 64 65 | own.types.of.devices,.you.can.de |
| 1940 | 72 69 76 65 20 66 72 6f 6d 20 49 6e 70 75 74 44 65 76 69 63 65 20 61 6e 64 20 72 65 67 69 73 74 | rive.from.InputDevice.and.regist |
| 1960 | 65 72 20 79 6f 75 72 20 64 65 76 69 63 65 0d 0a 20 20 20 20 2f 2f 2f 20 61 73 20 61 20 6e 65 77 | er.your.device......///.as.a.new |
| 1980 | 20 22 6c 61 79 6f 75 74 22 2e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 3c 65 78 | ."layout".......///......///.<ex |
| 19a0 | 61 6d 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 | ample>......///.<code>......///. |
| 19c0 | 2f 2f 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 4c 61 79 6f 75 74 41 74 74 72 69 62 75 74 65 20 61 | //.InputControlLayoutAttribute.a |
| 19e0 | 74 74 72 69 62 75 74 65 20 69 73 20 6f 6e 6c 79 20 6e 65 63 65 73 73 61 72 79 20 69 66 20 79 6f | ttribute.is.only.necessary.if.yo |
| 1a00 | 75 20 77 61 6e 74 0d 0a 20 20 20 20 2f 2f 2f 20 2f 2f 20 74 6f 20 6f 76 65 72 72 69 64 65 20 64 | u.want......///.//.to.override.d |
| 1a20 | 65 66 61 75 6c 74 20 62 65 68 61 76 69 6f 72 20 74 68 61 74 20 6f 63 63 75 72 73 20 77 68 65 6e | efault.behavior.that.occurs.when |
| 1a40 | 20 72 65 67 69 73 74 65 72 69 6e 67 20 79 6f 75 72 20 64 65 76 69 63 65 0d 0a 20 20 20 20 2f 2f | .registering.your.device......// |
| 1a60 | 2f 20 2f 2f 20 61 73 20 61 20 6c 61 79 6f 75 74 2e 0d 0a 20 20 20 20 2f 2f 2f 20 2f 2f 20 54 68 | /.//.as.a.layout.......///.//.Th |
| 1a80 | 65 20 6d 6f 73 74 20 63 6f 6d 6d 6f 6e 20 75 73 65 20 6f 66 20 49 6e 70 75 74 43 6f 6e 74 72 6f | e.most.common.use.of.InputContro |
| 1aa0 | 6c 4c 61 79 6f 75 74 41 74 74 72 69 62 75 74 65 20 69 73 20 74 6f 20 64 69 72 65 63 74 20 74 68 | lLayoutAttribute.is.to.direct.th |
| 1ac0 | 65 20 73 79 73 74 65 6d 0d 0a 20 20 20 20 2f 2f 2f 20 2f 2f 20 74 6f 20 61 20 63 75 73 74 6f 6d | e.system......///.//.to.a.custom |
| 1ae0 | 20 22 73 74 61 74 65 20 73 74 72 75 63 74 22 20 74 68 72 6f 75 67 68 20 74 68 65 20 60 73 74 61 | ."state.struct".through.the.`sta |
| 1b00 | 74 65 54 79 70 65 60 20 70 72 6f 70 65 72 74 79 2e 20 53 65 65 20 62 65 6c 6f 77 20 66 6f 72 20 | teType`.property..See.below.for. |
| 1b20 | 64 65 74 61 69 6c 73 2e 0d 0a 20 20 20 20 2f 2f 2f 20 5b 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 4c | details.......///.[InputControlL |
| 1b40 | 61 79 6f 75 74 28 64 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 22 4d 79 20 44 65 76 69 63 65 22 2c | ayout(displayName.=."My.Device", |
| 1b60 | 20 73 74 61 74 65 54 79 70 65 20 3d 20 74 79 70 65 6f 66 28 4d 79 44 65 76 69 63 65 53 74 61 74 | .stateType.=.typeof(MyDeviceStat |
| 1b80 | 65 29 29 5d 0d 0a 20 20 20 20 2f 2f 2f 20 23 69 66 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0d 0a | e))]......///.#if.UNITY_EDITOR.. |
| 1ba0 | 20 20 20 20 2f 2f 2f 20 5b 49 6e 69 74 69 61 6c 69 7a 65 4f 6e 4c 6f 61 64 5d 0d 0a 20 20 20 20 | ....///.[InitializeOnLoad]...... |
| 1bc0 | 2f 2f 2f 20 23 65 6e 64 69 66 0d 0a 20 20 20 20 2f 2f 2f 20 70 75 62 6c 69 63 20 63 6c 61 73 73 | ///.#endif......///.public.class |
| 1be0 | 20 4d 79 44 65 76 69 63 65 20 3a 20 49 6e 70 75 74 44 65 76 69 63 65 0d 0a 20 20 20 20 2f 2f 2f | .MyDevice.:.InputDevice....../// |
| 1c00 | 20 7b 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 70 75 62 6c 69 63 20 42 75 74 74 6f 6e 43 6f 6e | .{......///.....public.ButtonCon |
| 1c20 | 74 72 6f 6c 20 62 75 74 74 6f 6e 20 7b 20 67 65 74 3b 20 70 72 69 76 61 74 65 20 73 65 74 3b 20 | trol.button.{.get;.private.set;. |
| 1c40 | 7d 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 70 75 62 6c 69 63 20 41 78 69 73 43 6f 6e 74 72 6f | }......///.....public.AxisContro |
| 1c60 | 6c 20 61 78 69 73 20 7b 20 67 65 74 3b 20 70 72 69 76 61 74 65 20 73 65 74 3b 20 7d 0d 0a 20 20 | l.axis.{.get;.private.set;.}.... |
| 1c80 | 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 2f 2f 20 52 65 67 69 73 74 65 72 20 74 | ..///......///.....//.Register.t |
| 1ca0 | 68 65 20 64 65 76 69 63 65 2e 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 73 74 61 74 69 63 20 4d | he.device.......///.....static.M |
| 1cc0 | 79 44 65 76 69 63 65 28 29 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 7b 0d 0a 20 20 20 20 2f 2f | yDevice()......///.....{......// |
| 1ce0 | 2f 20 20 20 20 20 20 20 20 20 2f 2f 20 49 6e 20 63 61 73 65 20 79 6f 75 20 77 61 6e 74 20 69 6e | /.........//.In.case.you.want.in |
| 1d00 | 73 74 61 6e 63 65 20 6f 66 20 79 6f 75 72 20 64 65 76 69 63 65 20 74 6f 20 61 75 74 6f 6d 61 74 | stance.of.your.device.to.automat |
| 1d20 | 69 63 61 6c 6c 79 20 62 65 20 63 72 65 61 74 65 64 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 | ically.be.created......///...... |
| 1d40 | 20 20 20 2f 2f 20 77 68 65 6e 20 73 70 65 63 69 66 69 63 20 68 61 72 64 77 61 72 65 20 69 73 20 | ...//.when.specific.hardware.is. |
| 1d60 | 64 65 74 65 63 74 65 64 20 62 79 20 74 68 65 20 55 6e 69 74 79 20 72 75 6e 74 69 6d 65 2c 20 79 | detected.by.the.Unity.runtime,.y |
| 1d80 | 6f 75 20 68 61 76 65 20 74 6f 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 2f 2f 20 61 | ou.have.to......///.........//.a |
| 1da0 | 64 64 20 6f 6e 65 20 6f 72 20 6d 6f 72 65 20 22 64 65 76 69 63 65 20 6d 61 74 63 68 65 72 73 22 | dd.one.or.more."device.matchers" |
| 1dc0 | 20 28 49 6e 70 75 74 44 65 76 69 63 65 4d 61 74 63 68 65 72 29 20 66 6f 72 20 74 68 65 20 6c 61 | .(InputDeviceMatcher).for.the.la |
| 1de0 | 79 6f 75 74 2e 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 2f 2f 20 54 68 65 73 65 20 | yout.......///.........//.These. |
| 1e00 | 6d 61 74 63 68 65 72 73 20 61 72 65 20 63 6f 6d 70 61 72 65 64 20 74 6f 20 61 6e 20 49 6e 70 75 | matchers.are.compared.to.an.Inpu |
| 1e20 | 74 44 65 76 69 63 65 44 65 73 63 72 69 70 74 69 6f 6e 20 72 65 63 65 69 76 65 64 20 66 72 6f 6d | tDeviceDescription.received.from |
| 1e40 | 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 2f 2f 20 74 68 65 20 55 6e 69 74 79 20 72 | ......///.........//.the.Unity.r |
| 1e60 | 75 6e 74 69 6d 65 20 77 68 65 6e 20 61 20 64 65 76 69 63 65 20 69 73 20 63 6f 6e 6e 65 63 74 65 | untime.when.a.device.is.connecte |
| 1e80 | 64 2e 20 59 6f 75 20 63 61 6e 20 61 64 64 20 74 68 65 6d 20 65 69 74 68 65 72 0d 0a 20 20 20 20 | d..You.can.add.them.either...... |
| 1ea0 | 2f 2f 2f 20 20 20 20 20 20 20 20 20 2f 2f 20 75 73 69 6e 67 20 49 6e 70 75 74 53 79 73 74 65 6d | ///.........//.using.InputSystem |
| 1ec0 | 2e 52 65 67 69 73 74 65 72 4c 61 79 6f 75 74 4d 61 74 63 68 65 72 28 29 20 6f 72 20 62 79 20 64 | .RegisterLayoutMatcher().or.by.d |
| 1ee0 | 69 72 65 63 74 6c 79 20 73 70 65 63 69 66 79 69 6e 67 20 61 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 | irectly.specifying.a......///... |
| 1f00 | 20 20 20 20 20 20 2f 2f 20 6d 61 74 63 68 65 72 20 77 68 65 6e 20 72 65 67 69 73 74 65 72 69 6e | ......//.matcher.when.registerin |
| 1f20 | 67 20 74 68 65 20 6c 61 79 6f 75 74 2e 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 49 | g.the.layout.......///.........I |
| 1f40 | 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 26 6c 74 3b 4d 79 44 | nputSystem.RegisterLayout<MyD |
| 1f60 | 65 76 69 63 65 26 67 74 3b 28 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 | evice>(......///............. |
| 1f80 | 2f 2f 20 46 6f 72 20 74 68 65 20 73 61 6b 65 20 6f 66 20 64 65 6d 6f 6e 73 74 72 61 74 69 6f 6e | //.For.the.sake.of.demonstration |
| 1fa0 | 2c 20 6c 65 74 27 73 20 61 73 73 75 6d 65 20 79 6f 75 72 20 64 65 76 69 63 65 20 69 73 20 61 20 | ,.let's.assume.your.device.is.a. |
| 1fc0 | 48 49 44 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 61 6e 64 20 | HID......///.............//.and. |
| 1fe0 | 79 6f 75 20 77 61 6e 74 20 74 6f 20 6d 61 74 63 68 20 62 79 20 50 49 44 20 61 6e 64 20 56 49 44 | you.want.to.match.by.PID.and.VID |
| 2000 | 2e 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 61 74 63 68 65 73 3a 20 | .......///.............matches:. |
| 2020 | 6e 65 77 20 49 6e 70 75 74 44 65 76 69 63 65 4d 61 74 63 68 65 72 28 29 0d 0a 20 20 20 20 2f 2f | new.InputDeviceMatcher()......// |
| 2040 | 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2e 57 69 74 68 49 6e 74 65 72 66 61 63 65 | /..................WithInterface |
| 2060 | 28 22 48 49 44 22 29 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ("HID")......///................ |
| 2080 | 20 2e 57 69 74 68 43 61 70 61 62 69 6c 69 74 79 28 22 50 49 44 22 2c 20 31 32 33 34 29 0d 0a 20 | ..WithCapability("PID",.1234)... |
| 20a0 | 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2e 57 69 74 68 43 61 70 61 | ...///..................WithCapa |
| 20c0 | 62 69 6c 69 74 79 28 22 56 49 44 22 2c 20 35 36 37 38 29 29 3b 0d 0a 20 20 20 20 2f 2f 2f 20 20 | bility("VID",.5678));......///.. |
| 20e0 | 20 20 20 7d 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 2f 2f 20 54 68 | ...}......///......///.....//.Th |
| 2100 | 69 73 20 69 73 20 6f 6e 6c 79 20 74 6f 20 74 72 69 67 67 65 72 20 74 68 65 20 73 74 61 74 69 63 | is.is.only.to.trigger.the.static |
| 2120 | 20 63 6c 61 73 73 20 63 6f 6e 73 74 72 75 63 74 6f 72 20 74 6f 20 61 75 74 6f 6d 61 74 69 63 61 | .class.constructor.to.automatica |
| 2140 | 6c 6c 79 20 72 75 6e 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 2f 2f 20 69 6e 20 74 68 65 20 70 | lly.run......///.....//.in.the.p |
| 2160 | 6c 61 79 65 72 2e 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 5b 52 75 6e 74 69 6d 65 49 6e 69 74 | layer.......///.....[RuntimeInit |
| 2180 | 69 61 6c 69 7a 65 4f 6e 4c 6f 61 64 4d 65 74 68 6f 64 5d 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 | ializeOnLoadMethod]......///.... |
| 21a0 | 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 76 6f 69 64 20 49 6e 69 74 69 61 6c 69 7a 65 49 | .private.static.void.InitializeI |
| 21c0 | 6e 50 6c 61 79 65 72 28 29 20 7b 7d 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 20 | nPlayer().{}......///......///.. |
| 21e0 | 20 20 20 70 72 6f 74 65 63 74 65 64 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 46 69 6e 69 73 | ...protected.override.void.Finis |
| 2200 | 68 53 65 74 75 70 28 29 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 7b 0d 0a 20 20 20 20 2f 2f 2f | hSetup()......///.....{....../// |
| 2220 | 20 20 20 20 20 20 20 20 20 62 61 73 65 2e 46 69 6e 69 73 68 53 65 74 75 70 28 29 3b 0d 0a 20 20 | .........base.FinishSetup();.... |
| 2240 | 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 62 75 74 74 6f 6e 20 3d 20 47 65 74 43 68 69 6c 64 43 | ..///.........button.=.GetChildC |
| 2260 | 6f 6e 74 72 6f 6c 26 6c 74 3b 42 75 74 74 6f 6e 43 6f 6e 74 72 6f 6c 26 67 74 3b 28 22 62 75 74 | ontrol<ButtonControl>("but |
| 2280 | 74 6f 6e 22 29 3b 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 61 78 69 73 20 3d 20 47 | ton");......///.........axis.=.G |
| 22a0 | 65 74 43 68 69 6c 64 43 6f 6e 74 72 6f 6c 26 6c 74 3b 41 78 69 73 43 6f 6e 74 72 6f 6c 26 67 74 | etChildControl<AxisControl> |
| 22c0 | 3b 28 22 61 78 69 73 22 29 3b 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 7d 0d 0a 20 20 20 20 2f | ;("axis");......///.....}....../ |
| 22e0 | 2f 2f 20 7d 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 2f 2f 20 41 20 22 73 74 61 | //.}......///......///.//.A."sta |
| 2300 | 74 65 20 73 74 72 75 63 74 22 20 64 65 73 63 72 69 62 65 73 20 74 68 65 20 6d 65 6d 6f 72 79 20 | te.struct".describes.the.memory. |
| 2320 | 66 6f 72 6d 61 74 20 75 73 65 64 20 62 79 20 61 20 64 65 76 69 63 65 2e 20 45 61 63 68 20 64 65 | format.used.by.a.device..Each.de |
| 2340 | 76 69 63 65 20 63 61 6e 0d 0a 20 20 20 20 2f 2f 2f 20 2f 2f 20 72 65 63 65 69 76 65 20 61 6e 64 | vice.can......///.//.receive.and |
| 2360 | 20 73 74 6f 72 65 20 6d 65 6d 6f 72 79 20 69 6e 20 69 74 73 20 63 75 73 74 6f 6d 20 66 6f 72 6d | .store.memory.in.its.custom.form |
| 2380 | 61 74 2e 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 73 20 61 72 65 20 74 68 65 6e 20 63 6f 6e 6e 65 | at..InputControls.are.then.conne |
| 23a0 | 63 74 65 64 0d 0a 20 20 20 20 2f 2f 2f 20 2f 2f 20 74 68 65 20 69 6e 64 69 76 69 64 75 61 6c 20 | cted......///.//.the.individual. |
| 23c0 | 70 69 65 63 65 73 20 6f 66 20 6d 65 6d 6f 72 79 20 61 6e 64 20 72 65 61 64 20 6f 75 74 20 76 61 | pieces.of.memory.and.read.out.va |
| 23e0 | 6c 75 65 73 20 66 72 6f 6d 20 74 68 65 6d 2e 0d 0a 20 20 20 20 2f 2f 2f 20 5b 53 74 72 75 63 74 | lues.from.them.......///.[Struct |
| 2400 | 4c 61 79 6f 75 74 28 4c 61 79 6f 75 74 4b 69 6e 64 2e 45 78 70 6c 69 63 69 74 2c 20 53 69 7a 65 | Layout(LayoutKind.Explicit,.Size |
| 2420 | 20 3d 20 33 32 29 5d 0d 0a 20 20 20 20 2f 2f 2f 20 70 75 62 6c 69 63 20 73 74 72 75 63 74 20 4d | .=.32)]......///.public.struct.M |
| 2440 | 79 44 65 76 69 63 65 53 74 61 74 65 20 3a 20 49 49 6e 70 75 74 53 74 61 74 65 54 79 70 65 49 6e | yDeviceState.:.IInputStateTypeIn |
| 2460 | 66 6f 0d 0a 20 20 20 20 2f 2f 2f 20 7b 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 2f 2f 20 49 6e | fo......///.{......///.....//.In |
| 2480 | 20 74 68 65 20 63 61 73 65 20 6f 66 20 61 20 48 49 44 20 28 77 68 69 63 68 20 77 65 20 61 73 73 | .the.case.of.a.HID.(which.we.ass |
| 24a0 | 75 6d 65 20 66 6f 72 20 74 68 65 20 73 61 6b 65 20 6f 66 20 74 68 69 73 20 64 65 6d 6f 6e 73 74 | ume.for.the.sake.of.this.demonst |
| 24c0 | 72 61 74 69 6f 6e 29 2c 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 2f 2f 20 74 68 65 20 66 6f 72 | ration),......///.....//.the.for |
| 24e0 | 6d 61 74 20 77 69 6c 6c 20 62 65 20 22 48 49 44 22 2e 20 49 6e 20 70 72 61 63 74 69 63 65 2c 20 | mat.will.be."HID"..In.practice,. |
| 2500 | 74 68 65 20 66 6f 72 6d 61 74 20 77 69 6c 6c 20 64 65 70 65 6e 64 20 6f 6e 20 68 6f 77 20 79 6f | the.format.will.depend.on.how.yo |
| 2520 | 75 72 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 2f 2f 20 70 61 72 74 69 63 75 6c 61 72 20 64 65 | ur......///.....//.particular.de |
| 2540 | 76 69 63 65 20 69 73 20 63 6f 6e 6e 65 63 74 65 64 20 61 6e 64 20 66 65 64 20 69 6e 74 6f 20 74 | vice.is.connected.and.fed.into.t |
| 2560 | 68 65 20 69 6e 70 75 74 20 73 79 73 74 65 6d 2e 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 2f 2f | he.input.system.......///.....// |
| 2580 | 20 54 68 65 20 66 6f 72 6d 61 74 20 69 73 20 61 20 73 69 6d 70 6c 65 20 46 6f 75 72 43 43 20 63 | .The.format.is.a.simple.FourCC.c |
| 25a0 | 6f 64 65 20 74 68 61 74 20 22 74 61 67 73 22 20 73 74 61 74 65 20 6d 65 6d 6f 72 79 20 62 6c 6f | ode.that."tags".state.memory.blo |
| 25c0 | 63 6b 73 20 66 6f 72 20 74 68 65 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 2f 2f 20 64 65 76 69 | cks.for.the......///.....//.devi |
| 25e0 | 63 65 20 74 6f 20 67 69 76 65 20 61 20 62 61 73 65 20 6c 65 76 65 6c 20 6f 66 20 73 61 66 65 74 | ce.to.give.a.base.level.of.safet |
| 2600 | 79 20 63 68 65 63 6b 73 20 6f 6e 20 6d 65 6d 6f 72 79 20 6f 70 65 72 61 74 69 6f 6e 73 2e 0d 0a | y.checks.on.memory.operations... |
| 2620 | 20 20 20 20 2f 2f 2f 20 20 20 20 20 70 75 62 6c 69 63 20 46 6f 75 72 43 43 20 66 6f 72 6d 61 74 | ....///.....public.FourCC.format |
| 2640 | 20 3d 3e 20 72 65 74 75 72 6e 20 6e 65 77 20 46 6f 75 72 43 43 28 27 48 27 2c 20 27 49 27 2c 20 | .=>.return.new.FourCC('H',.'I',. |
| 2660 | 27 44 27 29 3b 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 2f 2f 20 49 | 'D');......///......///.....//.I |
| 2680 | 6e 70 75 74 43 6f 6e 74 72 6f 6c 41 74 74 72 69 62 75 74 65 73 20 6f 6e 20 66 69 65 6c 64 73 20 | nputControlAttributes.on.fields. |
| 26a0 | 74 65 6c 6c 20 74 68 65 20 69 6e 70 75 74 20 73 79 73 74 65 6d 20 74 6f 20 63 72 65 61 74 65 20 | tell.the.input.system.to.create. |
| 26c0 | 63 6f 6e 74 72 6f 6c 73 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 2f 2f 20 66 6f 72 20 74 68 65 | controls......///.....//.for.the |
| 26e0 | 20 70 75 62 6c 69 63 20 66 69 65 6c 64 73 20 66 6f 75 6e 64 20 69 6e 20 74 68 65 20 73 74 72 75 | .public.fields.found.in.the.stru |
| 2700 | 63 74 2e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 2f 2f 20 41 73 73 | ct.......///......///.....//.Ass |
| 2720 | 75 6d 65 20 61 20 31 36 62 69 74 20 66 69 65 6c 64 20 6f 66 20 62 75 74 74 6f 6e 73 2e 20 43 72 | ume.a.16bit.field.of.buttons..Cr |
| 2740 | 65 61 74 65 20 6f 6e 65 20 62 75 74 74 6f 6e 20 74 68 61 74 20 69 73 20 74 69 65 64 20 74 6f 0d | eate.one.button.that.is.tied.to. |
| 2760 | 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 2f 2f 20 62 69 74 20 23 33 20 28 7a 65 72 6f 2d 62 61 73 | .....///.....//.bit.#3.(zero-bas |
| 2780 | 65 64 29 2e 20 4e 6f 74 65 20 74 68 61 74 20 62 75 74 74 6f 6e 73 20 64 6f 20 6e 6f 74 20 6e 65 | ed)..Note.that.buttons.do.not.ne |
| 27a0 | 65 64 20 74 6f 20 62 65 20 73 74 6f 72 65 64 20 61 73 20 62 69 74 73 2e 0d 0a 20 20 20 20 2f 2f | ed.to.be.stored.as.bits.......// |
| 27c0 | 2f 20 20 20 20 20 2f 2f 20 54 68 65 79 20 63 61 6e 20 61 6c 73 6f 20 62 65 20 73 74 6f 72 65 64 | /.....//.They.can.also.be.stored |
| 27e0 | 20 61 73 20 66 6c 6f 61 74 73 20 6f 72 20 73 68 6f 72 74 73 2c 20 66 6f 72 20 65 78 61 6d 70 6c | .as.floats.or.shorts,.for.exampl |
| 2800 | 65 2e 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 5b 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 28 6e 61 | e.......///.....[InputControl(na |
| 2820 | 6d 65 20 3d 20 22 62 75 74 74 6f 6e 22 2c 20 6c 61 79 6f 75 74 20 3d 20 22 42 75 74 74 6f 6e 22 | me.=."button",.layout.=."Button" |
| 2840 | 2c 20 62 69 74 20 3d 20 33 29 5d 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 70 75 62 6c 69 63 20 | ,.bit.=.3)]......///.....public. |
| 2860 | 75 73 68 6f 72 74 20 62 75 74 74 6f 6e 73 3b 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f | ushort.buttons;......///......// |
| 2880 | 2f 20 20 20 20 20 2f 2f 20 43 72 65 61 74 65 20 61 20 66 6c 6f 61 74 69 6e 67 2d 70 6f 69 6e 74 | /.....//.Create.a.floating-point |
| 28a0 | 20 61 78 69 73 2e 20 54 68 65 20 6e 61 6d 65 2c 20 69 66 20 6e 6f 74 20 73 75 70 70 6c 69 65 64 | .axis..The.name,.if.not.supplied |
| 28c0 | 2c 20 69 73 20 74 61 6b 65 6e 20 66 72 6f 6d 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 2f 2f 20 | ,.is.taken.from......///.....//. |
| 28e0 | 74 68 65 20 66 69 65 6c 64 2e 0d 0a 20 20 20 20 2f 2f 2f 20 20 20 20 20 5b 49 6e 70 75 74 43 6f | the.field.......///.....[InputCo |
| 2900 | 6e 74 72 6f 6c 28 6c 61 79 6f 75 74 20 3d 20 22 41 78 69 73 22 29 5d 0d 0a 20 20 20 20 2f 2f 2f | ntrol(layout.=."Axis")]....../// |
| 2920 | 20 20 20 20 20 70 75 62 6c 69 63 20 73 68 6f 72 74 20 61 78 69 73 3b 0d 0a 20 20 20 20 2f 2f 2f | .....public.short.axis;....../// |
| 2940 | 20 7d 0d 0a 20 20 20 20 2f 2f 2f 20 3c 2f 63 6f 64 65 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 2f 65 | .}......///.</code>......///.</e |
| 2960 | 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 44 65 76 69 63 65 | xample>......///......///.Device |
| 2980 | 73 20 63 61 6e 20 68 61 76 65 20 75 73 61 67 65 73 20 6c 69 6b 65 20 61 6e 79 20 6f 74 68 65 72 | s.can.have.usages.like.any.other |
| 29a0 | 20 63 6f 6e 74 72 6f 6c 20 28 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 43 6f 6e 74 72 6f | .control.(<see.cref="InputContro |
| 29c0 | 6c 2e 75 73 61 67 65 73 22 2f 3e 29 2e 20 55 6e 6c 69 6b 65 20 6f 74 68 65 72 20 63 6f 6e 74 72 | l.usages"/>)..Unlike.other.contr |
| 29e0 | 6f 6c 73 2c 0d 0a 20 20 20 20 2f 2f 2f 20 68 6f 77 65 76 65 72 2c 20 75 73 61 67 65 73 20 6f 66 | ols,......///.however,.usages.of |
| 2a00 | 20 49 6e 70 75 74 44 65 76 69 63 65 73 20 61 72 65 20 61 6c 6c 6f 77 65 64 20 74 6f 20 62 65 20 | .InputDevices.are.allowed.to.be. |
| 2a20 | 63 68 61 6e 67 65 64 20 6f 6e 20 74 68 65 20 66 6c 79 20 77 69 74 68 6f 75 74 20 72 65 71 75 69 | changed.on.the.fly.without.requi |
| 2a40 | 72 69 6e 67 20 61 20 63 68 61 6e 67 65 20 74 6f 20 74 68 65 0d 0a 20 20 20 20 2f 2f 2f 20 64 65 | ring.a.change.to.the......///.de |
| 2a60 | 76 69 63 65 20 6c 61 79 6f 75 74 20 28 73 65 65 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 | vice.layout.(see.<see.cref="Inpu |
| 2a80 | 74 53 79 73 74 65 6d 2e 53 65 74 44 65 76 69 63 65 55 73 61 67 65 28 49 6e 70 75 74 44 65 76 69 | tSystem.SetDeviceUsage(InputDevi |
| 2aa0 | 63 65 2c 73 74 72 69 6e 67 29 22 2f 3e 29 2e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f | ce,string)"/>).......///......// |
| 2ac0 | 2f 20 46 6f 72 20 61 20 6d 6f 72 65 20 63 6f 6d 70 6c 65 74 65 20 65 78 61 6d 70 6c 65 20 6f 66 | /.For.a.more.complete.example.of |
| 2ae0 | 20 68 6f 77 20 74 6f 20 69 6d 70 6c 65 6d 65 6e 74 20 63 75 73 74 6f 6d 20 69 6e 70 75 74 20 64 | .how.to.implement.custom.input.d |
| 2b00 | 65 76 69 63 65 73 2c 20 63 68 65 63 6b 20 6f 75 74 20 74 68 65 20 22 43 75 73 74 6f 6d 20 44 65 | evices,.check.out.the."Custom.De |
| 2b20 | 76 69 63 65 22 0d 0a 20 20 20 20 2f 2f 2f 20 73 61 6d 70 6c 65 20 77 68 69 63 68 20 79 6f 75 20 | vice"......///.sample.which.you. |
| 2b40 | 63 61 6e 20 69 6e 73 74 61 6c 6c 20 66 72 6f 6d 20 74 68 65 20 55 6e 69 74 79 20 70 61 63 6b 61 | can.install.from.the.Unity.packa |
| 2b60 | 67 65 20 6d 61 6e 61 67 65 72 2e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 41 6e | ge.manager.......///......///.An |
| 2b80 | 64 2c 20 61 73 20 61 6c 77 61 79 73 2c 20 79 6f 75 20 63 61 6e 20 61 6c 73 6f 20 66 69 6e 64 20 | d,.as.always,.you.can.also.find. |
| 2ba0 | 6d 6f 72 65 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 69 6e 20 74 68 65 20 3c 61 20 68 72 65 66 3d | more.information.in.the.<a.href= |
| 2bc0 | 22 2e 2e 2f 6d 61 6e 75 61 6c 2f 44 65 76 69 63 65 73 2e 68 74 6d 6c 22 3e 6d 61 6e 75 61 6c 3c | "../manual/Devices.html">manual< |
| 2be0 | 2f 61 3e 2e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 2f 2f | /a>.......///.</remarks>......// |
| 2c00 | 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 22 2f 3e | /.<seealso.cref="InputControl"/> |
| 2c20 | 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 4d 6f 75 73 65 22 2f | ......///.<seealso.cref="Mouse"/ |
| 2c40 | 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 4b 65 79 62 6f 61 | >......///.<seealso.cref="Keyboa |
| 2c60 | 72 64 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 47 61 | rd"/>......///.<seealso.cref="Ga |
| 2c80 | 6d 65 70 61 64 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 | mepad"/>......///.<seealso.cref= |
| 2ca0 | 22 54 6f 75 63 68 73 63 72 65 65 6e 22 2f 3e 0d 0a 20 20 20 20 5b 53 63 72 69 70 74 69 6e 67 2e | "Touchscreen"/>......[Scripting. |
| 2cc0 | 50 72 65 73 65 72 76 65 5d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 63 6c 61 73 73 20 49 6e 70 75 | Preserve]......public.class.Inpu |
| 2ce0 | 74 44 65 76 69 63 65 20 3a 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 0d 0a 20 20 20 20 7b 0d 0a 20 | tDevice.:.InputControl......{... |
| 2d00 | 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f | .......///.<summary>..........// |
| 2d20 | 2f 20 56 61 6c 75 65 20 6f 66 20 61 6e 20 69 6e 76 61 6c 69 64 20 3c 73 65 65 20 63 72 65 66 3d | /.Value.of.an.invalid.<see.cref= |
| 2d40 | 22 64 65 76 69 63 65 49 64 22 2f 3e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d | "deviceId"/>...........///.</sum |
| 2d60 | 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 | mary>..........///.<remarks>.... |
| 2d80 | 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 69 6e 70 75 74 20 73 79 73 74 65 6d 20 77 69 6c 6c 20 | ......///.The.input.system.will. |
| 2da0 | 6e 6f 74 20 61 73 73 69 67 6e 65 64 20 74 68 69 73 20 49 44 20 74 6f 20 61 6e 79 20 64 65 76 69 | not.assigned.this.ID.to.any.devi |
| 2dc0 | 63 65 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 | ce...........///.</remarks>..... |
| 2de0 | 20 20 20 20 20 70 75 62 6c 69 63 20 63 6f 6e 73 74 20 69 6e 74 20 49 6e 76 61 6c 69 64 44 65 76 | .....public.const.int.InvalidDev |
| 2e00 | 69 63 65 49 64 20 3d 20 30 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 63 | iceId.=.0;............internal.c |
| 2e20 | 6f 6e 73 74 20 69 6e 74 20 6b 4c 6f 63 61 6c 50 61 72 74 69 63 69 70 61 6e 74 49 64 20 3d 20 30 | onst.int.kLocalParticipantId.=.0 |
| 2e40 | 3b 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 63 6f 6e 73 74 20 69 6e 74 20 6b 49 | ;..........internal.const.int.kI |
| 2e60 | 6e 76 61 6c 69 64 44 65 76 69 63 65 49 6e 64 65 78 20 3d 20 2d 31 3b 0d 0a 0d 0a 20 20 20 20 20 | nvalidDeviceIndex.=.-1;......... |
| 2e80 | 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 4d 65 | ...///.<summary>..........///.Me |
| 2ea0 | 74 61 64 61 74 61 20 64 65 73 63 72 69 62 69 6e 67 20 74 68 65 20 64 65 76 69 63 65 20 28 70 72 | tadata.describing.the.device.(pr |
| 2ec0 | 6f 64 75 63 74 20 6e 61 6d 65 20 65 74 63 2e 29 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c | oduct.name.etc.)...........///.< |
| 2ee0 | 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e | /summary>..........///.<remarks> |
| 2f00 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 64 65 73 63 72 69 70 74 69 6f 6e 20 6f 66 | ..........///.The.description.of |
| 2f20 | 20 61 20 64 65 76 69 63 65 20 69 73 20 75 6e 63 68 61 6e 67 69 6e 67 20 6f 76 65 72 20 69 74 73 | .a.device.is.unchanging.over.its |
| 2f40 | 20 6c 69 66 65 74 69 6d 65 20 61 6e 64 20 64 6f 65 73 20 6e 6f 74 0d 0a 20 20 20 20 20 20 20 20 | .lifetime.and.does.not.......... |
| 2f60 | 2f 2f 2f 20 63 6f 6d 70 72 69 73 65 20 64 61 74 61 20 61 62 6f 75 74 20 61 20 64 65 76 69 63 65 | ///.comprise.data.about.a.device |
| 2f80 | 27 73 20 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e 20 28 77 68 69 63 68 20 69 73 20 63 6f 6e 73 69 | 's.configuration.(which.is.consi |
| 2fa0 | 64 65 72 65 64 20 6d 75 74 61 62 6c 65 29 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 | dered.mutable)...........///.... |
| 2fc0 | 20 20 20 20 20 20 2f 2f 2f 20 49 6e 20 6d 6f 73 74 20 63 61 73 65 73 2c 20 74 68 65 20 64 65 73 | ......///.In.most.cases,.the.des |
| 2fe0 | 63 72 69 70 74 69 6f 6e 20 66 6f 72 20 61 20 64 65 76 69 63 65 20 69 73 20 73 75 70 70 6c 69 65 | cription.for.a.device.is.supplie |
| 3000 | 64 20 62 79 20 74 68 65 20 55 6e 69 74 79 20 72 75 6e 74 69 6d 65 2e 0d 0a 20 20 20 20 20 20 20 | d.by.the.Unity.runtime.......... |
| 3020 | 20 2f 2f 2f 20 54 68 69 73 20 69 74 20 74 68 65 20 63 61 73 65 20 66 6f 72 20 61 6c 6c 20 3c 73 | .///.This.it.the.case.for.all.<s |
| 3040 | 65 65 20 63 72 65 66 3d 22 6e 61 74 69 76 65 22 2f 3e 20 69 6e 70 75 74 20 64 65 76 69 63 65 73 | ee.cref="native"/>.input.devices |
| 3060 | 2e 20 48 6f 77 65 76 65 72 2c 20 69 74 20 69 73 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 6c | ..However,.it.is..........///.al |
| 3080 | 73 6f 20 70 6f 73 73 69 62 6c 65 20 74 6f 20 69 6e 6a 65 63 74 20 6e 65 77 20 64 65 76 69 63 65 | so.possible.to.inject.new.device |
| 30a0 | 73 20 69 6e 20 74 68 65 20 66 6f 72 6d 20 6f 66 20 64 65 76 69 63 65 20 64 65 73 63 72 69 70 74 | s.in.the.form.of.device.descript |
| 30c0 | 69 6f 6e 73 20 69 6e 74 6f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 68 65 20 73 79 73 74 65 | ions.into..........///.the.syste |
| 30e0 | 6d 20 75 73 69 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 | m.using.<see.cref="InputSystem.A |
| 3100 | 64 64 44 65 76 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 | ddDevice(InputDeviceDescription) |
| 3120 | 22 2f 3e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 | "/>...........///..........///.T |
| 3140 | 68 65 20 64 65 73 63 72 69 70 74 69 6f 6e 20 6f 66 20 61 20 64 65 76 69 63 65 20 69 73 20 77 68 | he.description.of.a.device.is.wh |
| 3160 | 61 74 20 69 73 20 6d 61 74 63 68 65 64 20 62 79 20 61 6e 20 3c 73 65 65 20 63 72 65 66 3d 22 49 | at.is.matched.by.an.<see.cref="I |
| 3180 | 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 20 20 20 20 2f 2f | nputDeviceMatcher"/>..........// |
| 31a0 | 2f 20 74 6f 20 66 69 6e 64 20 74 68 65 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 43 6f | /.to.find.the.<see.cref="InputCo |
| 31c0 | 6e 74 72 6f 6c 2e 6c 61 79 6f 75 74 22 2f 3e 20 74 6f 20 75 73 65 20 66 6f 72 20 61 20 64 65 76 | ntrol.layout"/>.to.use.for.a.dev |
| 31e0 | 69 63 65 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 | ice...........///.</remarks>.... |
| 3200 | 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 6e 70 75 74 44 65 76 69 63 65 44 65 73 63 72 69 70 74 | ......public.InputDeviceDescript |
| 3220 | 69 6f 6e 20 64 65 73 63 72 69 70 74 69 6f 6e 20 3d 3e 20 6d 5f 44 65 73 63 72 69 70 74 69 6f 6e | ion.description.=>.m_Description |
| 3240 | 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 20 | ;............///.<summary>...... |
| 3260 | 20 20 20 20 2f 2f 2f 20 57 68 65 74 68 65 72 20 74 68 65 20 64 65 76 69 63 65 20 69 73 20 63 75 | ....///.Whether.the.device.is.cu |
| 3280 | 72 72 65 6e 74 6c 79 20 65 6e 61 62 6c 65 64 20 28 69 2e 65 2e 20 73 65 6e 64 73 20 61 6e 64 20 | rrently.enabled.(i.e..sends.and. |
| 32a0 | 72 65 63 65 69 76 65 73 20 65 76 65 6e 74 73 29 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c | receives.events)...........///.< |
| 32c0 | 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e | /summary>..........///.<remarks> |
| 32e0 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 41 20 64 65 76 69 63 65 20 74 68 61 74 20 69 73 20 64 | ..........///.A.device.that.is.d |
| 3300 | 69 73 61 62 6c 65 64 20 77 69 6c 6c 20 6e 6f 74 20 72 65 63 65 69 76 65 20 65 76 65 6e 74 73 2e | isabled.will.not.receive.events. |
| 3320 | 20 49 2e 65 2e 20 65 76 65 6e 74 73 20 74 68 61 74 20 61 72 65 20 62 65 69 6e 67 20 73 65 6e 74 | .I.e..events.that.are.being.sent |
| 3340 | 20 74 6f 20 74 68 65 20 64 65 76 69 63 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 77 69 6c 6c | .to.the.device..........///.will |
| 3360 | 20 62 65 20 69 67 6e 6f 72 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 | .be.ignored...........///....... |
| 3380 | 20 20 20 2f 2f 2f 20 57 68 65 6e 20 64 69 73 61 62 6c 69 6e 67 20 61 20 3c 73 65 65 20 63 72 65 | ...///.When.disabling.a.<see.cre |
| 33a0 | 66 3d 22 6e 61 74 69 76 65 22 2f 3e 20 64 65 76 69 63 65 2c 20 61 20 3c 73 65 65 20 63 72 65 66 | f="native"/>.device,.a.<see.cref |
| 33c0 | 3d 22 44 69 73 61 62 6c 65 44 65 76 69 63 65 43 6f 6d 6d 61 6e 64 22 3e 64 69 73 61 62 6c 65 20 | ="DisableDeviceCommand">disable. |
| 33e0 | 63 6f 6d 6d 61 6e 64 3c 2f 73 65 65 3e 20 77 69 6c 6c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | command</see>.will..........///. |
| 3400 | 61 6c 73 6f 20 62 65 20 73 65 6e 74 20 74 6f 20 74 68 65 20 3c 73 65 65 20 63 72 65 66 3d 22 49 | also.be.sent.to.the.<see.cref="I |
| 3420 | 49 6e 70 75 74 52 75 6e 74 69 6d 65 22 3e 72 75 6e 74 69 6d 65 3c 2f 73 65 65 3e 2e 20 49 74 20 | InputRuntime">runtime</see>..It. |
| 3440 | 64 65 70 65 6e 64 73 20 6f 6e 20 74 68 65 20 73 70 65 63 69 66 69 63 20 72 75 6e 74 69 6d 65 20 | depends.on.the.specific.runtime. |
| 3460 | 77 68 65 74 68 65 72 20 74 68 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 64 65 76 69 63 65 20 | whether.the..........///.device. |
| 3480 | 63 6f 6d 6d 61 6e 64 20 69 73 20 73 75 70 70 6f 72 74 65 64 20 62 75 74 20 69 66 20 69 74 20 69 | command.is.supported.but.if.it.i |
| 34a0 | 73 2c 20 74 68 65 20 64 65 76 69 63 65 20 77 69 6c 6c 20 62 65 20 64 69 73 61 62 6c 65 64 20 69 | s,.the.device.will.be.disabled.i |
| 34c0 | 6e 20 74 68 65 20 72 75 6e 74 69 6d 65 20 61 6e 64 20 6e 6f 20 6c 6f 6e 67 65 72 20 73 65 6e 64 | n.the.runtime.and.no.longer.send |
| 34e0 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 65 76 65 6e 74 73 2e 20 54 68 69 73 20 69 73 20 65 73 | ..........///.events..This.is.es |
| 3500 | 70 65 63 69 61 6c 6c 79 20 69 6d 70 6f 72 74 61 6e 74 20 66 6f 72 20 64 65 76 69 63 65 73 20 73 | pecially.important.for.devices.s |
| 3520 | 75 63 68 20 61 73 20 3c 73 65 65 20 63 72 65 66 3d 22 53 65 6e 73 6f 72 22 3e 73 65 6e 73 6f 72 | uch.as.<see.cref="Sensor">sensor |
| 3540 | 73 3c 2f 73 65 65 3e 20 74 68 61 74 20 69 6e 63 75 72 20 62 6f 74 68 0d 0a 20 20 20 20 20 20 20 | s</see>.that.incur.both......... |
| 3560 | 20 2f 2f 2f 20 63 6f 6d 70 75 74 61 74 69 6f 6e 20 61 6e 64 20 62 61 74 74 65 72 79 20 63 6f 6e | .///.computation.and.battery.con |
| 3580 | 73 75 6d 70 74 69 6f 6e 20 6f 76 65 72 68 65 61 64 20 77 68 69 6c 65 20 65 6e 61 62 6c 65 64 2e | sumption.overhead.while.enabled. |
| 35a0 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 53 70 65 63 69 | ..........///..........///.Speci |
| 35c0 | 66 69 63 20 74 79 70 65 73 20 6f 66 20 64 65 76 69 63 65 73 20 63 61 6e 20 63 68 6f 6f 73 65 20 | fic.types.of.devices.can.choose. |
| 35e0 | 74 6f 20 73 74 61 72 74 20 6f 75 74 20 69 6e 20 64 69 73 61 62 6c 65 64 20 73 74 61 74 65 20 62 | to.start.out.in.disabled.state.b |
| 3600 | 79 20 64 65 66 61 75 6c 74 2e 20 54 68 69 73 20 69 73 20 67 65 6e 65 72 61 6c 6c 79 20 74 68 65 | y.default..This.is.generally.the |
| 3620 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 63 61 73 65 20 66 6f 72 20 3c 73 65 65 20 63 72 65 66 | ..........///.case.for.<see.cref |
| 3640 | 3d 22 53 65 6e 73 6f 72 22 3e 73 65 6e 73 6f 72 73 3c 2f 73 65 65 3e 20 74 6f 20 65 6e 73 75 72 | ="Sensor">sensors</see>.to.ensur |
| 3660 | 65 20 74 68 61 74 20 74 68 65 69 72 20 6f 76 65 72 68 65 61 64 20 69 73 20 6f 6e 6c 79 20 69 6e | e.that.their.overhead.is.only.in |
| 3680 | 63 75 72 72 65 64 20 77 68 65 6e 20 61 63 74 75 61 6c 6c 79 0d 0a 20 20 20 20 20 20 20 20 2f 2f | curred.when.actually..........// |
| 36a0 | 2f 20 62 65 69 6e 67 20 75 73 65 64 20 62 79 20 74 68 65 20 61 70 70 6c 69 63 61 74 69 6f 6e 2e | /.being.used.by.the.application. |
| 36c0 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 | ..........///.</remarks>........ |
| 36e0 | 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 53 79 73 74 65 6d | ..///.<seealso.cref="InputSystem |
| 3700 | 2e 45 6e 61 62 6c 65 44 65 76 69 63 65 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 | .EnableDevice"/>..........///.<s |
| 3720 | 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 53 79 73 74 65 6d 2e 44 69 73 61 62 6c 65 | eealso.cref="InputSystem.Disable |
| 3740 | 44 65 76 69 63 65 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 65 | Device"/>..........public.bool.e |
| 3760 | 6e 61 62 6c 65 64 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 | nabled..........{..............g |
| 3780 | 65 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | et..............{............... |
| 37a0 | 20 20 20 2f 2f 20 46 65 74 63 68 20 73 74 61 74 65 20 66 72 6f 6d 20 72 75 6e 74 69 6d 65 2c 20 | ...//.Fetch.state.from.runtime,. |
| 37c0 | 69 66 20 6e 65 63 65 73 73 61 72 79 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 | if.necessary...................i |
| 37e0 | 66 20 28 28 6d 5f 44 65 76 69 63 65 46 6c 61 67 73 20 26 20 44 65 76 69 63 65 46 6c 61 67 73 2e | f.((m_DeviceFlags.&.DeviceFlags. |
| 3800 | 44 69 73 61 62 6c 65 64 53 74 61 74 65 48 61 73 42 65 65 6e 51 75 65 72 69 65 64 29 20 3d 3d 20 | DisabledStateHasBeenQueried).==. |
| 3820 | 30 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 | 0)..................{........... |
| 3840 | 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 6f 6d 6d 61 6e 64 20 3d 20 51 75 65 72 79 45 6e | ...........var.command.=.QueryEn |
| 3860 | 61 62 6c 65 64 53 74 61 74 65 43 6f 6d 6d 61 6e 64 2e 43 72 65 61 74 65 28 29 3b 0d 0a 20 20 20 | abledStateCommand.Create();..... |
| 3880 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 78 65 63 75 74 65 43 6f 6d 6d | .................if.(ExecuteComm |
| 38a0 | 61 6e 64 28 72 65 66 20 63 6f 6d 6d 61 6e 64 29 20 3e 3d 20 30 29 0d 0a 20 20 20 20 20 20 20 20 | and(ref.command).>=.0).......... |
| 38c0 | 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 20 | ............{................... |
| 38e0 | 20 20 20 20 20 20 20 69 66 20 28 63 6f 6d 6d 61 6e 64 2e 69 73 45 6e 61 62 6c 65 64 29 0d 0a 20 | .......if.(command.isEnabled)... |
| 3900 | 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 6d 5f 44 65 76 | ...........................m_Dev |
| 3920 | 69 63 65 46 6c 61 67 73 20 26 3d 20 7e 44 65 76 69 63 65 46 6c 61 67 73 2e 44 69 73 61 62 6c 65 | iceFlags.&=.~DeviceFlags.Disable |
| 3940 | 64 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 | d;..........................else |
| 3960 | 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 6d 5f | ..............................m_ |
| 3980 | 44 65 76 69 63 65 46 6c 61 67 73 20 7c 3d 20 44 65 76 69 63 65 46 6c 61 67 73 2e 44 69 73 61 62 | DeviceFlags.|=.DeviceFlags.Disab |
| 39a0 | 6c 65 64 3b 0d 0a 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 | led;......................}..... |
| 39c0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0d 0a 20 20 20 20 20 20 20 20 20 | .................else........... |
| 39e0 | 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ...........{.................... |
| 3a00 | 20 20 20 20 20 20 2f 2f 20 57 65 20 67 6f 74 20 6e 6f 20 72 65 73 70 6f 6e 73 65 20 6f 6e 20 74 | ......//.We.got.no.response.on.t |
| 3a20 | 68 65 20 65 6e 61 62 6c 65 2f 64 69 73 61 62 6c 65 20 73 74 61 74 65 2e 20 41 73 73 75 6d 65 20 | he.enable/disable.state..Assume. |
| 3a40 | 64 65 76 69 63 65 20 69 73 20 65 6e 61 62 6c 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | device.is.enabled............... |
| 3a60 | 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 44 65 76 69 63 65 46 6c 61 67 73 20 26 3d 20 7e 44 65 | ............m_DeviceFlags.&=.~De |
| 3a80 | 76 69 63 65 46 6c 61 67 73 2e 44 69 73 61 62 6c 65 64 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | viceFlags.Disabled;............. |
| 3aa0 | 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 20 20 20 20 20 | .........}...................... |
| 3ac0 | 20 20 2f 2f 20 4f 6e 6c 79 20 66 65 74 63 68 20 65 6e 61 62 6c 65 2f 64 69 73 61 62 6c 65 20 73 | ..//.Only.fetch.enable/disable.s |
| 3ae0 | 74 61 74 65 20 61 67 61 69 6e 20 69 66 20 77 65 20 67 65 74 20 61 20 63 6f 6e 66 69 67 75 72 61 | tate.again.if.we.get.a.configura |
| 3b00 | 74 69 6f 6e 20 63 68 61 6e 67 65 20 65 76 65 6e 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | tion.change.event............... |
| 3b20 | 20 20 20 20 20 20 20 20 6d 5f 44 65 76 69 63 65 46 6c 61 67 73 20 7c 3d 20 44 65 76 69 63 65 46 | ........m_DeviceFlags.|=.DeviceF |
| 3b40 | 6c 61 67 73 2e 44 69 73 61 62 6c 65 64 53 74 61 74 65 48 61 73 42 65 65 6e 51 75 65 72 69 65 64 | lags.DisabledStateHasBeenQueried |
| 3b60 | 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 20 20 20 20 20 20 | ;..................}............ |
| 3b80 | 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 28 6d 5f 44 65 76 69 63 65 46 6c 61 67 73 20 26 20 | ........return.(m_DeviceFlags.&. |
| 3ba0 | 44 65 76 69 63 65 46 6c 61 67 73 2e 44 69 73 61 62 6c 65 64 29 20 21 3d 20 44 65 76 69 63 65 46 | DeviceFlags.Disabled).!=.DeviceF |
| 3bc0 | 6c 61 67 73 2e 44 69 73 61 62 6c 65 64 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 | lags.Disabled;..............}... |
| 3be0 | 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 2f 54 4f 44 4f 3a 20 72 65 | .......}............////TODO:.re |
| 3c00 | 6e 61 6d 65 20 74 68 69 73 20 74 6f 20 63 61 6e 52 65 63 65 69 76 65 49 6e 70 75 74 49 6e 42 61 | name.this.to.canReceiveInputInBa |
| 3c20 | 63 6b 67 72 6f 75 6e 64 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d | ckground..........///.<summary>. |
| 3c40 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 66 20 74 72 75 65 2c 20 74 68 65 20 64 65 76 69 63 65 | .........///.If.true,.the.device |
| 3c60 | 20 69 73 20 63 61 70 61 62 6c 65 20 6f 66 20 64 65 6c 69 76 65 72 69 6e 67 20 69 6e 70 75 74 20 | .is.capable.of.delivering.input. |
| 3c80 | 77 68 69 6c 65 20 74 68 65 20 61 70 70 6c 69 63 61 74 69 6f 6e 20 69 73 20 72 75 6e 6e 69 6e 67 | while.the.application.is.running |
| 3ca0 | 20 69 6e 20 74 68 65 20 62 61 63 6b 67 72 6f 75 6e 64 2c 20 69 2e 65 2e 0d 0a 20 20 20 20 20 20 | .in.the.background,.i.e......... |
| 3cc0 | 20 20 2f 2f 2f 20 77 68 69 6c 65 20 3c 63 3e 41 70 70 6c 69 63 61 74 69 6f 6e 2e 69 73 46 6f 63 | ..///.while.<c>Application.isFoc |
| 3ce0 | 75 73 65 64 3c 2f 63 3e 20 69 73 20 66 61 6c 73 65 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | used</c>.is.false...........///. |
| 3d00 | 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 57 | </summary>..........///.<value>W |
| 3d20 | 68 65 74 68 65 72 20 74 68 65 20 64 65 76 69 63 65 20 63 61 6e 20 67 65 6e 65 72 61 74 65 20 69 | hether.the.device.can.generate.i |
| 3d40 | 6e 70 75 74 20 77 68 69 6c 65 20 69 6e 20 74 68 65 20 62 61 63 6b 67 72 6f 75 6e 64 2e 3c 2f 76 | nput.while.in.the.background.</v |
| 3d60 | 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 | alue>..........///.<remarks>.... |
| 3d80 | 20 20 20 20 20 20 2f 2f 2f 20 4e 6f 74 65 20 74 68 61 74 20 70 72 6f 63 65 73 73 69 6e 67 20 69 | ......///.Note.that.processing.i |
| 3da0 | 6e 70 75 74 20 69 6e 20 74 68 65 20 62 61 63 6b 67 72 6f 75 6e 64 20 72 65 71 75 69 72 65 73 20 | nput.in.the.background.requires. |
| 3dc0 | 3c 63 3e 41 70 70 6c 69 63 61 74 69 6f 6e 2e 72 75 6e 49 6e 42 61 63 6b 67 72 6f 75 6e 64 3c 2f | <c>Application.runInBackground</ |
| 3de0 | 63 3e 20 74 6f 20 62 65 20 65 6e 61 62 6c 65 64 20 69 6e 20 74 68 65 0d 0a 20 20 20 20 20 20 20 | c>.to.be.enabled.in.the......... |
| 3e00 | 20 2f 2f 2f 20 70 6c 61 79 65 72 20 70 72 65 66 65 72 65 6e 63 65 73 2e 20 49 66 20 74 68 69 73 | .///.player.preferences..If.this |
| 3e20 | 20 69 73 20 65 6e 61 62 6c 65 64 2c 20 74 68 65 20 69 6e 70 75 74 20 73 79 73 74 65 6d 20 77 69 | .is.enabled,.the.input.system.wi |
| 3e40 | 6c 6c 20 6b 65 65 70 20 72 75 6e 6e 69 6e 67 20 62 79 20 76 69 72 74 75 65 20 6f 66 20 62 65 69 | ll.keep.running.by.virtue.of.bei |
| 3e60 | 6e 67 20 70 61 72 74 20 6f 66 20 74 68 65 20 55 6e 69 74 79 0d 0a 20 20 20 20 20 20 20 20 2f 2f | ng.part.of.the.Unity..........// |
| 3e80 | 2f 20 70 6c 61 79 65 72 20 6c 6f 6f 70 20 77 68 69 63 68 20 77 69 6c 6c 20 6b 65 65 70 20 72 75 | /.player.loop.which.will.keep.ru |
| 3ea0 | 6e 6e 69 6e 67 20 69 6e 20 74 68 65 20 62 61 63 6b 67 72 6f 75 6e 64 2e 20 4e 6f 74 65 2c 20 68 | nning.in.the.background..Note,.h |
| 3ec0 | 6f 77 65 76 65 72 2c 20 74 68 61 74 20 74 68 69 73 20 64 6f 65 73 20 6e 6f 74 20 6e 65 63 65 73 | owever,.that.this.does.not.neces |
| 3ee0 | 73 61 72 69 6c 79 20 6d 65 61 6e 20 74 68 61 74 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 68 | sarily.mean.that..........///.th |
| 3f00 | 65 20 61 70 70 6c 69 63 61 74 69 6f 6e 20 77 69 6c 6c 20 6e 65 63 65 73 73 61 72 69 6c 79 20 72 | e.application.will.necessarily.r |
| 3f20 | 65 63 65 69 76 65 20 69 6e 70 75 74 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 | eceive.input...........///...... |
| 3f40 | 20 20 20 20 2f 2f 2f 20 4f 6e 6c 79 20 61 20 73 65 6c 65 63 74 20 73 65 74 20 6f 66 20 68 61 72 | ....///.Only.a.select.set.of.har |
| 3f60 | 64 77 61 72 65 2c 20 70 6c 61 74 66 6f 72 6d 2c 20 61 6e 64 20 53 44 4b 2f 41 50 49 20 63 6f 6d | dware,.platform,.and.SDK/API.com |
| 3f80 | 62 69 6e 61 74 69 6f 6e 73 20 73 75 70 70 6f 72 74 20 67 61 74 68 65 72 69 6e 67 20 69 6e 70 75 | binations.support.gathering.inpu |
| 3fa0 | 74 20 77 68 69 6c 65 20 6e 6f 74 20 68 61 76 69 6e 67 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | t.while.not.having..........///. |
| 3fc0 | 69 6e 70 75 74 20 66 6f 63 75 73 2e 20 54 68 65 20 6d 6f 73 74 20 6e 6f 74 61 62 6c 65 20 73 65 | input.focus..The.most.notable.se |
| 3fe0 | 74 20 6f 66 20 64 65 76 69 63 65 73 20 61 72 65 20 48 4d 44 73 20 61 6e 64 20 56 52 20 63 6f 6e | t.of.devices.are.HMDs.and.VR.con |
| 4000 | 74 72 6f 6c 6c 65 72 73 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 | trollers...........///.......... |
| 4020 | 2f 2f 2f 20 54 68 65 20 76 61 6c 75 65 20 6f 66 20 74 68 69 73 20 70 72 6f 70 65 72 74 79 20 69 | ///.The.value.of.this.property.i |
| 4040 | 73 20 64 65 74 65 72 6d 69 6e 65 64 20 62 79 20 73 65 6e 64 69 6e 67 20 3c 73 65 65 20 63 72 65 | s.determined.by.sending.<see.cre |
| 4060 | 66 3d 22 51 75 65 72 79 43 61 6e 52 75 6e 49 6e 42 61 63 6b 67 72 6f 75 6e 64 22 2f 3e 20 74 6f | f="QueryCanRunInBackground"/>.to |
| 4080 | 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 72 65 6d 61 | .the.device...........///.</rema |
| 40a0 | 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 63 61 6e 52 75 6e | rks>..........public.bool.canRun |
| 40c0 | 49 6e 42 61 63 6b 67 72 6f 75 6e 64 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 | InBackground..........{......... |
| 40e0 | 20 20 20 20 20 67 65 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 | .....get..............{......... |
| 4100 | 20 20 20 20 20 20 20 20 20 76 61 72 20 63 6f 6d 6d 61 6e 64 20 3d 20 51 75 65 72 79 43 61 6e 52 | .........var.command.=.QueryCanR |
| 4120 | 75 6e 49 6e 42 61 63 6b 67 72 6f 75 6e 64 2e 43 72 65 61 74 65 28 29 3b 0d 0a 20 20 20 20 20 20 | unInBackground.Create();........ |
| 4140 | 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 78 65 63 75 74 65 43 6f 6d 6d 61 6e 64 28 72 65 66 | ..........if.(ExecuteCommand(ref |
| 4160 | 20 63 6f 6d 6d 61 6e 64 29 20 3e 3d 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .command).>=.0)................. |
| 4180 | 20 20 20 20 20 72 65 74 75 72 6e 20 63 6f 6d 6d 61 6e 64 2e 63 61 6e 52 75 6e 49 6e 42 61 63 6b | .....return.command.canRunInBack |
| 41a0 | 67 72 6f 75 6e 64 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 | ground;..................return. |
| 41c0 | 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d | false;..............}..........} |
| 41e0 | 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>....... |
| 4200 | 20 20 20 2f 2f 2f 20 57 68 65 74 68 65 72 20 74 68 65 20 64 65 76 69 63 65 20 68 61 73 20 62 65 | ...///.Whether.the.device.has.be |
| 4220 | 65 6e 20 61 64 64 65 64 20 74 6f 20 74 68 65 20 73 79 73 74 65 6d 2e 0d 0a 20 20 20 20 20 20 20 | en.added.to.the.system.......... |
| 4240 | 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 61 | .///.</summary>..........///.<va |
| 4260 | 6c 75 65 3e 49 66 20 74 72 75 65 2c 20 74 68 65 20 64 65 76 69 63 65 20 69 73 20 63 75 72 72 65 | lue>If.true,.the.device.is.curre |
| 4280 | 6e 74 6c 79 20 61 6d 6f 6e 67 20 74 68 65 20 64 65 76 69 63 65 73 20 69 6e 20 3c 73 65 65 20 63 | ntly.among.the.devices.in.<see.c |
| 42a0 | 72 65 66 3d 22 49 6e 70 75 74 53 79 73 74 65 6d 2e 64 65 76 69 63 65 73 22 2f 3e 2e 3c 2f 76 61 | ref="InputSystem.devices"/>.</va |
| 42c0 | 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 | lue>..........///.<remarks>..... |
| 42e0 | 20 20 20 20 20 2f 2f 2f 20 44 65 76 69 63 65 73 20 6d 61 79 20 62 65 20 72 65 6d 6f 76 65 64 20 | .....///.Devices.may.be.removed. |
| 4300 | 61 74 20 61 6e 79 20 74 69 6d 65 2e 20 45 69 74 68 65 72 20 77 68 65 6e 20 74 68 65 69 72 20 68 | at.any.time..Either.when.their.h |
| 4320 | 61 72 64 77 61 72 65 20 69 73 20 75 6e 70 6c 75 67 67 65 64 20 6f 72 20 77 68 65 6e 20 74 68 65 | ardware.is.unplugged.or.when.the |
| 4340 | 79 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 72 65 20 6d 61 6e 75 61 6c 6c 79 20 72 65 6d 6f | y..........///.are.manually.remo |
| 4360 | 76 65 64 20 74 68 72 6f 75 67 68 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 53 79 73 74 | ved.through.<see.cref="InputSyst |
| 4380 | 65 6d 2e 52 65 6d 6f 76 65 44 65 76 69 63 65 22 2f 3e 20 6f 72 20 62 79 20 62 65 69 6e 67 20 65 | em.RemoveDevice"/>.or.by.being.e |
| 43a0 | 78 63 6c 75 64 65 64 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 68 72 6f 75 67 68 20 3c 73 65 | xcluded..........///.through.<se |
| 43c0 | 65 20 63 72 65 66 3d 22 49 6e 70 75 74 53 65 74 74 69 6e 67 73 2e 73 75 70 70 6f 72 74 65 64 44 | e.cref="InputSettings.supportedD |
| 43e0 | 65 76 69 63 65 73 22 2f 3e 2e 20 57 68 65 6e 20 61 20 64 65 76 69 63 65 20 69 73 20 72 65 6d 6f | evices"/>..When.a.device.is.remo |
| 4400 | 76 65 64 2c 20 69 74 73 20 69 6e 73 74 61 6e 63 65 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | ved,.its.instance,..........///. |
| 4420 | 68 6f 77 65 76 65 72 2c 20 77 69 6c 6c 20 6e 6f 74 20 64 69 73 61 70 70 65 61 72 2e 20 54 68 69 | however,.will.not.disappear..Thi |
| 4440 | 73 20 70 72 6f 70 65 72 74 79 20 63 61 6e 20 62 65 20 75 73 65 64 20 74 6f 20 63 68 65 63 6b 20 | s.property.can.be.used.to.check. |
| 4460 | 77 68 65 74 68 65 72 20 74 68 65 20 64 65 76 69 63 65 20 69 73 20 70 61 72 74 0d 0a 20 20 20 20 | whether.the.device.is.part...... |
| 4480 | 20 20 20 20 2f 2f 2f 20 6f 66 20 74 68 65 20 63 75 72 72 65 6e 74 20 73 65 74 20 6f 66 20 61 63 | ....///.of.the.current.set.of.ac |
| 44a0 | 74 69 76 65 20 64 65 76 69 63 65 73 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d | tive.devices...........///.</rem |
| 44c0 | 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 |
| 44e0 | 3d 22 49 6e 70 75 74 53 79 73 74 65 6d 2e 64 65 76 69 63 65 73 22 2f 3e 0d 0a 20 20 20 20 20 20 | ="InputSystem.devices"/>........ |
| 4500 | 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 61 64 64 65 64 20 3d 3e 20 6d 5f 44 65 76 69 63 65 49 | ..public.bool.added.=>.m_DeviceI |
| 4520 | 6e 64 65 78 20 21 3d 20 6b 49 6e 76 61 6c 69 64 44 65 76 69 63 65 49 6e 64 65 78 3b 0d 0a 0d 0a | ndex.!=.kInvalidDeviceIndex;.... |
| 4540 | 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>........../ |
| 4560 | 2f 2f 20 57 68 65 74 68 65 72 20 74 68 65 20 64 65 76 69 63 65 20 69 73 20 6d 69 72 72 6f 72 65 | //.Whether.the.device.is.mirrore |
| 4580 | 64 20 66 72 6f 6d 20 61 20 72 65 6d 6f 74 65 20 69 6e 70 75 74 20 73 79 73 74 65 6d 20 61 6e 64 | d.from.a.remote.input.system.and |
| 45a0 | 20 6e 6f 74 20 61 63 74 75 61 6c 6c 79 20 70 72 65 73 65 6e 74 0d 0a 20 20 20 20 20 20 20 20 2f | .not.actually.present........../ |
| 45c0 | 2f 2f 20 61 73 20 61 20 22 72 65 61 6c 22 20 64 65 76 69 63 65 20 69 6e 20 74 68 65 20 6c 6f 63 | //.as.a."real".device.in.the.loc |
| 45e0 | 61 6c 20 73 79 73 74 65 6d 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 | al.system...........///.</summar |
| 4600 | 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 57 68 65 74 68 65 72 20 74 | y>..........///.<value>Whether.t |
| 4620 | 68 65 20 64 65 76 69 63 65 20 6d 69 72 72 6f 72 73 20 61 20 64 65 76 69 63 65 20 66 72 6f 6d 20 | he.device.mirrors.a.device.from. |
| 4640 | 61 20 72 65 6d 6f 74 65 6c 79 20 63 6f 6e 6e 65 63 74 65 64 20 69 6e 70 75 74 20 73 79 73 74 65 | a.remotely.connected.input.syste |
| 4660 | 6d 2e 3c 2f 76 61 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 | m.</value>..........///.<seealso |
| 4680 | 20 63 72 65 66 3d 22 49 6e 70 75 74 53 79 73 74 65 6d 2e 72 65 6d 6f 74 69 6e 67 22 2f 3e 0d 0a | .cref="InputSystem.remoting"/>.. |
| 46a0 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 | ........///.<seealso.cref="Input |
| 46c0 | 52 65 6d 6f 74 69 6e 67 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c | Remoting"/>..........public.bool |
| 46e0 | 20 72 65 6d 6f 74 65 20 3d 3e 20 28 6d 5f 44 65 76 69 63 65 46 6c 61 67 73 20 26 20 44 65 76 69 | .remote.=>.(m_DeviceFlags.&.Devi |
| 4700 | 63 65 46 6c 61 67 73 2e 52 65 6d 6f 74 65 29 20 3d 3d 20 44 65 76 69 63 65 46 6c 61 67 73 2e 52 | ceFlags.Remote).==.DeviceFlags.R |
| 4720 | 65 6d 6f 74 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d | emote;............///.<summary>. |
| 4740 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 57 68 65 74 68 65 72 20 74 68 65 20 64 65 76 69 63 65 20 | .........///.Whether.the.device. |
| 4760 | 63 6f 6d 65 73 20 66 72 6f 6d 20 74 68 65 20 3c 73 65 65 20 63 72 65 66 3d 22 49 49 6e 70 75 74 | comes.from.the.<see.cref="IInput |
| 4780 | 52 75 6e 74 69 6d 65 22 3e 72 75 6e 74 69 6d 65 3c 2f 73 65 65 3e 0d 0a 20 20 20 20 20 20 20 20 | Runtime">runtime</see>.......... |
| 47a0 | 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c | ///.</summary>..........///.<val |
| 47c0 | 75 65 3e 57 68 65 74 68 65 72 20 74 68 65 20 64 65 76 69 63 65 20 68 61 73 20 62 65 65 6e 20 64 | ue>Whether.the.device.has.been.d |
| 47e0 | 69 73 63 6f 76 65 72 65 64 20 62 79 20 74 68 65 20 55 6e 69 74 79 20 72 75 6e 74 69 6d 65 2e 3c | iscovered.by.the.Unity.runtime.< |
| 4800 | 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a | /value>..........///.<remarks>.. |
| 4820 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 44 65 76 69 63 65 73 20 63 61 6e 20 62 65 20 64 69 73 63 6f | ........///.Devices.can.be.disco |
| 4840 | 76 65 72 65 64 20 77 68 65 6e 20 3c 73 65 65 20 63 72 65 66 3d 22 49 49 6e 70 75 74 52 75 6e 74 | vered.when.<see.cref="IInputRunt |
| 4860 | 69 6d 65 2e 6f 6e 44 65 76 69 63 65 44 69 73 63 6f 76 65 72 65 64 22 3e 72 65 70 6f 72 74 65 64 | ime.onDeviceDiscovered">reported |
| 4880 | 3c 2f 73 65 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 62 79 20 74 68 65 20 72 75 6e 74 69 | </see>..........///.by.the.runti |
| 48a0 | 6d 65 20 6f 72 20 74 68 65 79 20 63 61 6e 20 62 65 20 61 64 64 65 64 20 6d 61 6e 75 61 6c 6c 79 | me.or.they.can.be.added.manually |
| 48c0 | 20 74 68 72 6f 75 67 68 20 74 68 65 20 76 61 72 69 6f 75 73 20 3c 73 65 65 20 63 72 65 66 3d 22 | .through.the.various.<see.cref=" |
| 48e0 | 49 6e 70 75 74 53 79 73 74 65 6d 2e 41 64 64 44 65 76 69 63 65 28 49 6e 70 75 74 44 65 76 69 63 | InputSystem.AddDevice(InputDevic |
| 4900 | 65 29 22 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 41 64 64 44 65 76 69 63 65 3c 2f 73 65 65 | e)">..........///.AddDevice</see |
| 4920 | 3e 20 41 50 49 73 2e 20 44 65 76 69 63 65 73 20 72 65 70 6f 72 74 65 64 20 62 79 20 74 68 65 20 | >.APIs..Devices.reported.by.the. |
| 4940 | 72 75 6e 74 69 6d 65 20 77 69 6c 6c 20 72 65 74 75 72 6e 20 74 72 75 65 20 66 6f 72 20 74 68 69 | runtime.will.return.true.for.thi |
| 4960 | 73 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 70 72 6f 70 65 72 74 79 20 77 68 65 72 65 61 73 20 | s..........///.property.whereas. |
| 4980 | 64 65 76 69 63 65 73 20 61 64 64 65 64 20 6d 61 6e 75 61 6c 6c 79 20 77 69 6c 6c 20 72 65 74 75 | devices.added.manually.will.retu |
| 49a0 | 72 6e 20 66 61 6c 73 65 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 | rn.false...........///.......... |
| 49c0 | 2f 2f 2f 20 44 65 76 69 63 65 73 20 72 65 70 6f 72 74 65 64 20 62 79 20 74 68 65 20 72 75 6e 74 | ///.Devices.reported.by.the.runt |
| 49e0 | 69 6d 65 20 77 69 6c 6c 20 75 73 75 61 6c 6c 79 20 63 6f 6d 65 20 66 72 6f 6d 20 74 68 65 20 55 | ime.will.usually.come.from.the.U |
| 4a00 | 6e 69 74 79 20 65 6e 67 69 6e 65 20 69 74 73 65 6c 66 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | nity.engine.itself.........../// |
| 4a20 | 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 73 | .</remarks>..........///.<seeals |
| 4a40 | 6f 20 63 72 65 66 3d 22 49 49 6e 70 75 74 52 75 6e 74 69 6d 65 22 2f 3e 0d 0a 20 20 20 20 20 20 | o.cref="IInputRuntime"/>........ |
| 4a60 | 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 49 6e 70 75 74 52 75 6e 74 69 | ..///.<seealso.cref="IInputRunti |
| 4a80 | 6d 65 2e 6f 6e 44 65 76 69 63 65 44 69 73 63 6f 76 65 72 65 64 22 2f 3e 0d 0a 20 20 20 20 20 20 | me.onDeviceDiscovered"/>........ |
| 4aa0 | 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 6e 61 74 69 76 65 20 3d 3e 20 28 6d 5f 44 65 76 69 63 | ..public.bool.native.=>.(m_Devic |
| 4ac0 | 65 46 6c 61 67 73 20 26 20 44 65 76 69 63 65 46 6c 61 67 73 2e 4e 61 74 69 76 65 29 20 3d 3d 20 | eFlags.&.DeviceFlags.Native).==. |
| 4ae0 | 44 65 76 69 63 65 46 6c 61 67 73 2e 4e 61 74 69 76 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f | DeviceFlags.Native;............/ |
| 4b00 | 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 57 68 65 74 68 65 | //.<summary>..........///.Whethe |
| 4b20 | 72 20 74 68 65 20 64 65 76 69 63 65 20 72 65 71 75 69 72 65 73 20 61 6e 20 65 78 74 72 61 20 75 | r.the.device.requires.an.extra.u |
| 4b40 | 70 64 61 74 65 20 62 65 66 6f 72 65 20 72 65 6e 64 65 72 69 6e 67 2e 0d 0a 20 20 20 20 20 20 20 | pdate.before.rendering.......... |
| 4b60 | 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 | .///.</summary>..........///.<re |
| 4b80 | 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 76 61 6c 75 65 20 6f 66 | marks>..........///.The.value.of |
| 4ba0 | 20 74 68 69 73 20 70 72 6f 70 65 72 74 79 20 69 73 20 64 65 74 65 72 6d 69 6e 65 64 20 62 79 20 | .this.property.is.determined.by. |
| 4bc0 | 3c 73 65 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 2e 75 70 | <see.cref="InputControlLayout.up |
| 4be0 | 64 61 74 65 42 65 66 6f 72 65 52 65 6e 64 65 72 22 2f 3e 20 69 6e 0d 0a 20 20 20 20 20 20 20 20 | dateBeforeRender"/>.in.......... |
| 4c00 | 2f 2f 2f 20 74 68 65 20 64 65 76 69 63 65 27 73 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 | ///.the.device's.<see.cref="Inpu |
| 4c20 | 74 43 6f 6e 74 72 6f 6c 4c 61 79 6f 75 74 22 3e 63 6f 6e 74 72 6f 6c 20 6c 61 79 6f 75 74 3c 2f | tControlLayout">control.layout</ |
| 4c40 | 73 65 65 3e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | see>...........///..........///. |
| 4c60 | 54 68 65 20 65 78 74 72 61 20 75 70 64 61 74 65 20 69 73 20 6e 65 63 65 73 73 61 72 79 20 66 6f | The.extra.update.is.necessary.fo |
| 4c80 | 72 20 74 72 61 63 6b 69 6e 67 20 64 65 76 69 63 65 73 20 74 68 61 74 20 61 72 65 20 75 73 65 64 | r.tracking.devices.that.are.used |
| 4ca0 | 20 69 6e 20 72 65 6e 64 65 72 69 6e 67 20 63 6f 64 65 2e 20 46 6f 72 20 65 78 61 6d 70 6c 65 2c | .in.rendering.code..For.example, |
| 4cc0 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 68 65 20 65 79 65 20 74 72 61 6e 73 66 6f 72 6d 73 | ..........///.the.eye.transforms |
| 4ce0 | 20 6f 66 20 61 6e 20 48 4d 44 20 73 68 6f 75 6c 64 20 62 65 20 72 65 66 72 65 73 68 65 64 20 72 | .of.an.HMD.should.be.refreshed.r |
| 4d00 | 69 67 68 74 20 62 65 66 6f 72 65 20 72 65 6e 64 65 72 69 6e 67 20 61 73 20 72 65 66 72 65 73 68 | ight.before.rendering.as.refresh |
| 4d20 | 69 6e 67 20 6f 6e 6c 79 20 69 6e 20 74 68 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 62 65 67 | ing.only.in.the..........///.beg |
| 4d40 | 69 6e 6e 69 6e 67 20 6f 66 20 74 68 65 20 66 72 61 6d 65 20 77 69 6c 6c 20 6c 65 61 64 20 74 6f | inning.of.the.frame.will.lead.to |
| 4d60 | 20 61 20 6e 6f 74 69 63 65 61 62 6c 65 20 6c 61 67 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | .a.noticeable.lag...........///. |
| 4d80 | 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 73 6f | </remarks>..........///.<seealso |
| 4da0 | 20 63 72 65 66 3d 22 49 6e 70 75 74 55 70 64 61 74 65 54 79 70 65 2e 42 65 66 6f 72 65 52 65 6e | .cref="InputUpdateType.BeforeRen |
| 4dc0 | 64 65 72 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 75 70 64 61 | der"/>..........public.bool.upda |
| 4de0 | 74 65 42 65 66 6f 72 65 52 65 6e 64 65 72 20 3d 3e 20 28 6d 5f 44 65 76 69 63 65 46 6c 61 67 73 | teBeforeRender.=>.(m_DeviceFlags |
| 4e00 | 20 26 20 44 65 76 69 63 65 46 6c 61 67 73 2e 55 70 64 61 74 65 42 65 66 6f 72 65 52 65 6e 64 65 | .&.DeviceFlags.UpdateBeforeRende |
| 4e20 | 72 29 20 3d 3d 20 44 65 76 69 63 65 46 6c 61 67 73 2e 55 70 64 61 74 65 42 65 66 6f 72 65 52 65 | r).==.DeviceFlags.UpdateBeforeRe |
| 4e40 | 6e 64 65 72 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 | nder;............///.<summary>.. |
| 4e60 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 55 6e 69 71 75 65 20 6e 75 6d 65 72 69 63 20 49 44 20 66 6f | ........///.Unique.numeric.ID.fo |
| 4e80 | 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 75 6d | r.the.device...........///.</sum |
| 4ea0 | 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 | mary>..........///.<remarks>.... |
| 4ec0 | 20 20 20 20 20 20 2f 2f 2f 20 54 68 69 73 20 69 73 20 6f 6e 6c 79 20 61 73 73 69 67 6e 65 64 20 | ......///.This.is.only.assigned. |
| 4ee0 | 6f 6e 63 65 20 61 20 64 65 76 69 63 65 20 68 61 73 20 62 65 65 6e 20 61 64 64 65 64 20 74 6f 20 | once.a.device.has.been.added.to. |
| 4f00 | 74 68 65 20 73 79 73 74 65 6d 2e 20 4e 6f 20 74 77 6f 20 64 65 76 69 63 65 73 20 77 69 6c 6c 20 | the.system..No.two.devices.will. |
| 4f20 | 72 65 63 65 69 76 65 20 74 68 65 20 73 61 6d 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 44 | receive.the.same..........///.ID |
| 4f40 | 20 61 6e 64 20 6e 6f 20 64 65 76 69 63 65 20 77 69 6c 6c 20 72 65 63 65 69 76 65 20 61 6e 20 49 | .and.no.device.will.receive.an.I |
| 4f60 | 44 20 74 68 61 74 20 61 6e 6f 74 68 65 72 20 64 65 76 69 63 65 20 75 73 65 64 20 62 65 66 6f 72 | D.that.another.device.used.befor |
| 4f80 | 65 20 65 76 65 6e 20 69 66 20 74 68 65 20 64 65 76 69 63 65 20 77 61 73 20 72 65 6d 6f 76 65 64 | e.even.if.the.device.was.removed |
| 4fa0 | 2e 20 54 68 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 6f 6e 6c 79 20 65 78 63 65 70 74 69 6f | ..The..........///.only.exceptio |
| 4fc0 | 6e 20 74 6f 20 74 68 69 73 20 69 73 20 69 66 20 61 20 64 65 76 69 63 65 20 67 65 74 73 20 72 65 | n.to.this.is.if.a.device.gets.re |
| 4fe0 | 2d 63 72 65 61 74 65 64 20 61 73 20 70 61 72 74 20 6f 66 20 61 20 6c 61 79 6f 75 74 20 63 68 61 | -created.as.part.of.a.layout.cha |
| 5000 | 6e 67 65 2e 20 46 6f 72 20 65 78 61 6d 70 6c 65 2c 20 69 66 20 61 20 6e 65 77 0d 0a 20 20 20 20 | nge..For.example,.if.a.new...... |
| 5020 | 20 20 20 20 2f 2f 2f 20 6c 61 79 6f 75 74 20 69 73 20 72 65 67 69 73 74 65 72 65 64 20 74 68 61 | ....///.layout.is.registered.tha |
| 5040 | 74 20 72 65 70 6c 61 63 65 73 20 74 68 65 20 3c 73 65 65 20 63 72 65 66 3d 22 4d 6f 75 73 65 22 | t.replaces.the.<see.cref="Mouse" |
| 5060 | 2f 3e 20 6c 61 79 6f 75 74 2c 20 61 6c 6c 20 3c 73 65 65 20 63 72 65 66 3d 22 4d 6f 75 73 65 22 | />.layout,.all.<see.cref="Mouse" |
| 5080 | 2f 3e 20 64 65 76 69 63 65 73 20 77 69 6c 6c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 67 65 74 | />.devices.will..........///.get |
| 50a0 | 20 72 65 63 72 65 61 74 65 64 20 62 75 74 20 77 69 6c 6c 20 6b 65 65 70 20 74 68 65 69 72 20 65 | .recreated.but.will.keep.their.e |
| 50c0 | 78 69 73 74 69 6e 67 20 64 65 76 69 63 65 20 49 44 73 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | xisting.device.IDs.........../// |
| 50e0 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 44 73 20 61 72 65 20 61 73 73 69 67 6e 65 64 20 62 | ..........///.IDs.are.assigned.b |
| 5100 | 79 20 74 68 65 20 69 6e 70 75 74 20 72 75 6e 74 69 6d 65 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f | y.the.input.runtime...........// |
| 5120 | 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 |
| 5140 | 73 6f 20 63 72 65 66 3d 22 49 49 6e 70 75 74 52 75 6e 74 69 6d 65 2e 41 6c 6c 6f 63 61 74 65 44 | so.cref="IInputRuntime.AllocateD |
| 5160 | 65 76 69 63 65 49 64 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 69 6e 74 20 64 | eviceId"/>..........public.int.d |
| 5180 | 65 76 69 63 65 49 64 20 3d 3e 20 6d 5f 44 65 76 69 63 65 49 64 3b 0d 0a 0d 0a 20 20 20 20 20 20 | eviceId.=>.m_DeviceId;.......... |
| 51a0 | 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 54 69 6d | ..///.<summary>..........///.Tim |
| 51c0 | 65 73 74 61 6d 70 20 6f 66 20 6c 61 73 74 20 73 74 61 74 65 20 65 76 65 6e 74 20 75 73 65 64 20 | estamp.of.last.state.event.used. |
| 51e0 | 74 6f 20 75 70 64 61 74 65 20 74 68 65 20 64 65 76 69 63 65 2e 0d 0a 20 20 20 20 20 20 20 20 2f | to.update.the.device.........../ |
| 5200 | 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 | //.</summary>..........///.<rema |
| 5220 | 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 45 76 65 6e 74 73 20 6f 74 68 65 72 20 74 | rks>..........///.Events.other.t |
| 5240 | 68 61 6e 20 3c 73 65 65 20 63 72 65 66 3d 22 4c 6f 77 4c 65 76 65 6c 2e 53 74 61 74 65 45 76 65 | han.<see.cref="LowLevel.StateEve |
| 5260 | 6e 74 22 2f 3e 20 61 6e 64 20 3c 73 65 65 20 63 72 65 66 3d 22 4c 6f 77 4c 65 76 65 6c 2e 44 65 | nt"/>.and.<see.cref="LowLevel.De |
| 5280 | 6c 74 61 53 74 61 74 65 45 76 65 6e 74 22 2f 3e 20 77 69 6c 6c 0d 0a 20 20 20 20 20 20 20 20 2f | ltaStateEvent"/>.will........../ |
| 52a0 | 2f 2f 20 6e 6f 74 20 63 61 75 73 65 20 6c 61 73 74 55 70 64 61 74 65 54 69 6d 65 20 74 6f 20 62 | //.not.cause.lastUpdateTime.to.b |
| 52c0 | 65 20 63 68 61 6e 67 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b | e.changed...........///.</remark |
| 52e0 | 73 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 64 6f 75 62 6c 65 20 6c 61 73 74 55 70 | s>..........public.double.lastUp |
| 5300 | 64 61 74 65 54 69 6d 65 20 3d 3e 20 6d 5f 4c 61 73 74 55 70 64 61 74 65 54 69 6d 65 49 6e 74 65 | dateTime.=>.m_LastUpdateTimeInte |
| 5320 | 72 6e 61 6c 20 2d 20 49 6e 70 75 74 52 75 6e 74 69 6d 65 2e 73 5f 43 75 72 72 65 6e 74 54 69 6d | rnal.-.InputRuntime.s_CurrentTim |
| 5340 | 65 4f 66 66 73 65 74 54 6f 52 65 61 6c 74 69 6d 65 53 69 6e 63 65 53 74 61 72 74 75 70 3b 0d 0a | eOffsetToRealtimeSinceStartup;.. |
| 5360 | 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 77 61 73 55 70 64 61 74 65 64 | ..........public.bool.wasUpdated |
| 5380 | 54 68 69 73 46 72 61 6d 65 20 3d 3e 20 6d 5f 43 75 72 72 65 6e 74 55 70 64 61 74 65 53 74 65 70 | ThisFrame.=>.m_CurrentUpdateStep |
| 53a0 | 43 6f 75 6e 74 20 3d 3d 20 49 6e 70 75 74 55 70 64 61 74 65 2e 73 5f 55 70 64 61 74 65 53 74 65 | Count.==.InputUpdate.s_UpdateSte |
| 53c0 | 70 43 6f 75 6e 74 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 | pCount;............///.<summary> |
| 53e0 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 41 20 66 6c 61 74 74 65 6e 65 64 20 6c 69 73 74 20 6f | ..........///.A.flattened.list.o |
| 5400 | 66 20 63 6f 6e 74 72 6f 6c 73 20 74 68 61 74 20 6d 61 6b 65 20 75 70 20 74 68 65 20 64 65 76 69 | f.controls.that.make.up.the.devi |
| 5420 | 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 0d 0a 20 20 20 | ce...........///.</summary>..... |
| 5440 | 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | .....///.<remarks>..........///. |
| 5460 | 44 6f 65 73 20 6e 6f 74 20 61 6c 6c 6f 63 61 74 65 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | Does.not.allocate...........///. |
| 5480 | 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 52 65 61 64 4f | </remarks>..........public.ReadO |
| 54a0 | 6e 6c 79 41 72 72 61 79 3c 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 3e 20 61 6c 6c 43 6f 6e 74 72 6f | nlyArray<InputControl>.allContro |
| 54c0 | 6c 73 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 0d 0a | ls..........{..............get.. |
| 54e0 | 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f | ............{................../ |
| 5500 | 2f 20 53 69 6e 63 65 20 6d 5f 43 68 69 6c 64 72 65 6e 46 6f 72 45 61 63 68 43 6f 6e 74 72 6f 6c | /.Since.m_ChildrenForEachControl |
| 5520 | 20 63 6f 6e 74 61 69 6e 73 20 74 68 65 20 64 65 76 69 63 65 27 73 20 63 68 69 6c 64 72 65 6e 20 | .contains.the.device's.children. |
| 5540 | 61 73 20 77 65 6c 6c 20 61 73 20 74 68 65 20 63 68 69 6c 64 72 65 6e 0d 0a 20 20 20 20 20 20 20 | as.well.as.the.children......... |
| 5560 | 20 20 20 20 20 20 20 20 20 2f 2f 20 6f 66 20 65 61 63 68 20 63 6f 6e 74 72 6f 6c 20 69 6e 20 74 | .........//.of.each.control.in.t |
| 5580 | 68 65 20 68 69 65 72 61 72 63 68 79 2c 20 61 6e 64 20 73 69 6e 63 65 20 65 61 63 68 20 63 6f 6e | he.hierarchy,.and.since.each.con |
| 55a0 | 74 72 6f 6c 20 63 61 6e 20 6f 6e 6c 79 20 68 61 76 65 20 61 20 73 69 6e 67 6c 65 20 70 61 72 65 | trol.can.only.have.a.single.pare |
| 55c0 | 6e 74 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 74 68 69 73 20 6c 69 73 | nt,..................//.this.lis |
| 55e0 | 74 20 77 69 6c 6c 20 61 63 74 75 61 6c 6c 79 20 64 65 6c 69 76 65 72 20 61 20 66 6c 61 74 74 65 | t.will.actually.deliver.a.flatte |
| 5600 | 6e 65 64 20 6c 69 73 74 20 6f 66 20 61 6c 6c 20 63 6f 6e 74 72 6f 6c 73 20 69 6e 20 74 68 65 20 | ned.list.of.all.controls.in.the. |
| 5620 | 68 69 65 72 61 72 63 68 79 20 28 61 6e 64 20 77 69 74 68 6f 75 74 0d 0a 20 20 20 20 20 20 20 20 | hierarchy.(and.without.......... |
| 5640 | 20 20 20 20 20 20 20 20 2f 2f 20 74 68 65 20 64 65 76 69 63 65 20 69 74 73 65 6c 66 20 62 65 69 | ........//.the.device.itself.bei |
| 5660 | 6e 67 20 6c 69 73 74 65 64 29 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 | ng.listed)...................ret |
| 5680 | 75 72 6e 20 6e 65 77 20 52 65 61 64 4f 6e 6c 79 41 72 72 61 79 3c 49 6e 70 75 74 43 6f 6e 74 72 | urn.new.ReadOnlyArray<InputContr |
| 56a0 | 6f 6c 3e 28 6d 5f 43 68 69 6c 64 72 65 6e 46 6f 72 45 61 63 68 43 6f 6e 74 72 6f 6c 29 3b 0d 0a | ol>(m_ChildrenForEachControl);.. |
| 56c0 | 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 | ............}..........}........ |
| 56e0 | 20 20 20 20 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 54 68 69 73 20 76 69 6f 6c 61 74 65 73 20 74 68 | ....////REVIEW:.This.violates.th |
| 5700 | 65 20 63 6f 6e 73 74 72 61 69 6e 74 20 6f 66 20 63 6f 6e 74 72 6f 6c 73 20 62 65 69 6e 67 20 72 | e.constraint.of.controls.being.r |
| 5720 | 65 71 75 69 72 65 64 20 74 6f 20 6e 6f 74 20 68 61 76 65 20 72 65 66 65 72 65 6e 63 65 20 74 79 | equired.to.not.have.reference.ty |
| 5740 | 70 65 73 20 61 73 20 76 61 6c 75 65 20 74 79 70 65 73 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | pes.as.value.types.........../// |
| 5760 | 20 3c 69 6e 68 65 72 69 74 64 6f 63 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f | .<inheritdoc/>..........public.o |
| 5780 | 76 65 72 72 69 64 65 20 54 79 70 65 20 76 61 6c 75 65 54 79 70 65 20 3d 3e 20 74 79 70 65 6f 66 | verride.Type.valueType.=>.typeof |
| 57a0 | 28 62 79 74 65 5b 5d 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 69 6e 68 65 72 69 | (byte[]);............///.<inheri |
| 57c0 | 74 64 6f 63 2f 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 | tdoc/>..........public.override. |
| 57e0 | 69 6e 74 20 76 61 6c 75 65 53 69 7a 65 49 6e 42 79 74 65 73 20 3d 3e 20 28 69 6e 74 29 6d 5f 53 | int.valueSizeInBytes.=>.(int)m_S |
| 5800 | 74 61 74 65 42 6c 6f 63 6b 2e 61 6c 69 67 6e 65 64 53 69 7a 65 49 6e 42 79 74 65 73 3b 0d 0a 0d | tateBlock.alignedSizeInBytes;... |
| 5820 | 0a 20 20 20 20 20 20 20 20 2f 2f 20 54 68 69 73 20 6f 6e 65 20 6a 75 73 74 20 6c 65 61 64 73 20 | .........//.This.one.just.leads. |
| 5840 | 74 6f 20 63 6f 6e 66 75 73 69 6f 6e 20 61 73 20 79 6f 75 20 63 61 6e 20 61 63 63 65 73 73 20 69 | to.confusion.as.you.can.access.i |
| 5860 | 74 20 66 72 6f 6d 20 73 75 62 63 6c 61 73 73 65 73 20 61 6e 64 20 74 68 65 6e 20 62 65 20 73 75 | t.from.subclasses.and.then.be.su |
| 5880 | 72 70 72 69 73 65 64 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 74 68 61 74 20 69 74 20 64 6f 65 73 | rprised..........//.that.it.does |
| 58a0 | 6e 27 74 20 6f 6e 6c 79 20 69 6e 63 6c 75 64 65 20 6d 65 6d 62 65 72 73 20 6f 66 20 74 68 6f 73 | n't.only.include.members.of.thos |
| 58c0 | 65 20 63 6c 61 73 73 65 73 2e 0d 0a 20 20 20 20 20 20 20 20 5b 4f 62 73 6f 6c 65 74 65 28 22 55 | e.classes...........[Obsolete("U |
| 58e0 | 73 65 20 27 49 6e 70 75 74 53 79 73 74 65 6d 2e 64 65 76 69 63 65 73 27 20 69 6e 73 74 65 61 64 | se.'InputSystem.devices'.instead |
| 5900 | 2e 20 28 55 6e 69 74 79 55 70 67 72 61 64 61 62 6c 65 29 20 2d 3e 20 49 6e 70 75 74 53 79 73 74 | ..(UnityUpgradable).->.InputSyst |
| 5920 | 65 6d 2e 64 65 76 69 63 65 73 22 2c 20 65 72 72 6f 72 3a 20 66 61 6c 73 65 29 5d 0d 0a 20 20 20 | em.devices",.error:.false)]..... |
| 5940 | 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 52 65 61 64 4f 6e 6c 79 41 72 72 61 79 | .....public.static.ReadOnlyArray |
| 5960 | 3c 49 6e 70 75 74 44 65 76 69 63 65 3e 20 61 6c 6c 20 3d 3e 20 49 6e 70 75 74 53 79 73 74 65 6d | <InputDevice>.all.=>.InputSystem |
| 5980 | 2e 64 65 76 69 63 65 73 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 | .devices;............///.<summar |
| 59a0 | 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 69 73 20 63 6f 6e 73 74 72 75 63 74 6f 72 | y>..........///.This.constructor |
| 59c0 | 20 69 73 20 70 75 62 6c 69 63 20 66 6f 72 20 74 68 65 20 73 61 6b 65 20 6f 66 20 3c 63 3e 41 63 | .is.public.for.the.sake.of.<c>Ac |
| 59e0 | 74 69 76 61 74 6f 72 2e 43 72 65 61 74 65 49 6e 73 74 61 6e 63 65 3c 2f 63 3e 20 6f 6e 6c 79 2e | tivator.CreateInstance</c>.only. |
| 5a00 | 20 54 6f 20 63 6f 6e 73 74 72 75 63 74 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 64 65 76 69 63 | .To.construct..........///.devic |
| 5a20 | 65 73 2c 20 75 73 65 20 6d 65 74 68 6f 64 73 20 73 75 63 68 20 61 73 20 3c 73 65 65 20 63 72 65 | es,.use.methods.such.as.<see.cre |
| 5a40 | 66 3d 22 49 6e 70 75 74 53 79 73 74 65 6d 2e 41 64 64 44 65 76 69 63 65 7b 54 44 65 76 69 63 65 | f="InputSystem.AddDevice{TDevice |
| 5a60 | 7d 28 73 74 72 69 6e 67 29 22 2f 3e 2e 20 4d 61 6e 75 61 6c 6c 79 0d 0a 20 20 20 20 20 20 20 20 | }(string)"/>..Manually.......... |
| 5a80 | 2f 2f 2f 20 75 73 69 6e 67 20 3c 63 3e 6e 65 77 3c 2f 63 3e 20 6f 6e 20 49 6e 70 75 74 44 65 76 | ///.using.<c>new</c>.on.InputDev |
| 5aa0 | 69 63 65 20 77 69 6c 6c 20 6e 6f 74 20 72 65 73 75 6c 74 20 69 6e 20 61 20 75 73 61 62 6c 65 20 | ice.will.not.result.in.a.usable. |
| 5ac0 | 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 0d | device...........///.</summary>. |
| 5ae0 | 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 6e 70 75 74 44 65 76 69 63 65 28 29 0d 0a 20 | .........public.InputDevice()... |
| 5b00 | 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 44 65 76 69 63 65 49 64 | .......{..............m_DeviceId |
| 5b20 | 20 3d 20 49 6e 76 61 6c 69 64 44 65 76 69 63 65 49 64 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | .=.InvalidDeviceId;............. |
| 5b40 | 20 6d 5f 50 61 72 74 69 63 69 70 61 6e 74 49 64 20 3d 20 6b 4c 6f 63 61 6c 50 61 72 74 69 63 69 | .m_ParticipantId.=.kLocalPartici |
| 5b60 | 70 61 6e 74 49 64 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 44 65 76 69 63 65 49 6e 64 | pantId;..............m_DeviceInd |
| 5b80 | 65 78 20 3d 20 6b 49 6e 76 61 6c 69 64 44 65 76 69 63 65 49 6e 64 65 78 3b 0d 0a 20 20 20 20 20 | ex.=.kInvalidDeviceIndex;....... |
| 5ba0 | 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 49 73 20 6d | ...}............////REVIEW:.Is.m |
| 5bc0 | 61 6b 69 6e 67 20 64 65 76 69 63 65 73 20 62 65 20 62 79 74 65 5b 5d 20 76 61 6c 75 65 73 20 72 | aking.devices.be.byte[].values.r |
| 5be0 | 65 61 6c 6c 79 20 61 6c 6c 20 74 68 61 74 20 75 73 65 66 75 6c 3f 20 53 65 65 6d 73 20 62 65 74 | eally.all.that.useful?.Seems.bet |
| 5c00 | 74 65 72 20 74 68 61 6e 20 72 65 74 75 72 6e 69 6e 67 20 6e 75 6c 6c 73 20 62 75 74 0d 0a 20 20 | ter.than.returning.nulls.but.... |
| 5c20 | 20 20 20 20 20 20 2f 2f 2f 2f 20 20 20 20 20 20 20 20 61 74 20 74 68 65 20 73 61 6d 65 20 74 69 | ......////........at.the.same.ti |
| 5c40 | 6d 65 2c 20 73 65 65 6d 73 20 71 75 65 73 74 69 6f 6e 61 62 6c 65 2e 0d 0a 0d 0a 20 20 20 20 20 | me,.seems.questionable.......... |
| 5c60 | 20 20 20 2f 2f 2f 20 3c 69 6e 68 65 72 69 74 64 6f 63 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 | ...///.<inheritdoc/>..........pu |
| 5c80 | 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 75 6e 73 61 66 65 20 6f 62 6a 65 63 74 20 52 65 61 64 | blic.override.unsafe.object.Read |
| 5ca0 | 56 61 6c 75 65 46 72 6f 6d 42 75 66 66 65 72 41 73 4f 62 6a 65 63 74 28 76 6f 69 64 2a 20 62 75 | ValueFromBufferAsObject(void*.bu |
| 5cc0 | 66 66 65 72 2c 20 69 6e 74 20 62 75 66 66 65 72 53 69 7a 65 29 0d 0a 20 20 20 20 20 20 20 20 7b | ffer,.int.bufferSize)..........{ |
| 5ce0 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 68 72 6f 77 20 6e 65 77 20 4e 6f 74 49 6d 70 6c 65 | ..............throw.new.NotImple |
| 5d00 | 6d 65 6e 74 65 64 45 78 63 65 70 74 69 6f 6e 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d | mentedException();..........}... |
| 5d20 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 69 6e 68 65 72 69 74 64 6f 63 2f 3e 0d 0a 20 20 20 20 | .........///.<inheritdoc/>...... |
| 5d40 | 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 75 6e 73 61 66 65 20 6f 62 6a 65 63 | ....public.override.unsafe.objec |
| 5d60 | 74 20 52 65 61 64 56 61 6c 75 65 46 72 6f 6d 53 74 61 74 65 41 73 4f 62 6a 65 63 74 28 76 6f 69 | t.ReadValueFromStateAsObject(voi |
| 5d80 | 64 2a 20 73 74 61 74 65 50 74 72 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 | d*.statePtr)..........{......... |
| 5da0 | 20 20 20 20 20 69 66 20 28 6d 5f 44 65 76 69 63 65 49 6e 64 65 78 20 3d 3d 20 6b 49 6e 76 61 6c | .....if.(m_DeviceIndex.==.kInval |
| 5dc0 | 69 64 44 65 76 69 63 65 49 6e 64 65 78 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | idDeviceIndex).................. |
| 5de0 | 72 65 74 75 72 6e 20 6e 75 6c 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 | return.null;................var. |
| 5e00 | 6e 75 6d 42 79 74 65 73 20 3d 20 73 74 61 74 65 42 6c 6f 63 6b 2e 61 6c 69 67 6e 65 64 53 69 7a | numBytes.=.stateBlock.alignedSiz |
| 5e20 | 65 49 6e 42 79 74 65 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 72 72 61 79 | eInBytes;..............var.array |
| 5e40 | 20 3d 20 6e 65 77 20 62 79 74 65 5b 6e 75 6d 42 79 74 65 73 5d 3b 0d 0a 20 20 20 20 20 20 20 20 | .=.new.byte[numBytes];.......... |
| 5e60 | 20 20 20 20 66 69 78 65 64 28 62 79 74 65 2a 20 61 72 72 61 79 50 74 72 20 3d 20 61 72 72 61 79 | ....fixed(byte*.arrayPtr.=.array |
| 5e80 | 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 | )..............{................ |
| 5ea0 | 20 20 76 61 72 20 61 64 6a 75 73 74 65 64 53 74 61 74 65 50 74 72 20 3d 20 28 62 79 74 65 2a 29 | ..var.adjustedStatePtr.=.(byte*) |
| 5ec0 | 73 74 61 74 65 50 74 72 20 2b 20 6d 5f 53 74 61 74 65 42 6c 6f 63 6b 2e 62 79 74 65 4f 66 66 73 | statePtr.+.m_StateBlock.byteOffs |
| 5ee0 | 65 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 55 6e 73 61 66 65 55 74 69 6c 69 | et;..................UnsafeUtili |
| 5f00 | 74 79 2e 4d 65 6d 43 70 79 28 61 72 72 61 79 50 74 72 2c 20 61 64 6a 75 73 74 65 64 53 74 61 74 | ty.MemCpy(arrayPtr,.adjustedStat |
| 5f20 | 65 50 74 72 2c 20 6e 75 6d 42 79 74 65 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d | ePtr,.numBytes);..............}. |
| 5f40 | 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 61 72 72 61 79 3b 0d 0a 20 20 | ...............return.array;.... |
| 5f60 | 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 69 6e 68 65 72 69 74 64 | ......}............///.<inheritd |
| 5f80 | 6f 63 2f 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 75 6e | oc/>..........public.override.un |
| 5fa0 | 73 61 66 65 20 76 6f 69 64 20 52 65 61 64 56 61 6c 75 65 46 72 6f 6d 53 74 61 74 65 49 6e 74 6f | safe.void.ReadValueFromStateInto |
| 5fc0 | 42 75 66 66 65 72 28 76 6f 69 64 2a 20 73 74 61 74 65 50 74 72 2c 20 76 6f 69 64 2a 20 62 75 66 | Buffer(void*.statePtr,.void*.buf |
| 5fe0 | 66 65 72 50 74 72 2c 20 69 6e 74 20 62 75 66 66 65 72 53 69 7a 65 29 0d 0a 20 20 20 20 20 20 20 | ferPtr,.int.bufferSize)......... |
| 6000 | 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 74 61 74 65 50 74 72 20 3d 3d 20 | .{..............if.(statePtr.==. |
| 6020 | 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 72 6f 77 20 6e 65 77 | null)..................throw.new |
| 6040 | 20 41 72 67 75 6d 65 6e 74 4e 75 6c 6c 45 78 63 65 70 74 69 6f 6e 28 6e 61 6d 65 6f 66 28 73 74 | .ArgumentNullException(nameof(st |
| 6060 | 61 74 65 50 74 72 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 62 75 66 66 65 | atePtr));..............if.(buffe |
| 6080 | 72 50 74 72 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 | rPtr.==.null)..................t |
| 60a0 | 68 72 6f 77 20 6e 65 77 20 41 72 67 75 6d 65 6e 74 4e 75 6c 6c 45 78 63 65 70 74 69 6f 6e 28 6e | hrow.new.ArgumentNullException(n |
| 60c0 | 61 6d 65 6f 66 28 62 75 66 66 65 72 50 74 72 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | ameof(bufferPtr));.............. |
| 60e0 | 69 66 20 28 62 75 66 66 65 72 53 69 7a 65 20 3c 20 76 61 6c 75 65 53 69 7a 65 49 6e 42 79 74 65 | if.(bufferSize.<.valueSizeInByte |
| 6100 | 73 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 41 72 | s)..................throw.new.Ar |
| 6120 | 67 75 6d 65 6e 74 45 78 63 65 70 74 69 6f 6e 28 24 22 42 75 66 66 65 72 20 74 6f 6f 20 73 6d 61 | gumentException($"Buffer.too.sma |
| 6140 | 6c 6c 20 28 65 78 70 65 63 74 65 64 3a 20 7b 76 61 6c 75 65 53 69 7a 65 49 6e 42 79 74 65 73 7d | ll.(expected:.{valueSizeInBytes} |
| 6160 | 2c 20 61 63 74 75 61 6c 3a 20 7b 62 75 66 66 65 72 53 69 7a 65 7d 22 29 3b 0d 0a 0d 0a 20 20 20 | ,.actual:.{bufferSize}");....... |
| 6180 | 20 20 20 20 20 20 20 20 20 76 61 72 20 61 64 6a 75 73 74 65 64 53 74 61 74 65 50 74 72 20 3d 20 | .........var.adjustedStatePtr.=. |
| 61a0 | 28 62 79 74 65 2a 29 73 74 61 74 65 50 74 72 20 2b 20 6d 5f 53 74 61 74 65 42 6c 6f 63 6b 2e 62 | (byte*)statePtr.+.m_StateBlock.b |
| 61c0 | 79 74 65 4f 66 66 73 65 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 55 6e 73 61 66 65 55 74 | yteOffset;..............UnsafeUt |
| 61e0 | 69 6c 69 74 79 2e 4d 65 6d 43 70 79 28 62 75 66 66 65 72 50 74 72 2c 20 61 64 6a 75 73 74 65 64 | ility.MemCpy(bufferPtr,.adjusted |
| 6200 | 53 74 61 74 65 50 74 72 2c 20 6d 5f 53 74 61 74 65 42 6c 6f 63 6b 2e 61 6c 69 67 6e 65 64 53 69 | StatePtr,.m_StateBlock.alignedSi |
| 6220 | 7a 65 49 6e 42 79 74 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 | zeInBytes);..........}.......... |
| 6240 | 20 20 2f 2f 2f 20 3c 69 6e 68 65 72 69 74 64 6f 63 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 | ..///.<inheritdoc/>..........pub |
| 6260 | 6c 69 63 20 6f 76 65 72 72 69 64 65 20 75 6e 73 61 66 65 20 62 6f 6f 6c 20 43 6f 6d 70 61 72 65 | lic.override.unsafe.bool.Compare |
| 6280 | 56 61 6c 75 65 28 76 6f 69 64 2a 20 66 69 72 73 74 53 74 61 74 65 50 74 72 2c 20 76 6f 69 64 2a | Value(void*.firstStatePtr,.void* |
| 62a0 | 20 73 65 63 6f 6e 64 53 74 61 74 65 50 74 72 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 | .secondStatePtr)..........{..... |
| 62c0 | 20 20 20 20 20 20 20 20 20 69 66 20 28 66 69 72 73 74 53 74 61 74 65 50 74 72 20 3d 3d 20 6e 75 | .........if.(firstStatePtr.==.nu |
| 62e0 | 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 72 6f 77 20 6e 65 77 20 41 | ll)..................throw.new.A |
| 6300 | 72 67 75 6d 65 6e 74 4e 75 6c 6c 45 78 63 65 70 74 69 6f 6e 28 6e 61 6d 65 6f 66 28 66 69 72 73 | rgumentNullException(nameof(firs |
| 6320 | 74 53 74 61 74 65 50 74 72 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 65 | tStatePtr));..............if.(se |
| 6340 | 63 6f 6e 64 53 74 61 74 65 50 74 72 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 | condStatePtr.==.null)........... |
| 6360 | 20 20 20 20 20 20 20 74 68 72 6f 77 20 6e 65 77 20 41 72 67 75 6d 65 6e 74 4e 75 6c 6c 45 78 63 | .......throw.new.ArgumentNullExc |
| 6380 | 65 70 74 69 6f 6e 28 6e 61 6d 65 6f 66 28 73 65 63 6f 6e 64 53 74 61 74 65 50 74 72 29 29 3b 0d | eption(nameof(secondStatePtr));. |
| 63a0 | 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 64 6a 75 73 74 65 64 46 69 72 73 74 | ...............var.adjustedFirst |
| 63c0 | 53 74 61 74 65 50 74 72 20 3d 20 28 62 79 74 65 2a 29 66 69 72 73 74 53 74 61 74 65 50 74 72 20 | StatePtr.=.(byte*)firstStatePtr. |
| 63e0 | 2b 20 6d 5f 53 74 61 74 65 42 6c 6f 63 6b 2e 62 79 74 65 4f 66 66 73 65 74 3b 0d 0a 20 20 20 20 | +.m_StateBlock.byteOffset;...... |
| 6400 | 20 20 20 20 20 20 20 20 76 61 72 20 61 64 6a 75 73 74 65 64 53 65 63 6f 6e 64 53 74 61 74 65 50 | ........var.adjustedSecondStateP |
| 6420 | 74 72 20 3d 20 28 62 79 74 65 2a 29 66 69 72 73 74 53 74 61 74 65 50 74 72 20 2b 20 6d 5f 53 74 | tr.=.(byte*)firstStatePtr.+.m_St |
| 6440 | 61 74 65 42 6c 6f 63 6b 2e 62 79 74 65 4f 66 66 73 65 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 | ateBlock.byteOffset;............ |
| 6460 | 20 20 20 20 72 65 74 75 72 6e 20 55 6e 73 61 66 65 55 74 69 6c 69 74 79 2e 4d 65 6d 43 6d 70 28 | ....return.UnsafeUtility.MemCmp( |
| 6480 | 61 64 6a 75 73 74 65 64 46 69 72 73 74 53 74 61 74 65 50 74 72 2c 20 61 64 6a 75 73 74 65 64 53 | adjustedFirstStatePtr,.adjustedS |
| 64a0 | 65 63 6f 6e 64 53 74 61 74 65 50 74 72 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | econdStatePtr,.................. |
| 64c0 | 6d 5f 53 74 61 74 65 42 6c 6f 63 6b 2e 61 6c 69 67 6e 65 64 53 69 7a 65 49 6e 42 79 74 65 73 29 | m_StateBlock.alignedSizeInBytes) |
| 64e0 | 20 3d 3d 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | .==.0;..........}............/// |
| 6500 | 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 61 6c 6c 65 64 20 62 | .<summary>..........///.Called.b |
| 6520 | 79 20 74 68 65 20 73 79 73 74 65 6d 20 77 68 65 6e 20 74 68 65 20 63 6f 6e 66 69 67 75 72 61 74 | y.the.system.when.the.configurat |
| 6540 | 69 6f 6e 20 6f 66 20 74 68 65 20 64 65 76 69 63 65 20 68 61 73 20 63 68 61 6e 67 65 64 2e 0d 0a | ion.of.the.device.has.changed... |
| 6560 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 | ........///.</summary>.......... |
| 6580 | 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 44 65 76 69 63 65 43 6f 6e 66 69 67 75 | ///.<seealso.cref="DeviceConfigu |
| 65a0 | 72 61 74 69 6f 6e 45 76 65 6e 74 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c | rationEvent"/>..........internal |
| 65c0 | 20 76 6f 69 64 20 4f 6e 43 6f 6e 66 69 67 75 72 61 74 69 6f 6e 43 68 61 6e 67 65 64 28 29 0d 0a | .void.OnConfigurationChanged().. |
| 65e0 | 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4d 61 72 6b 20 61 | ........{..............//.Mark.a |
| 6600 | 6c 6c 20 63 6f 6e 74 72 6f 6c 73 20 69 6e 20 74 68 65 20 68 69 65 72 61 72 63 68 79 20 61 73 20 | ll.controls.in.the.hierarchy.as. |
| 6620 | 68 61 76 69 6e 67 20 74 68 65 69 72 20 63 6f 6e 66 69 67 20 6f 75 74 20 6f 66 20 64 61 74 65 2e | having.their.config.out.of.date. |
| 6640 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 57 65 20 64 6f 6e 27 74 20 77 61 6e 74 20 74 | ..............//.We.don't.want.t |
| 6660 | 6f 20 75 70 64 61 74 65 20 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e 20 72 69 67 68 74 20 61 77 61 | o.update.configuration.right.awa |
| 6680 | 79 20 62 75 74 20 72 61 74 68 65 72 20 77 61 69 74 20 75 6e 74 69 6c 0d 0a 20 20 20 20 20 20 20 | y.but.rather.wait.until......... |
| 66a0 | 20 20 20 20 20 2f 2f 20 73 6f 6d 65 6f 6e 65 20 61 63 74 75 61 6c 6c 79 20 64 65 70 65 6e 64 73 | .....//.someone.actually.depends |
| 66c0 | 20 6f 6e 20 69 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 73 43 6f 6e 66 69 67 55 70 54 | .on.it...............isConfigUpT |
| 66e0 | 6f 44 61 74 65 20 3d 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 | oDate.=.false;..............for. |
| 6700 | 28 76 61 72 20 69 20 3d 20 30 3b 20 69 20 3c 20 6d 5f 43 68 69 6c 64 72 65 6e 46 6f 72 45 61 63 | (var.i.=.0;.i.<.m_ChildrenForEac |
| 6720 | 68 43 6f 6e 74 72 6f 6c 2e 4c 65 6e 67 74 68 3b 20 2b 2b 69 29 0d 0a 20 20 20 20 20 20 20 20 20 | hControl.Length;.++i)........... |
| 6740 | 20 20 20 20 20 20 20 6d 5f 43 68 69 6c 64 72 65 6e 46 6f 72 45 61 63 68 43 6f 6e 74 72 6f 6c 5b | .......m_ChildrenForEachControl[ |
| 6760 | 69 5d 2e 69 73 43 6f 6e 66 69 67 55 70 54 6f 44 61 74 65 20 3d 20 66 61 6c 73 65 3b 0d 0a 0d 0a | i].isConfigUpToDate.=.false;.... |
| 6780 | 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4d 61 6b 65 20 73 75 72 65 20 77 65 20 66 65 74 63 | ............//.Make.sure.we.fetc |
| 67a0 | 68 20 74 68 65 20 65 6e 61 62 6c 65 64 2f 64 69 73 61 62 6c 65 64 20 73 74 61 74 65 20 61 67 61 | h.the.enabled/disabled.state.aga |
| 67c0 | 69 6e 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 44 65 76 69 63 65 46 6c 61 67 73 20 26 | in...............m_DeviceFlags.& |
| 67e0 | 3d 20 7e 44 65 76 69 63 65 46 6c 61 67 73 2e 44 69 73 61 62 6c 65 64 53 74 61 74 65 48 61 73 42 | =.~DeviceFlags.DisabledStateHasB |
| 6800 | 65 65 6e 51 75 65 72 69 65 64 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 | eenQueried;..........}.......... |
| 6820 | 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 4d 61 6b | ..///.<summary>..........///.Mak |
| 6840 | 65 20 74 68 69 73 20 74 68 65 20 63 75 72 72 65 6e 74 20 64 65 76 69 63 65 20 6f 66 20 69 74 73 | e.this.the.current.device.of.its |
| 6860 | 20 74 79 70 65 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a | .type...........///.</summary>.. |
| 6880 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f | ........///.<remarks>........../ |
| 68a0 | 2f 2f 20 54 68 69 73 20 6d 65 74 68 6f 64 20 69 73 20 63 61 6c 6c 65 64 20 61 75 74 6f 6d 61 74 | //.This.method.is.called.automat |
| 68c0 | 69 63 61 6c 6c 79 20 62 79 20 74 68 65 20 69 6e 70 75 74 20 73 79 73 74 65 6d 20 77 68 65 6e 20 | ically.by.the.input.system.when. |
| 68e0 | 61 20 64 65 76 69 63 65 20 69 73 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 64 64 65 64 20 6f | a.device.is..........///.added.o |
| 6900 | 72 20 77 68 65 6e 20 69 6e 70 75 74 20 69 73 20 72 65 63 65 69 76 65 64 20 6f 6e 20 69 74 2e 20 | r.when.input.is.received.on.it.. |
| 6920 | 4d 61 6e 79 20 74 79 70 65 73 20 6f 66 20 64 65 76 69 63 65 73 20 68 61 76 65 20 3c 63 3e 2e 63 | Many.types.of.devices.have.<c>.c |
| 6940 | 75 72 72 65 6e 74 3c 2f 63 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 67 65 74 74 65 72 73 20 | urrent</c>..........///.getters. |
| 6960 | 74 68 61 74 20 61 6c 6c 6f 77 20 71 75 65 72 79 69 6e 67 20 74 68 65 20 6c 61 73 74 20 75 73 65 | that.allow.querying.the.last.use |
| 6980 | 64 20 64 65 76 69 63 65 20 6f 66 20 61 20 73 70 65 63 69 66 69 63 20 74 79 70 65 20 64 69 72 65 | d.device.of.a.specific.type.dire |
| 69a0 | 63 74 6c 79 20 28 66 6f 72 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 65 78 61 6d 70 6c 65 2c 20 | ctly.(for..........///.example,. |
| 69c0 | 73 65 65 20 3c 73 65 65 20 63 72 65 66 3d 22 47 61 6d 65 70 61 64 2e 63 75 72 72 65 6e 74 22 2f | see.<see.cref="Gamepad.current"/ |
| 69e0 | 3e 29 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 | >)...........///..........///.Th |
| 6a00 | 65 72 65 20 69 73 20 6f 6e 65 20 73 70 65 63 69 61 6c 20 63 61 73 65 2c 20 68 6f 77 65 76 65 72 | ere.is.one.special.case,.however |
| 6a20 | 2c 20 72 65 6c 61 74 65 64 20 74 6f 20 6e 6f 69 73 65 2e 20 41 20 64 65 76 69 63 65 20 74 68 61 | ,.related.to.noise..A.device.tha |
| 6a40 | 74 20 68 61 73 20 6e 6f 69 73 79 20 63 6f 6e 74 72 6f 6c 73 0d 0a 20 20 20 20 20 20 20 20 2f 2f | t.has.noisy.controls..........// |
| 6a60 | 2f 20 28 69 2e 65 2e 20 63 6f 6e 74 72 6f 6c 73 20 66 6f 72 20 77 68 69 63 68 20 3c 73 65 65 20 | /.(i.e..controls.for.which.<see. |
| 6a80 | 63 72 65 66 3d 22 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 2e 6e 6f 69 73 79 22 2f 3e 20 69 73 20 74 | cref="InputControl.noisy"/>.is.t |
| 6aa0 | 72 75 65 29 20 6d 61 79 20 72 65 63 65 69 76 65 20 69 6e 70 75 74 20 65 76 65 6e 74 73 0d 0a 20 | rue).may.receive.input.events... |
| 6ac0 | 20 20 20 20 20 20 20 2f 2f 2f 20 74 68 61 74 20 63 6f 6e 74 61 69 6e 20 6e 6f 20 6d 65 61 6e 69 | .......///.that.contain.no.meani |
| 6ae0 | 6e 67 66 75 6c 20 75 73 65 72 20 69 6e 74 65 72 61 63 74 69 6f 6e 20 62 75 74 20 61 72 65 20 73 | ngful.user.interaction.but.are.s |
| 6b00 | 69 6d 70 6c 79 20 6a 75 73 74 20 6e 6f 69 73 65 20 66 72 6f 6d 20 74 68 65 20 64 65 76 69 63 65 | imply.just.noise.from.the.device |
| 6b20 | 2e 20 41 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 67 6f 6f 64 20 65 78 61 6d 70 6c 65 20 6f 66 | ..A..........///.good.example.of |
| 6b40 | 20 74 68 69 73 20 69 73 20 74 68 65 20 50 53 34 20 67 61 6d 65 70 61 64 20 77 68 69 63 68 20 68 | .this.is.the.PS4.gamepad.which.h |
| 6b60 | 61 73 20 61 20 62 75 69 6c 74 2d 69 6e 20 67 79 72 6f 20 61 6e 64 20 6d 61 79 20 74 68 75 73 20 | as.a.built-in.gyro.and.may.thus. |
| 6b80 | 63 6f 6e 73 74 61 6e 74 6c 79 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 66 65 65 64 20 65 76 65 | constantly..........///.feed.eve |
| 6ba0 | 6e 74 73 20 69 6e 74 6f 20 74 68 65 20 69 6e 70 75 74 20 73 79 73 74 65 6d 20 65 76 65 6e 20 69 | nts.into.the.input.system.even.i |
| 6bc0 | 66 20 6e 6f 74 20 62 65 69 6e 67 20 61 63 74 75 61 6c 6c 79 20 69 6e 20 75 73 65 2e 20 49 66 2c | f.not.being.actually.in.use..If, |
| 6be0 | 20 66 6f 72 20 65 78 61 6d 70 6c 65 2c 20 61 6e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 58 62 | .for.example,.an..........///.Xb |
| 6c00 | 6f 78 20 67 61 6d 65 70 61 64 20 61 6e 64 20 50 53 34 20 67 61 6d 65 70 61 64 20 61 72 65 20 62 | ox.gamepad.and.PS4.gamepad.are.b |
| 6c20 | 6f 74 68 20 63 6f 6e 6e 65 63 74 65 64 20 74 6f 20 61 20 50 43 20 61 6e 64 20 74 68 65 20 75 73 | oth.connected.to.a.PC.and.the.us |
| 6c40 | 65 72 20 69 73 20 70 6c 61 79 69 6e 67 20 77 69 74 68 20 74 68 65 0d 0a 20 20 20 20 20 20 20 20 | er.is.playing.with.the.......... |
| 6c60 | 2f 2f 2f 20 58 62 6f 78 20 67 61 6d 65 70 61 64 2c 20 74 68 65 20 50 53 34 20 67 61 6d 65 70 61 | ///.Xbox.gamepad,.the.PS4.gamepa |
| 6c80 | 64 20 77 6f 75 6c 64 20 73 74 69 6c 6c 20 63 6f 6e 73 74 61 6e 74 6c 79 20 6d 61 6b 65 20 69 74 | d.would.still.constantly.make.it |
| 6ca0 | 73 65 6c 66 20 3c 73 65 65 20 63 72 65 66 3d 22 47 61 6d 65 70 61 64 2e 63 75 72 72 65 6e 74 22 | self.<see.cref="Gamepad.current" |
| 6cc0 | 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 62 79 20 73 69 6d 70 6c 79 20 66 6c 6f 6f 64 69 | />..........///.by.simply.floodi |
| 6ce0 | 6e 67 20 74 68 65 20 73 79 73 74 65 6d 20 77 69 74 68 20 65 76 65 6e 74 73 2e 0d 0a 20 20 20 20 | ng.the.system.with.events....... |
| 6d00 | 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 42 79 20 65 6e 61 62 6c 69 6e 67 | ....///..........///.By.enabling |
| 6d20 | 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 53 65 74 74 69 6e 67 73 2e 66 69 6c 74 65 72 | .<see.cref="InputSettings.filter |
| 6d40 | 4e 6f 69 73 65 4f 6e 43 75 72 72 65 6e 74 22 2f 3e 20 28 64 69 73 61 62 6c 65 64 20 62 79 20 64 | NoiseOnCurrent"/>.(disabled.by.d |
| 6d60 | 65 66 61 75 6c 74 29 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 6e 6f 69 73 65 20 6f 6e 20 3c | efault),..........///.noise.on.< |
| 6d80 | 63 3e 2e 63 75 72 72 65 6e 74 3c 2f 63 3e 20 67 65 74 74 65 72 73 20 77 69 6c 6c 20 62 65 20 66 | c>.current</c>.getters.will.be.f |
| 6da0 | 69 6c 74 65 72 65 64 20 6f 75 74 20 61 6e 64 20 61 20 64 65 76 69 63 65 20 77 69 6c 6c 20 6f 6e | iltered.out.and.a.device.will.on |
| 6dc0 | 6c 79 20 73 65 65 20 3c 63 3e 4d 61 6b 65 43 75 72 72 65 6e 74 3c 2f 63 3e 0d 0a 20 20 20 20 20 | ly.see.<c>MakeCurrent</c>....... |
| 6de0 | 20 20 20 2f 2f 2f 20 67 65 74 74 69 6e 67 20 63 61 6c 6c 65 64 20 69 66 20 74 68 65 72 65 20 69 | ...///.getting.called.if.there.i |
| 6e00 | 6e 70 75 74 20 77 61 73 20 64 65 74 65 63 74 65 64 20 6f 6e 20 6e 6f 6e 2d 6e 6f 69 73 79 20 63 | nput.was.detected.on.non-noisy.c |
| 6e20 | 6f 6e 74 72 6f 6c 73 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e | ontrols...........///.</remarks> |
| 6e40 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 | ..........///.<seealso.cref="Inp |
| 6e60 | 75 74 53 65 74 74 69 6e 67 73 2e 66 69 6c 74 65 72 4e 6f 69 73 65 4f 6e 43 75 72 72 65 6e 74 22 | utSettings.filterNoiseOnCurrent" |
| 6e80 | 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 50 | />..........///.<seealso.cref="P |
| 6ea0 | 6f 69 6e 74 65 72 2e 63 75 72 72 65 6e 74 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c | ointer.current"/>..........///.< |
| 6ec0 | 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 47 61 6d 65 70 61 64 2e 63 75 72 72 65 6e 74 22 2f 3e | seealso.cref="Gamepad.current"/> |
| 6ee0 | 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 4d 6f 75 | ..........///.<seealso.cref="Mou |
| 6f00 | 73 65 2e 63 75 72 72 65 6e 74 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 | se.current"/>..........///.<seea |
| 6f20 | 6c 73 6f 20 63 72 65 66 3d 22 50 65 6e 2e 63 75 72 72 65 6e 74 22 2f 3e 0d 0a 20 20 20 20 20 20 | lso.cref="Pen.current"/>........ |
| 6f40 | 20 20 70 75 62 6c 69 63 20 76 69 72 74 75 61 6c 20 76 6f 69 64 20 4d 61 6b 65 43 75 72 72 65 6e | ..public.virtual.void.MakeCurren |
| 6f60 | 74 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 | t()..........{..........}....... |
| 6f80 | 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | .....///.<summary>..........///. |
| 6fa0 | 43 61 6c 6c 65 64 20 62 79 20 74 68 65 20 73 79 73 74 65 6d 20 77 68 65 6e 20 74 68 65 20 64 65 | Called.by.the.system.when.the.de |
| 6fc0 | 76 69 63 65 20 69 73 20 61 64 64 65 64 20 74 6f 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 | vice.is.added.to.<see.cref="Inpu |
| 6fe0 | 74 53 79 73 74 65 6d 2e 64 65 76 69 63 65 73 22 2f 3e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | tSystem.devices"/>.........../// |
| 7000 | 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b | .</summary>..........///.<remark |
| 7020 | 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 69 73 20 69 73 20 63 61 6c 6c 65 64 20 3c | s>..........///.This.is.called.< |
| 7040 | 65 6d 3e 61 66 74 65 72 3c 2f 65 6d 3e 20 74 68 65 20 64 65 76 69 63 65 20 68 61 73 20 61 6c 72 | em>after</em>.the.device.has.alr |
| 7060 | 65 61 64 79 20 62 65 65 6e 20 61 64 64 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f | eady.been.added...........///.</ |
| 7080 | 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 | remarks>..........///.<seealso.c |
| 70a0 | 72 65 66 3d 22 49 6e 70 75 74 53 79 73 74 65 6d 2e 64 65 76 69 63 65 73 22 2f 3e 0d 0a 20 20 20 | ref="InputSystem.devices"/>..... |
| 70c0 | 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 |
| 70e0 | 69 63 65 43 68 61 6e 67 65 2e 41 64 64 65 64 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | iceChange.Added"/>..........///. |
| 7100 | 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 4f 6e 52 65 6d 6f 76 65 64 22 2f 3e 0d 0a 20 20 20 | <seealso.cref="OnRemoved"/>..... |
| 7120 | 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 76 69 72 74 75 61 6c 20 76 6f 69 64 20 4f 6e 41 64 | .....protected.virtual.void.OnAd |
| 7140 | 64 65 64 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 | ded()..........{..........}..... |
| 7160 | 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f | .......///.<summary>..........// |
| 7180 | 2f 20 43 61 6c 6c 65 64 20 62 79 20 74 68 65 20 73 79 73 74 65 6d 20 77 68 65 6e 20 74 68 65 20 | /.Called.by.the.system.when.the. |
| 71a0 | 64 65 76 69 63 65 20 69 73 20 72 65 6d 6f 76 65 64 20 66 72 6f 6d 20 3c 73 65 65 20 63 72 65 66 | device.is.removed.from.<see.cref |
| 71c0 | 3d 22 49 6e 70 75 74 53 79 73 74 65 6d 2e 64 65 76 69 63 65 73 22 2f 3e 2e 0d 0a 20 20 20 20 20 | ="InputSystem.devices"/>........ |
| 71e0 | 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c | ...///.</summary>..........///.< |
| 7200 | 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 69 73 20 69 73 20 63 61 | remarks>..........///.This.is.ca |
| 7220 | 6c 6c 65 64 20 3c 65 6d 3e 61 66 74 65 72 3c 2f 65 6d 3e 20 74 68 65 20 64 65 76 69 63 65 20 68 | lled.<em>after</em>.the.device.h |
| 7240 | 61 73 20 61 6c 72 65 61 64 79 20 62 65 65 6e 20 72 65 6d 6f 76 65 64 2e 0d 0a 20 20 20 20 20 20 | as.already.been.removed......... |
| 7260 | 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 3c 73 | ..///.</remarks>..........///.<s |
| 7280 | 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 53 79 73 74 65 6d 2e 64 65 76 69 63 65 73 | eealso.cref="InputSystem.devices |
| 72a0 | 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 | "/>..........///.<seealso.cref=" |
| 72c0 | 49 6e 70 75 74 44 65 76 69 63 65 43 68 61 6e 67 65 2e 52 65 6d 6f 76 65 64 22 2f 3e 0d 0a 20 20 | InputDeviceChange.Removed"/>.... |
| 72e0 | 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 4f 6e 52 65 6d 6f 76 | ......///.<seealso.cref="OnRemov |
| 7300 | 65 64 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 76 69 72 74 75 61 6c | ed"/>..........protected.virtual |
| 7320 | 20 76 6f 69 64 20 4f 6e 52 65 6d 6f 76 65 64 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 | .void.OnRemoved()..........{.... |
| 7340 | 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 2f 54 4f 44 4f 3a 20 61 64 64 | ......}............////TODO:.add |
| 7360 | 20 6f 76 65 72 72 69 64 61 62 6c 65 20 4f 6e 44 69 73 61 62 6c 65 2f 4f 6e 45 6e 61 62 6c 65 20 | .overridable.OnDisable/OnEnable. |
| 7380 | 74 68 61 74 20 66 69 72 65 20 74 68 65 20 64 65 76 69 63 65 20 63 6f 6d 6d 61 6e 64 73 0d 0a 0d | that.fire.the.device.commands... |
| 73a0 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 2f 54 4f 44 4f 3a 20 74 68 69 73 20 73 68 6f 75 6c 64 20 62 | .........////TODO:.this.should.b |
| 73c0 | 65 20 6f 76 65 72 72 69 64 61 62 6c 65 20 64 69 72 65 63 74 6c 79 20 6f 6e 20 74 68 65 20 64 65 | e.overridable.directly.on.the.de |
| 73e0 | 76 69 63 65 20 69 6e 20 73 6f 6d 65 20 66 6f 72 6d 3b 20 63 61 6e 27 74 20 62 65 20 76 69 72 74 | vice.in.some.form;.can't.be.virt |
| 7400 | 75 61 6c 20 62 65 63 61 75 73 65 20 6f 66 20 41 4f 54 20 70 72 6f 62 6c 65 6d 73 3b 20 6e 65 65 | ual.because.of.AOT.problems;.nee |
| 7420 | 64 20 73 6f 6d 65 20 6f 74 68 65 72 20 73 6f 6c 75 74 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 2f | d.some.other.solution........../ |
| 7440 | 2f 2f 2f 52 45 56 49 45 57 3a 20 72 65 74 75 72 6e 20 6a 75 73 74 20 62 6f 6f 6c 20 69 6e 73 74 | ///REVIEW:.return.just.bool.inst |
| 7460 | 65 61 64 20 6f 66 20 6c 6f 6e 67 20 61 6e 64 20 72 65 71 75 69 72 65 20 65 76 65 72 79 74 68 69 | ead.of.long.and.require.everythi |
| 7480 | 6e 67 20 65 6c 73 65 20 74 6f 20 67 6f 20 69 6e 20 74 68 65 20 63 6f 6d 6d 61 6e 64 3f 0d 0a 20 | ng.else.to.go.in.the.command?... |
| 74a0 | 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f | .......///.<summary>..........// |
| 74c0 | 2f 20 50 65 72 66 6f 72 6d 20 61 20 64 65 76 69 63 65 2d 73 70 65 63 69 66 69 63 20 63 6f 6d 6d | /.Perform.a.device-specific.comm |
| 74e0 | 61 6e 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 | and...........///.</summary>.... |
| 7500 | 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 63 6f 6d 6d 61 6e 64 22 3e | ......///.<param.name="command"> |
| 7520 | 44 61 74 61 20 66 6f 72 20 74 68 65 20 63 6f 6d 6d 61 6e 64 20 74 6f 20 62 65 20 70 65 72 66 6f | Data.for.the.command.to.be.perfo |
| 7540 | 72 6d 65 64 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 74 75 | rmed.</param>..........///.<retu |
| 7560 | 72 6e 73 3e 41 20 74 72 61 6e 73 66 65 72 2d 73 70 65 63 69 66 69 63 20 72 65 74 75 72 6e 20 63 | rns>A.transfer-specific.return.c |
| 7580 | 6f 64 65 2e 20 4e 65 67 61 74 69 76 65 20 76 61 6c 75 65 73 20 61 72 65 20 63 6f 6e 73 69 64 65 | ode..Negative.values.are.conside |
| 75a0 | 72 65 64 20 66 61 69 6c 75 72 65 20 63 6f 64 65 73 2e 3c 2f 72 65 74 75 72 6e 73 3e 0d 0a 20 20 | red.failure.codes.</returns>.... |
| 75c0 | 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | ......///.<remarks>........../// |
| 75e0 | 20 43 6f 6d 6d 61 6e 64 73 20 61 6c 6c 6f 77 20 64 65 76 69 63 65 73 20 74 6f 20 73 65 74 20 75 | .Commands.allow.devices.to.set.u |
| 7600 | 70 20 63 75 73 74 6f 6d 20 70 72 6f 74 6f 63 6f 6c 73 20 77 69 74 68 6f 75 74 20 68 61 76 69 6e | p.custom.protocols.without.havin |
| 7620 | 67 20 74 6f 20 65 78 74 65 6e 64 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 68 65 20 64 65 76 | g.to.extend..........///.the.dev |
| 7640 | 69 63 65 20 41 50 49 2e 20 54 68 69 73 20 69 73 20 6d 6f 73 74 20 75 73 65 66 75 6c 20 66 6f 72 | ice.API..This.is.most.useful.for |
| 7660 | 20 64 65 76 69 63 65 73 20 69 6d 70 6c 65 6d 65 6e 74 65 64 20 69 6e 20 74 68 65 20 6e 61 74 69 | .devices.implemented.in.the.nati |
| 7680 | 76 65 20 55 6e 69 74 79 20 72 75 6e 74 69 6d 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 77 68 | ve.Unity.runtime..........///.wh |
| 76a0 | 69 63 68 2c 20 74 68 72 6f 75 67 68 20 74 68 65 20 63 6f 6d 6d 61 6e 64 20 69 6e 74 65 72 66 61 | ich,.through.the.command.interfa |
| 76c0 | 63 65 2c 20 6d 61 79 20 70 72 6f 76 69 64 65 20 63 75 73 74 6f 6d 2c 20 64 65 76 69 63 65 2d 73 | ce,.may.provide.custom,.device-s |
| 76e0 | 70 65 63 69 66 69 63 20 66 75 6e 63 74 69 6f 6e 73 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d | pecific.functions...........///. |
| 7700 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 69 73 20 69 73 20 61 20 6c 6f 77 2d 6c 65 76 65 6c | .........///.This.is.a.low-level |
| 7720 | 20 41 50 49 2e 20 49 74 20 77 6f 72 6b 73 20 69 6e 20 61 20 73 69 6d 69 6c 61 72 20 77 61 79 20 | .API..It.works.in.a.similar.way. |
| 7740 | 74 6f 20 3c 61 20 68 72 65 66 3d 22 68 74 74 70 73 3a 2f 2f 6d 73 64 6e 2e 6d 69 63 72 6f 73 6f | to.<a.href="https://msdn.microso |
| 7760 | 66 74 2e 63 6f 6d 2f 65 6e 2d 75 73 2f 6c 69 62 72 61 72 79 2f 77 69 6e 64 6f 77 73 2f 64 65 73 | ft.com/en-us/library/windows/des |
| 7780 | 6b 74 6f 70 2f 61 61 33 36 33 32 31 36 25 32 38 76 3d 76 73 2e 38 35 25 32 39 2e 61 73 70 78 3f | ktop/aa363216%28v=vs.85%29.aspx? |
| 77a0 | 66 3d 32 35 35 26 4d 53 50 50 45 72 72 6f 72 3d 2d 32 31 34 37 32 31 37 33 39 36 22 0d 0a 20 20 | f=255&MSPPError=-2147217396".... |
| 77c0 | 20 20 20 20 20 20 2f 2f 2f 20 74 61 72 67 65 74 3d 22 5f 62 6c 61 6e 6b 22 3e 44 65 76 69 63 65 | ......///.target="_blank">Device |
| 77e0 | 49 6f 43 6f 6e 74 72 6f 6c 3c 2f 61 3e 20 6f 6e 20 57 69 6e 64 6f 77 73 20 61 6e 64 20 3c 61 20 | IoControl</a>.on.Windows.and.<a. |
| 7800 | 68 72 65 66 3d 22 68 74 74 70 73 3a 2f 2f 64 65 76 65 6c 6f 70 65 72 2e 61 70 70 6c 65 2e 63 6f | href="https://developer.apple.co |
| 7820 | 6d 2f 6c 65 67 61 63 79 2f 6c 69 62 72 61 72 79 2f 64 6f 63 75 6d 65 6e 74 61 74 69 6f 6e 2f 44 | m/legacy/library/documentation/D |
| 7840 | 61 72 77 69 6e 2f 52 65 66 65 72 65 6e 63 65 2f 4d 61 6e 50 61 67 65 73 2f 6d 61 6e 32 2f 69 6f | arwin/Reference/ManPages/man2/io |
| 7860 | 63 74 6c 2e 32 2e 68 74 6d 6c 22 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 61 72 67 65 74 3d | ctl.2.html"..........///.target= |
| 7880 | 22 5f 62 6c 61 6e 6b 22 3e 69 6f 63 74 6c 3c 2f 61 3e 20 6f 6e 20 55 4e 49 58 2d 6c 69 6b 65 20 | "_blank">ioctl</a>.on.UNIX-like. |
| 78a0 | 73 79 73 74 65 6d 73 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e | systems...........///.</remarks> |
| 78c0 | 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 75 6e 73 61 66 65 20 6c 6f 6e 67 20 45 78 65 | ..........public.unsafe.long.Exe |
| 78e0 | 63 75 74 65 43 6f 6d 6d 61 6e 64 3c 54 43 6f 6d 6d 61 6e 64 3e 28 72 65 66 20 54 43 6f 6d 6d 61 | cuteCommand<TCommand>(ref.TComma |
| 7900 | 6e 64 20 63 6f 6d 6d 61 6e 64 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 68 65 72 65 20 54 | nd.command)..............where.T |
| 7920 | 43 6f 6d 6d 61 6e 64 20 3a 20 73 74 72 75 63 74 2c 20 49 49 6e 70 75 74 44 65 76 69 63 65 43 6f | Command.:.struct,.IInputDeviceCo |
| 7940 | 6d 6d 61 6e 64 49 6e 66 6f 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 | mmandInfo..........{............ |
| 7960 | 20 20 2f 2f 20 47 69 76 65 20 63 61 6c 6c 62 61 63 6b 73 20 66 69 72 73 74 20 73 68 6f 74 2e 0d | ..//.Give.callbacks.first.shot.. |
| 7980 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6d 61 6e 61 67 65 72 20 3d 20 49 6e 70 75 74 | .............var.manager.=.Input |
| 79a0 | 53 79 73 74 65 6d 2e 73 5f 4d 61 6e 61 67 65 72 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 | System.s_Manager;..............v |
| 79c0 | 61 72 20 63 61 6c 6c 62 61 63 6b 73 20 3d 20 6d 61 6e 61 67 65 72 2e 6d 5f 44 65 76 69 63 65 43 | ar.callbacks.=.manager.m_DeviceC |
| 79e0 | 6f 6d 6d 61 6e 64 43 61 6c 6c 62 61 63 6b 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f | ommandCallbacks;..............fo |
| 7a00 | 72 20 28 76 61 72 20 69 20 3d 20 30 3b 20 69 20 3c 20 63 61 6c 6c 62 61 63 6b 73 2e 6c 65 6e 67 | r.(var.i.=.0;.i.<.callbacks.leng |
| 7a20 | 74 68 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 20 20 | th;.++i)..............{......... |
| 7a40 | 20 20 20 20 20 20 20 20 20 76 61 72 20 72 65 73 75 6c 74 20 3d 20 63 61 6c 6c 62 61 63 6b 73 5b | .........var.result.=.callbacks[ |
| 7a60 | 69 5d 28 74 68 69 73 2c 20 28 49 6e 70 75 74 44 65 76 69 63 65 43 6f 6d 6d 61 6e 64 2a 29 55 6e | i](this,.(InputDeviceCommand*)Un |
| 7a80 | 73 61 66 65 55 74 69 6c 69 74 79 2e 41 64 64 72 65 73 73 4f 66 28 72 65 66 20 63 6f 6d 6d 61 6e | safeUtility.AddressOf(ref.comman |
| 7aa0 | 64 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 72 65 73 75 6c 74 | d));..................if.(result |
| 7ac0 | 2e 48 61 73 56 61 6c 75 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .HasValue)...................... |
| 7ae0 | 72 65 74 75 72 6e 20 72 65 73 75 6c 74 2e 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 | return.result.Value;............ |
| 7b00 | 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 49 6e 70 75 74 52 | ..}................return.InputR |
| 7b20 | 75 6e 74 69 6d 65 2e 73 5f 49 6e 73 74 61 6e 63 65 2e 44 65 76 69 63 65 43 6f 6d 6d 61 6e 64 28 | untime.s_Instance.DeviceCommand( |
| 7b40 | 64 65 76 69 63 65 49 64 2c 20 72 65 66 20 63 6f 6d 6d 61 6e 64 29 3b 0d 0a 20 20 20 20 20 20 20 | deviceId,.ref.command);......... |
| 7b60 | 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 5b 46 6c 61 67 73 5d 0d 0a 20 20 20 20 20 20 20 20 69 | .}............[Flags]..........i |
| 7b80 | 6e 74 65 72 6e 61 6c 20 65 6e 75 6d 20 44 65 76 69 63 65 46 6c 61 67 73 0d 0a 20 20 20 20 20 20 | nternal.enum.DeviceFlags........ |
| 7ba0 | 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 55 70 64 61 74 65 42 65 66 6f 72 65 52 65 6e | ..{..............UpdateBeforeRen |
| 7bc0 | 64 65 72 20 3d 20 31 20 3c 3c 20 30 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 48 61 73 53 74 | der.=.1.<<.0,..............HasSt |
| 7be0 | 61 74 65 43 61 6c 6c 62 61 63 6b 73 20 3d 20 31 20 3c 3c 20 31 2c 0d 0a 20 20 20 20 20 20 20 20 | ateCallbacks.=.1.<<.1,.......... |
| 7c00 | 20 20 20 20 48 61 73 43 6f 6e 74 72 6f 6c 73 57 69 74 68 44 65 66 61 75 6c 74 53 74 61 74 65 20 | ....HasControlsWithDefaultState. |
| 7c20 | 3d 20 31 20 3c 3c 20 32 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 6d 6f 74 65 20 3d 20 | =.1.<<.2,..............Remote.=. |
| 7c40 | 31 20 3c 3c 20 33 2c 20 2f 2f 20 49 74 27 73 20 61 20 6c 6f 63 61 6c 20 6d 69 72 72 6f 72 20 6f | 1.<<.3,.//.It's.a.local.mirror.o |
| 7c60 | 66 20 61 20 64 65 76 69 63 65 20 66 72 6f 6d 20 61 20 72 65 6d 6f 74 65 20 70 6c 61 79 65 72 20 | f.a.device.from.a.remote.player. |
| 7c80 | 63 6f 6e 6e 65 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 4e 61 74 69 76 65 20 | connection...............Native. |
| 7ca0 | 3d 20 31 20 3c 3c 20 34 2c 20 2f 2f 20 49 74 27 73 20 61 20 64 65 76 69 63 65 20 63 72 65 61 74 | =.1.<<.4,.//.It's.a.device.creat |
| 7cc0 | 65 64 20 66 72 6f 6d 20 64 61 74 61 20 73 75 72 66 61 63 65 64 20 62 79 20 4e 61 74 69 76 65 49 | ed.from.data.surfaced.by.NativeI |
| 7ce0 | 6e 70 75 74 52 75 6e 74 69 6d 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 69 73 61 62 6c | nputRuntime...............Disabl |
| 7d00 | 65 64 20 3d 20 31 20 3c 3c 20 35 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 69 73 61 62 6c | ed.=.1.<<.5,..............Disabl |
| 7d20 | 65 64 53 74 61 74 65 48 61 73 42 65 65 6e 51 75 65 72 69 65 64 20 3d 20 31 20 3c 3c 20 36 2c 20 | edStateHasBeenQueried.=.1.<<.6,. |
| 7d40 | 2f 2f 20 57 68 65 74 68 65 72 20 77 65 20 68 61 76 65 20 66 65 74 63 68 65 64 20 74 68 65 20 63 | //.Whether.we.have.fetched.the.c |
| 7d60 | 75 72 72 65 6e 74 20 65 6e 61 62 6c 65 2f 64 69 73 61 62 6c 65 20 73 74 61 74 65 20 66 72 6f 6d | urrent.enable/disable.state.from |
| 7d80 | 20 74 68 65 20 72 75 6e 74 69 6d 65 2e 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 | .the.runtime...........}........ |
| 7da0 | 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 44 65 76 69 63 65 46 6c 61 67 73 20 6d 5f 44 65 76 69 63 | ....internal.DeviceFlags.m_Devic |
| 7dc0 | 65 46 6c 61 67 73 3b 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 69 6e 74 20 6d 5f | eFlags;..........internal.int.m_ |
| 7de0 | 44 65 76 69 63 65 49 64 3b 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 69 6e 74 20 | DeviceId;..........internal.int. |
| 7e00 | 6d 5f 50 61 72 74 69 63 69 70 61 6e 74 49 64 3b 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e | m_ParticipantId;..........intern |
| 7e20 | 61 6c 20 69 6e 74 20 6d 5f 44 65 76 69 63 65 49 6e 64 65 78 3b 20 2f 2f 20 49 6e 64 65 78 20 69 | al.int.m_DeviceIndex;.//.Index.i |
| 7e40 | 6e 20 49 6e 70 75 74 4d 61 6e 61 67 65 72 2e 6d 5f 44 65 76 69 63 65 73 2e 0d 0a 20 20 20 20 20 | n.InputManager.m_Devices........ |
| 7e60 | 20 20 20 69 6e 74 65 72 6e 61 6c 20 49 6e 70 75 74 44 65 76 69 63 65 44 65 73 63 72 69 70 74 69 | ...internal.InputDeviceDescripti |
| 7e80 | 6f 6e 20 6d 5f 44 65 73 63 72 69 70 74 69 6f 6e 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | on.m_Description;............/// |
| 7ea0 | 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 69 6d 65 73 74 61 6d | .<summary>..........///.Timestam |
| 7ec0 | 70 20 6f 66 20 6c 61 73 74 20 65 76 65 6e 74 20 77 65 20 72 65 63 65 69 76 65 64 2e 0d 0a 20 20 | p.of.last.event.we.received..... |
| 7ee0 | 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f | ......///.</summary>..........// |
| 7f00 | 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 45 76 65 6e 74 2e 74 69 6d 65 | /.<seealso.cref="InputEvent.time |
| 7f20 | 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 64 6f 75 62 6c 65 20 6d 5f 4c | "/>..........internal.double.m_L |
| 7f40 | 61 73 74 55 70 64 61 74 65 54 69 6d 65 49 6e 74 65 72 6e 61 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 | astUpdateTimeInternal;.......... |
| 7f60 | 20 20 2f 2f 20 55 70 64 61 74 65 20 63 6f 75 6e 74 20 63 6f 72 72 65 73 70 6f 6e 64 69 6e 67 20 | ..//.Update.count.corresponding. |
| 7f80 | 74 6f 20 74 68 65 20 63 75 72 72 65 6e 74 20 66 72 6f 6e 74 20 62 75 66 66 65 72 73 20 74 68 61 | to.the.current.front.buffers.tha |
| 7fa0 | 74 20 61 72 65 20 61 63 74 69 76 65 20 6f 6e 20 74 68 65 20 64 65 76 69 63 65 2e 0d 0a 20 20 20 | t.are.active.on.the.device...... |
| 7fc0 | 20 20 20 20 20 2f 2f 20 57 65 20 75 73 65 20 74 68 69 73 20 74 6f 20 6b 6e 6f 77 20 77 68 65 6e | .....//.We.use.this.to.know.when |
| 7fe0 | 20 74 6f 20 66 6c 69 70 20 62 75 66 66 65 72 73 2e 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 | .to.flip.buffers...........inter |
| 8000 | 6e 61 6c 20 75 69 6e 74 20 6d 5f 43 75 72 72 65 6e 74 55 70 64 61 74 65 53 74 65 70 43 6f 75 6e | nal.uint.m_CurrentUpdateStepCoun |
| 8020 | 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 4c 69 73 74 20 6f 66 20 61 6c 69 61 73 65 73 | t;............//.List.of.aliases |
| 8040 | 20 66 6f 72 20 61 6c 6c 20 63 6f 6e 74 72 6f 6c 73 2e 20 45 61 63 68 20 63 6f 6e 74 72 6f 6c 20 | .for.all.controls..Each.control. |
| 8060 | 67 65 74 73 20 61 20 73 6c 69 63 65 20 6f 66 20 74 68 69 73 20 61 72 72 61 79 2e 0d 0a 20 20 20 | gets.a.slice.of.this.array...... |
| 8080 | 20 20 20 20 20 2f 2f 20 53 65 65 20 27 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 2e 61 6c 69 61 73 65 | .....//.See.'InputControl.aliase |
| 80a0 | 73 27 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 4e 4f 54 45 3a 20 54 68 65 20 64 65 76 69 63 65 | s'...........//.NOTE:.The.device |
| 80c0 | 27 73 20 6f 77 6e 20 61 6c 69 61 73 65 73 20 61 72 65 20 70 61 72 74 20 6f 66 20 74 68 69 73 20 | 's.own.aliases.are.part.of.this. |
| 80e0 | 61 72 72 61 79 20 61 73 20 77 65 6c 6c 2e 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c | array.as.well...........internal |
| 8100 | 20 49 6e 74 65 72 6e 65 64 53 74 72 69 6e 67 5b 5d 20 6d 5f 41 6c 69 61 73 65 73 46 6f 72 45 61 | .InternedString[].m_AliasesForEa |
| 8120 | 63 68 43 6f 6e 74 72 6f 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 4c 69 73 74 20 6f 66 | chControl;............//.List.of |
| 8140 | 20 75 73 61 67 65 73 20 66 6f 72 20 61 6c 6c 20 63 6f 6e 74 72 6f 6c 73 2e 20 45 61 63 68 20 63 | .usages.for.all.controls..Each.c |
| 8160 | 6f 6e 74 72 6f 6c 20 67 65 74 73 20 61 20 73 6c 69 63 65 20 6f 66 20 74 68 69 73 20 61 72 72 61 | ontrol.gets.a.slice.of.this.arra |
| 8180 | 79 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 53 65 65 20 27 49 6e 70 75 74 43 6f 6e 74 72 6f 6c | y...........//.See.'InputControl |
| 81a0 | 2e 75 73 61 67 65 73 27 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 4e 4f 54 45 3a 20 54 68 65 20 | .usages'...........//.NOTE:.The. |
| 81c0 | 64 65 76 69 63 65 27 73 20 6f 77 6e 20 75 73 61 67 65 73 20 61 72 65 20 70 61 72 74 20 6f 66 20 | device's.own.usages.are.part.of. |
| 81e0 | 74 68 69 73 20 61 72 72 61 79 20 61 73 20 77 65 6c 6c 2e 20 54 68 65 79 20 61 72 65 20 61 6c 77 | this.array.as.well..They.are.alw |
| 8200 | 61 79 73 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 20 20 20 20 20 20 61 74 20 74 68 65 20 2a 65 6e | ays..........//.......at.the.*en |
| 8220 | 64 2a 20 6f 66 20 74 68 65 20 61 72 72 61 79 2e 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e | d*.of.the.array...........intern |
| 8240 | 61 6c 20 49 6e 74 65 72 6e 65 64 53 74 72 69 6e 67 5b 5d 20 6d 5f 55 73 61 67 65 73 46 6f 72 45 | al.InternedString[].m_UsagesForE |
| 8260 | 61 63 68 43 6f 6e 74 72 6f 6c 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 54 68 69 73 20 6f 6e 65 | achControl;..........//.This.one |
| 8280 | 20 64 6f 65 73 20 4e 4f 54 20 63 6f 6e 74 61 69 6e 20 74 68 65 20 64 65 76 69 63 65 20 69 74 73 | .does.NOT.contain.the.device.its |
| 82a0 | 65 6c 66 2c 20 69 2e 65 2e 20 69 74 20 6f 6e 6c 79 20 63 6f 6e 74 61 69 6e 73 20 63 6f 6e 74 72 | elf,.i.e..it.only.contains.contr |
| 82c0 | 6f 6c 73 20 6f 6e 20 74 68 65 20 64 65 76 69 63 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 61 6e | ols.on.the.device..........//.an |
| 82e0 | 64 20 6d 61 79 20 74 68 69 73 20 62 65 20 73 68 6f 72 74 65 72 20 74 68 61 6e 20 6d 5f 55 73 61 | d.may.this.be.shorter.than.m_Usa |
| 8300 | 67 65 73 46 6f 72 45 61 63 68 43 6f 6e 74 72 6f 6c 2e 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 | gesForEachControl...........inte |
| 8320 | 72 6e 61 6c 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 5b 5d 20 6d 5f 55 73 61 67 65 54 6f 43 6f 6e | rnal.InputControl[].m_UsageToCon |
| 8340 | 74 72 6f 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 4c 69 73 74 20 6f 66 20 63 68 69 6c | trol;............//.List.of.chil |
| 8360 | 64 72 65 6e 20 66 6f 72 20 61 6c 6c 20 63 6f 6e 74 72 6f 6c 73 2e 20 45 61 63 68 20 63 6f 6e 74 | dren.for.all.controls..Each.cont |
| 8380 | 72 6f 6c 20 67 65 74 73 20 61 20 73 6c 69 63 65 20 6f 66 20 74 68 69 73 20 61 72 72 61 79 2e 0d | rol.gets.a.slice.of.this.array.. |
| 83a0 | 0a 20 20 20 20 20 20 20 20 2f 2f 20 53 65 65 20 27 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 2e 63 68 | .........//.See.'InputControl.ch |
| 83c0 | 69 6c 64 72 65 6e 27 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 4e 4f 54 45 3a 20 54 68 65 20 64 | ildren'...........//.NOTE:.The.d |
| 83e0 | 65 76 69 63 65 27 73 20 6f 77 6e 20 63 68 69 6c 64 72 65 6e 20 61 72 65 20 70 61 72 74 20 6f 66 | evice's.own.children.are.part.of |
| 8400 | 20 74 68 69 73 20 61 72 72 61 79 20 61 73 20 77 65 6c 6c 2e 0d 0a 20 20 20 20 20 20 20 20 69 6e | .this.array.as.well...........in |
| 8420 | 74 65 72 6e 61 6c 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 5b 5d 20 6d 5f 43 68 69 6c 64 72 65 6e | ternal.InputControl[].m_Children |
| 8440 | 46 6f 72 45 61 63 68 43 6f 6e 74 72 6f 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 4e 4f | ForEachControl;............//.NO |
| 8460 | 54 45 3a 20 57 65 20 64 6f 6e 27 74 20 73 74 6f 72 65 20 70 72 6f 63 65 73 73 6f 72 73 20 69 6e | TE:.We.don't.store.processors.in |
| 8480 | 20 61 20 63 6f 6d 62 69 6e 65 64 20 61 72 72 61 79 20 74 68 65 20 73 61 6d 65 20 77 61 79 20 77 | .a.combined.array.the.same.way.w |
| 84a0 | 65 20 64 6f 20 66 6f 72 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 20 20 20 20 20 20 75 73 61 67 65 | e.do.for..........//.......usage |
| 84c0 | 73 20 61 6e 64 20 63 68 69 6c 64 72 65 6e 20 61 73 20 74 68 61 74 20 77 6f 75 6c 64 20 72 65 71 | s.and.children.as.that.would.req |
| 84e0 | 75 69 72 65 20 6c 6f 74 73 20 6f 66 20 63 61 73 74 69 6e 67 20 66 72 6f 6d 20 27 6f 62 6a 65 63 | uire.lots.of.casting.from.'objec |
| 8500 | 74 27 2e 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 | t'.............///.<summary>.... |
| 8520 | 20 20 20 20 20 20 2f 2f 2f 20 49 66 20 74 72 75 65 2c 20 74 68 65 20 64 65 76 69 63 65 20 68 61 | ......///.If.true,.the.device.ha |
| 8540 | 73 20 61 74 20 6c 65 61 73 74 20 6f 6e 65 20 63 6f 6e 74 72 6f 6c 20 74 68 61 74 20 68 61 73 20 | s.at.least.one.control.that.has. |
| 8560 | 61 6e 20 65 78 70 6c 69 63 69 74 20 64 65 66 61 75 6c 74 20 73 74 61 74 65 2e 0d 0a 20 20 20 20 | an.explicit.default.state....... |
| 8580 | 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 69 6e 74 65 | ....///.</summary>..........inte |
| 85a0 | 72 6e 61 6c 20 62 6f 6f 6c 20 68 61 73 43 6f 6e 74 72 6f 6c 73 57 69 74 68 44 65 66 61 75 6c 74 | rnal.bool.hasControlsWithDefault |
| 85c0 | 53 74 61 74 65 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 | State..........{..............ge |
| 85e0 | 74 20 3d 3e 20 28 6d 5f 44 65 76 69 63 65 46 6c 61 67 73 20 26 20 44 65 76 69 63 65 46 6c 61 67 | t.=>.(m_DeviceFlags.&.DeviceFlag |
| 8600 | 73 2e 48 61 73 43 6f 6e 74 72 6f 6c 73 57 69 74 68 44 65 66 61 75 6c 74 53 74 61 74 65 29 20 3d | s.HasControlsWithDefaultState).= |
| 8620 | 3d 20 44 65 76 69 63 65 46 6c 61 67 73 2e 48 61 73 43 6f 6e 74 72 6f 6c 73 57 69 74 68 44 65 66 | =.DeviceFlags.HasControlsWithDef |
| 8640 | 61 75 6c 74 53 74 61 74 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 0d 0a 20 20 20 | aultState;..............set..... |
| 8660 | 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 | .........{..................if.( |
| 8680 | 76 61 6c 75 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 44 65 | value)......................m_De |
| 86a0 | 76 69 63 65 46 6c 61 67 73 20 7c 3d 20 44 65 76 69 63 65 46 6c 61 67 73 2e 48 61 73 43 6f 6e 74 | viceFlags.|=.DeviceFlags.HasCont |
| 86c0 | 72 6f 6c 73 57 69 74 68 44 65 66 61 75 6c 74 53 74 61 74 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 | rolsWithDefaultState;........... |
| 86e0 | 20 20 20 20 20 20 20 65 6c 73 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .......else..................... |
| 8700 | 20 6d 5f 44 65 76 69 63 65 46 6c 61 67 73 20 26 3d 20 7e 44 65 76 69 63 65 46 6c 61 67 73 2e 48 | .m_DeviceFlags.&=.~DeviceFlags.H |
| 8720 | 61 73 43 6f 6e 74 72 6f 6c 73 57 69 74 68 44 65 66 61 75 6c 74 53 74 61 74 65 3b 0d 0a 20 20 20 | asControlsWithDefaultState;..... |
| 8740 | 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 | .........}..........}........... |
| 8760 | 20 69 6e 74 65 72 6e 61 6c 20 62 6f 6f 6c 20 68 61 73 53 74 61 74 65 43 61 6c 6c 62 61 63 6b 73 | .internal.bool.hasStateCallbacks |
| 8780 | 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 20 | ..........{..............get.=>. |
| 87a0 | 28 6d 5f 44 65 76 69 63 65 46 6c 61 67 73 20 26 20 44 65 76 69 63 65 46 6c 61 67 73 2e 48 61 73 | (m_DeviceFlags.&.DeviceFlags.Has |
| 87c0 | 53 74 61 74 65 43 61 6c 6c 62 61 63 6b 73 29 20 3d 3d 20 44 65 76 69 63 65 46 6c 61 67 73 2e 48 | StateCallbacks).==.DeviceFlags.H |
| 87e0 | 61 73 53 74 61 74 65 43 61 6c 6c 62 61 63 6b 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 | asStateCallbacks;..............s |
| 8800 | 65 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | et..............{............... |
| 8820 | 20 20 20 69 66 20 28 76 61 6c 75 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ...if.(value)................... |
| 8840 | 20 20 20 6d 5f 44 65 76 69 63 65 46 6c 61 67 73 20 7c 3d 20 44 65 76 69 63 65 46 6c 61 67 73 2e | ...m_DeviceFlags.|=.DeviceFlags. |
| 8860 | 48 61 73 53 74 61 74 65 43 61 6c 6c 62 61 63 6b 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | HasStateCallbacks;.............. |
| 8880 | 20 20 20 20 65 6c 73 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f | ....else......................m_ |
| 88a0 | 44 65 76 69 63 65 46 6c 61 67 73 20 26 3d 20 7e 44 65 76 69 63 65 46 6c 61 67 73 2e 48 61 73 53 | DeviceFlags.&=.~DeviceFlags.HasS |
| 88c0 | 74 61 74 65 43 61 6c 6c 62 61 63 6b 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 | tateCallbacks;..............}... |
| 88e0 | 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 76 6f 69 | .......}............internal.voi |
| 8900 | 64 20 41 64 64 44 65 76 69 63 65 55 73 61 67 65 28 49 6e 74 65 72 6e 65 64 53 74 72 69 6e 67 20 | d.AddDeviceUsage(InternedString. |
| 8920 | 75 73 61 67 65 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 | usage)..........{..............v |
| 8940 | 61 72 20 63 6f 6e 74 72 6f 6c 55 73 61 67 65 43 6f 75 6e 74 20 3d 20 6d 5f 55 73 61 67 65 54 6f | ar.controlUsageCount.=.m_UsageTo |
| 8960 | 43 6f 6e 74 72 6f 6c 2e 4c 65 6e 67 74 68 53 61 66 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 | Control.LengthSafe();........... |
| 8980 | 20 20 20 76 61 72 20 74 6f 74 61 6c 55 73 61 67 65 43 6f 75 6e 74 20 3d 20 63 6f 6e 74 72 6f 6c | ...var.totalUsageCount.=.control |
| 89a0 | 55 73 61 67 65 43 6f 75 6e 74 20 2b 20 6d 5f 55 73 61 67 65 43 6f 75 6e 74 3b 0d 0a 20 20 20 20 | UsageCount.+.m_UsageCount;...... |
| 89c0 | 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 55 73 61 67 65 43 6f 75 6e 74 20 3d 3d 20 30 29 0d 0a | ........if.(m_UsageCount.==.0).. |
| 89e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 55 73 61 67 65 53 74 61 72 74 49 6e 64 65 | ................m_UsageStartInde |
| 8a00 | 78 20 3d 20 74 6f 74 61 6c 55 73 61 67 65 43 6f 75 6e 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 | x.=.totalUsageCount;............ |
| 8a20 | 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 74 | ..ArrayHelpers.AppendWithCapacit |
| 8a40 | 79 28 72 65 66 20 6d 5f 55 73 61 67 65 73 46 6f 72 45 61 63 68 43 6f 6e 74 72 6f 6c 2c 20 72 65 | y(ref.m_UsagesForEachControl,.re |
| 8a60 | 66 20 74 6f 74 61 6c 55 73 61 67 65 43 6f 75 6e 74 2c 20 75 73 61 67 65 29 3b 0d 0a 20 20 20 20 | f.totalUsageCount,.usage);...... |
| 8a80 | 20 20 20 20 20 20 20 20 2b 2b 6d 5f 55 73 61 67 65 43 6f 75 6e 74 3b 0d 0a 20 20 20 20 20 20 20 | ........++m_UsageCount;......... |
| 8aa0 | 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 76 6f 69 64 20 52 65 6d 6f | .}............internal.void.Remo |
| 8ac0 | 76 65 44 65 76 69 63 65 55 73 61 67 65 28 49 6e 74 65 72 6e 65 64 53 74 72 69 6e 67 20 75 73 61 | veDeviceUsage(InternedString.usa |
| 8ae0 | 67 65 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 | ge)..........{..............var. |
| 8b00 | 63 6f 6e 74 72 6f 6c 55 73 61 67 65 43 6f 75 6e 74 20 3d 20 6d 5f 55 73 61 67 65 54 6f 43 6f 6e | controlUsageCount.=.m_UsageToCon |
| 8b20 | 74 72 6f 6c 2e 4c 65 6e 67 74 68 53 61 66 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | trol.LengthSafe();.............. |
| 8b40 | 76 61 72 20 74 6f 74 61 6c 55 73 61 67 65 43 6f 75 6e 74 20 3d 20 63 6f 6e 74 72 6f 6c 55 73 61 | var.totalUsageCount.=.controlUsa |
| 8b60 | 67 65 43 6f 75 6e 74 20 2b 20 6d 5f 55 73 61 67 65 43 6f 75 6e 74 3b 0d 0a 0d 0a 20 20 20 20 20 | geCount.+.m_UsageCount;......... |
| 8b80 | 20 20 20 20 20 20 20 76 61 72 20 69 6e 64 65 78 20 3d 20 41 72 72 61 79 48 65 6c 70 65 72 73 2e | .......var.index.=.ArrayHelpers. |
| 8ba0 | 49 6e 64 65 78 4f 66 56 61 6c 75 65 28 6d 5f 55 73 61 67 65 73 46 6f 72 45 61 63 68 43 6f 6e 74 | IndexOfValue(m_UsagesForEachCont |
| 8bc0 | 72 6f 6c 2c 20 75 73 61 67 65 2c 20 6d 5f 55 73 61 67 65 53 74 61 72 74 49 6e 64 65 78 2c 20 74 | rol,.usage,.m_UsageStartIndex,.t |
| 8be0 | 6f 74 61 6c 55 73 61 67 65 43 6f 75 6e 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 | otalUsageCount);..............if |
| 8c00 | 20 28 69 6e 64 65 78 20 3d 3d 20 2d 31 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .(index.==.-1).................. |
| 8c20 | 72 65 74 75 72 6e 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 65 62 75 67 2e 41 73 73 | return;................Debug.Ass |
| 8c40 | 65 72 74 28 6d 5f 55 73 61 67 65 43 6f 75 6e 74 20 3e 20 30 29 3b 0d 0a 20 20 20 20 20 20 20 20 | ert(m_UsageCount.>.0);.......... |
| 8c60 | 20 20 20 20 41 72 72 61 79 48 65 6c 70 65 72 73 2e 45 72 61 73 65 41 74 57 69 74 68 43 61 70 61 | ....ArrayHelpers.EraseAtWithCapa |
| 8c80 | 63 69 74 79 28 6d 5f 55 73 61 67 65 73 46 6f 72 45 61 63 68 43 6f 6e 74 72 6f 6c 2c 20 72 65 66 | city(m_UsagesForEachControl,.ref |
| 8ca0 | 20 74 6f 74 61 6c 55 73 61 67 65 43 6f 75 6e 74 2c 20 69 6e 64 65 78 29 3b 0d 0a 20 20 20 20 20 | .totalUsageCount,.index);....... |
| 8cc0 | 20 20 20 20 20 20 20 2d 2d 6d 5f 55 73 61 67 65 43 6f 75 6e 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 | .......--m_UsageCount;.......... |
| 8ce0 | 20 20 20 20 20 20 69 66 20 28 6d 5f 55 73 61 67 65 43 6f 75 6e 74 20 3d 3d 20 30 29 0d 0a 20 20 | ......if.(m_UsageCount.==.0).... |
| 8d00 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 55 73 61 67 65 53 74 61 72 74 49 6e 64 65 78 20 | ..............m_UsageStartIndex. |
| 8d20 | 3d 20 64 65 66 61 75 6c 74 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 | =.default;..........}........... |
| 8d40 | 20 69 6e 74 65 72 6e 61 6c 20 76 6f 69 64 20 43 6c 65 61 72 44 65 76 69 63 65 55 73 61 67 65 73 | .internal.void.ClearDeviceUsages |
| 8d60 | 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 66 6f 72 20 28 | ()..........{..............for.( |
| 8d80 | 76 61 72 20 69 20 3d 20 6d 5f 55 73 61 67 65 53 74 61 72 74 49 6e 64 65 78 3b 20 69 20 3c 20 6d | var.i.=.m_UsageStartIndex;.i.<.m |
| 8da0 | 5f 55 73 61 67 65 43 6f 75 6e 74 3b 20 2b 2b 69 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | _UsageCount;.++i)............... |
| 8dc0 | 20 20 20 6d 5f 55 73 61 67 65 73 46 6f 72 45 61 63 68 43 6f 6e 74 72 6f 6c 5b 69 5d 20 3d 20 64 | ...m_UsagesForEachControl[i].=.d |
| 8de0 | 65 66 61 75 6c 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 55 73 61 67 65 43 6f 75 6e | efault;..............m_UsageCoun |
| 8e00 | 74 20 3d 20 64 65 66 61 75 6c 74 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 | t.=.default;..........}......... |
| 8e20 | 20 20 20 69 6e 74 65 72 6e 61 6c 20 62 6f 6f 6c 20 52 65 71 75 65 73 74 52 65 73 65 74 28 29 0d | ...internal.bool.RequestReset(). |
| 8e40 | 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 72 65 73 65 | .........{..............var.rese |
| 8e60 | 74 43 6f 6d 6d 61 6e 64 20 3d 20 52 65 71 75 65 73 74 52 65 73 65 74 43 6f 6d 6d 61 6e 64 2e 43 | tCommand.=.RequestResetCommand.C |
| 8e80 | 72 65 61 74 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 72 65 73 75 6c 74 | reate();..............var.result |
| 8ea0 | 20 3d 20 64 65 76 69 63 65 2e 45 78 65 63 75 74 65 43 6f 6d 6d 61 6e 64 28 72 65 66 20 72 65 73 | .=.device.ExecuteCommand(ref.res |
| 8ec0 | 65 74 43 6f 6d 6d 61 6e 64 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 | etCommand);..............return. |
| 8ee0 | 72 65 73 75 6c 74 20 3e 3d 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 | result.>=.0;..........}......... |
| 8f00 | 20 20 20 69 6e 74 65 72 6e 61 6c 20 76 6f 69 64 20 4e 6f 74 69 66 79 41 64 64 65 64 28 29 0d 0a | ...internal.void.NotifyAdded().. |
| 8f20 | 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 4f 6e 41 64 64 65 64 28 29 | ........{..............OnAdded() |
| 8f40 | 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c | ;..........}............internal |
| 8f60 | 20 76 6f 69 64 20 4e 6f 74 69 66 79 52 65 6d 6f 76 65 64 28 29 0d 0a 20 20 20 20 20 20 20 20 7b | .void.NotifyRemoved()..........{ |
| 8f80 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 4f 6e 52 65 6d 6f 76 65 64 28 29 3b 0d 0a 20 20 20 20 | ..............OnRemoved();...... |
| 8fa0 | 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 73 74 61 74 69 63 | ....}............internal.static |
| 8fc0 | 20 54 44 65 76 69 63 65 20 42 75 69 6c 64 3c 54 44 65 76 69 63 65 3e 28 73 74 72 69 6e 67 20 6c | .TDevice.Build<TDevice>(string.l |
| 8fe0 | 61 79 6f 75 74 4e 61 6d 65 20 3d 20 64 65 66 61 75 6c 74 2c 20 73 74 72 69 6e 67 20 6c 61 79 6f | ayoutName.=.default,.string.layo |
| 9000 | 75 74 56 61 72 69 61 6e 74 73 20 3d 20 64 65 66 61 75 6c 74 2c 20 49 6e 70 75 74 44 65 76 69 63 | utVariants.=.default,.InputDevic |
| 9020 | 65 44 65 73 63 72 69 70 74 69 6f 6e 20 64 65 76 69 63 65 44 65 73 63 72 69 70 74 69 6f 6e 20 3d | eDescription.deviceDescription.= |
| 9040 | 20 64 65 66 61 75 6c 74 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 68 65 72 65 20 54 44 65 | .default)..............where.TDe |
| 9060 | 76 69 63 65 20 3a 20 49 6e 70 75 74 44 65 76 69 63 65 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 | vice.:.InputDevice..........{... |
| 9080 | 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d | ...........if.(string.IsNullOrEm |
| 90a0 | 70 74 79 28 6c 61 79 6f 75 74 4e 61 6d 65 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d | pty(layoutName))..............{. |
| 90c0 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6c 61 79 6f 75 74 4e 61 6d 65 20 3d 20 49 6e | .................layoutName.=.In |
| 90e0 | 70 75 74 43 6f 6e 74 72 6f 6c 4c 61 79 6f 75 74 2e 73 5f 4c 61 79 6f 75 74 73 2e 54 72 79 46 69 | putControlLayout.s_Layouts.TryFi |
| 9100 | 6e 64 4c 61 79 6f 75 74 46 6f 72 54 79 70 65 28 74 79 70 65 6f 66 28 54 44 65 76 69 63 65 29 29 | ndLayoutForType(typeof(TDevice)) |
| 9120 | 3b 0d 0a 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 49 73 | ;..................if.(string.Is |
| 9140 | 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 6c 61 79 6f 75 74 4e 61 6d 65 29 29 0d 0a 20 20 20 20 20 20 | NullOrEmpty(layoutName))........ |
| 9160 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6c 61 79 6f 75 74 4e 61 6d 65 20 3d 20 74 79 70 65 6f | ..............layoutName.=.typeo |
| 9180 | 66 28 54 44 65 76 69 63 65 29 2e 4e 61 6d 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d | f(TDevice).Name;..............}. |
| 91a0 | 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 75 73 69 6e 67 20 28 49 6e 70 75 74 44 65 76 69 63 | ...............using.(InputDevic |
| 91c0 | 65 42 75 69 6c 64 65 72 2e 52 65 66 28 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a | eBuilder.Ref())..............{.. |
| 91e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 49 6e 70 75 74 44 65 76 69 63 65 42 75 69 6c 64 | ................InputDeviceBuild |
| 9200 | 65 72 2e 69 6e 73 74 61 6e 63 65 2e 53 65 74 75 70 28 6e 65 77 20 49 6e 74 65 72 6e 65 64 53 74 | er.instance.Setup(new.InternedSt |
| 9220 | 72 69 6e 67 28 6c 61 79 6f 75 74 4e 61 6d 65 29 2c 20 6e 65 77 20 49 6e 74 65 72 6e 65 64 53 74 | ring(layoutName),.new.InternedSt |
| 9240 | 72 69 6e 67 28 6c 61 79 6f 75 74 56 61 72 69 61 6e 74 73 29 2c 0d 0a 20 20 20 20 20 20 20 20 20 | ring(layoutVariants),........... |
| 9260 | 20 20 20 20 20 20 20 20 20 20 20 64 65 76 69 63 65 44 65 73 63 72 69 70 74 69 6f 6e 3a 20 64 65 | ...........deviceDescription:.de |
| 9280 | 76 69 63 65 44 65 73 63 72 69 70 74 69 6f 6e 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | viceDescription);............... |
| 92a0 | 20 20 20 76 61 72 20 64 65 76 69 63 65 20 3d 20 49 6e 70 75 74 44 65 76 69 63 65 42 75 69 6c 64 | ...var.device.=.InputDeviceBuild |
| 92c0 | 65 72 2e 69 6e 73 74 61 6e 63 65 2e 46 69 6e 69 73 68 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 | er.instance.Finish();........... |
| 92e0 | 20 20 20 20 20 20 20 69 66 20 28 21 28 64 65 76 69 63 65 20 69 73 20 54 44 65 76 69 63 65 20 64 | .......if.(!(device.is.TDevice.d |
| 9300 | 65 76 69 63 65 4f 66 54 79 70 65 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | eviceOfType))................... |
| 9320 | 20 20 20 74 68 72 6f 77 20 6e 65 77 20 41 72 67 75 6d 65 6e 74 45 78 63 65 70 74 69 6f 6e 28 0d | ...throw.new.ArgumentException(. |
| 9340 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 24 22 45 78 70 65 63 | .........................$"Expec |
| 9360 | 74 65 64 20 64 65 76 69 63 65 20 6f 66 20 74 79 70 65 20 27 7b 74 79 70 65 6f 66 28 54 44 65 76 | ted.device.of.type.'{typeof(TDev |
| 9380 | 69 63 65 29 2e 4e 61 6d 65 7d 27 20 62 75 74 20 67 6f 74 20 64 65 76 69 63 65 20 6f 66 20 74 79 | ice).Name}'.but.got.device.of.ty |
| 93a0 | 70 65 20 27 7b 64 65 76 69 63 65 2e 47 65 74 54 79 70 65 28 29 2e 4e 61 6d 65 7d 27 20 69 6e 73 | pe.'{device.GetType().Name}'.ins |
| 93c0 | 74 65 61 64 22 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | tead",.......................... |
| 93e0 | 22 54 44 65 76 69 63 65 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 | "TDevice");....................r |
| 9400 | 65 74 75 72 6e 20 64 65 76 69 63 65 4f 66 54 79 70 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | eturn.deviceOfType;............. |
| 9420 | 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 7d 0d 0a 00 00 00 00 00 00 00 | .}..........}......}..}......... |
| 9440 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0b 00 00 00 49 6e 70 75 74 44 65 76 69 63 65 00 | ....................InputDevice. |
| 9460 | 17 00 00 00 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 6e 70 75 74 53 79 73 74 65 6d 00 | ....UnityEngine.InputSystem. |