summaryrefslogtreecommitdiff
path: root/Library/Artifacts/47/47118e02a90c2d14f23f1655dba308dd
blob: 3dd1109f0becfce2f31d0fa3131116c46524fd91 (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 88 2c 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 cc 77 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 .w..............................
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 18 00 00 00 49 6e 70 75 74 41 63 74 69 6f 6e 45 64 69 74 6f 72 54 6f 6f ............InputActionEditorToo
10a0 6c 62 61 72 30 77 00 00 23 69 66 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0d 0a 75 73 69 6e 67 20 lbar0w..#if.UNITY_EDITOR..using.
10c0 53 79 73 74 65 6d 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 43 6f 6c 6c 65 63 74 69 6f 6e System;..using.System.Collection
10e0 73 2e 47 65 6e 65 72 69 63 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 4c 69 6e 71 3b 0d 0a s.Generic;..using.System.Linq;..
1100 75 73 69 6e 67 20 55 6e 69 74 79 45 64 69 74 6f 72 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 using.UnityEditor;..using.UnityE
1120 64 69 74 6f 72 2e 49 4d 47 55 49 2e 43 6f 6e 74 72 6f 6c 73 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 ditor.IMGUI.Controls;..using.Uni
1140 74 79 45 64 69 74 6f 72 49 6e 74 65 72 6e 61 6c 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e tyEditorInternal;..using.UnityEn
1160 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 0d 0a 2f gine.InputSystem.Utilities;..../
1180 2f 2f 2f 54 4f 44 4f 3a 20 62 65 74 74 65 72 20 6d 65 74 68 6f 64 20 66 6f 72 20 63 72 65 61 74 ///TODO:.better.method.for.creat
11a0 69 6e 67 20 64 69 73 70 6c 61 79 20 6e 61 6d 65 73 20 74 68 61 6e 20 49 6e 70 75 74 43 6f 6e 74 ing.display.names.than.InputCont
11c0 72 6f 6c 50 61 74 68 2e 54 72 79 47 65 74 44 65 76 69 63 65 4c 61 79 6f 75 74 0d 0a 0d 0a 2f 2f rolPath.TryGetDeviceLayout....//
11e0 2f 2f 46 49 58 4d 45 3a 20 44 65 76 69 63 65 20 72 65 71 75 69 72 65 6d 65 6e 74 73 20 6c 69 73 //FIXME:.Device.requirements.lis
1200 74 20 69 6e 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 20 70 6f 70 75 70 20 6d 75 73 74 20 6d t.in.control.scheme.popup.must.m
1220 65 6e 74 69 6f 6e 20 65 78 70 6c 69 63 69 74 6c 79 20 74 68 61 74 20 74 68 61 74 20 69 73 20 77 ention.explicitly.that.that.is.w
1240 68 61 74 20 69 74 20 69 73 0d 0a 0d 0a 6e 61 6d 65 73 70 61 63 65 20 55 6e 69 74 79 45 6e 67 69 hat.it.is....namespace.UnityEngi
1260 6e 65 2e 49 6e 70 75 74 53 79 73 74 65 6d 2e 45 64 69 74 6f 72 0d 0a 7b 0d 0a 20 20 20 20 2f 2f ne.InputSystem.Editor..{......//
1280 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 2f 2f 2f 20 54 6f 6f 6c 62 61 72 20 69 6e 20 /.<summary>......///.Toolbar.in.
12a0 69 6e 70 75 74 20 61 63 74 69 6f 6e 20 61 73 73 65 74 20 65 64 69 74 6f 72 2e 0d 0a 20 20 20 20 input.action.asset.editor.......
12c0 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 ///.</summary>......///.<remarks
12e0 3e 0d 0a 20 20 20 20 2f 2f 2f 20 41 6c 6c 6f 77 73 20 65 64 69 74 69 6e 67 20 61 6e 64 20 73 65 >......///.Allows.editing.and.se
1300 6c 65 63 74 69 6e 67 20 66 72 6f 6d 20 74 68 65 20 73 65 74 20 6f 66 20 63 6f 6e 74 72 6f 6c 20 lecting.from.the.set.of.control.
1320 73 63 68 65 6d 65 73 20 61 73 20 77 65 6c 6c 20 61 73 20 73 65 6c 65 63 74 69 6e 67 20 66 72 6f schemes.as.well.as.selecting.fro
1340 6d 20 74 68 65 0d 0a 20 20 20 20 2f 2f 2f 20 73 65 74 20 6f 66 20 64 65 76 69 63 65 20 72 65 71 m.the......///.set.of.device.req
1360 75 69 72 65 6d 65 6e 74 73 20 77 69 74 68 69 6e 20 74 68 65 20 63 75 72 72 65 6e 74 6c 79 20 73 uirements.within.the.currently.s
1380 65 6c 65 63 74 65 64 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 2e 0d 0a 20 20 20 20 2f 2f 2f elected.control.scheme.......///
13a0 0d 0a 20 20 20 20 2f 2f 2f 20 41 6c 73 6f 20 63 6f 6e 74 72 6f 6c 73 20 73 61 76 69 6e 67 20 61 ......///.Also.controls.saving.a
13c0 6e 64 20 68 61 73 20 74 68 65 20 67 6c 6f 62 61 6c 20 73 65 61 72 63 68 20 74 65 78 74 20 66 69 nd.has.the.global.search.text.fi
13e0 65 6c 64 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 eld.......///.</remarks>......//
1400 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 45 64 69 74 /.<seealso.cref="InputActionEdit
1420 6f 72 57 69 6e 64 6f 77 22 2f 3e 0d 0a 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 61 62 6c 65 5d 0d orWindow"/>......[Serializable].
1440 0a 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 63 6c 61 73 73 20 49 6e 70 75 74 41 63 74 69 6f 6e 45 .....internal.class.InputActionE
1460 64 69 74 6f 72 54 6f 6f 6c 62 61 72 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 70 75 62 ditorToolbar......{..........pub
1480 6c 69 63 20 76 6f 69 64 20 4f 6e 47 55 49 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 lic.void.OnGUI()..........{.....
14a0 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 48 6f .........EditorGUILayout.BeginHo
14c0 72 69 7a 6f 6e 74 61 6c 28 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 74 6f 6f 6c 62 61 72 29 3b 0d rizontal(EditorStyles.toolbar);.
14e0 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 53 63 68 65 6d 65 53 65 6c 65 63 74 69 6f 6e .............DrawSchemeSelection
1500 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 44 65 76 69 63 65 46 69 6c 74 65 ();..............DrawDeviceFilte
1520 72 53 65 6c 65 63 74 69 6f 6e 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 rSelection();..............if.(!
1540 49 6e 70 75 74 45 64 69 74 6f 72 55 73 65 72 53 65 74 74 69 6e 67 73 2e 61 75 74 6f 53 61 76 65 InputEditorUserSettings.autoSave
1560 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 InputActionAssets)..............
1580 20 20 20 20 44 72 61 77 53 61 76 65 42 75 74 74 6f 6e 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 ....DrawSaveButton();...........
15a0 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 46 6c 65 78 69 62 6c 65 53 70 61 63 65 28 29 3b 0d 0a 20 ...GUILayout.FlexibleSpace();...
15c0 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 41 75 74 6f 53 61 76 65 54 6f 67 67 6c 65 28 29 3b ...........DrawAutoSaveToggle();
15e0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 53 70 61 63 65 28 35 29 ..............GUILayout.Space(5)
1600 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 53 65 61 72 63 68 46 69 65 6c 64 28 29 ;..............DrawSearchField()
1620 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 53 70 61 63 65 28 35 ;..............GUILayout.Space(5
1640 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e );..............EditorGUILayout.
1660 45 6e 64 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 EndHorizontal();..........}.....
1680 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 44 72 61 77 53 63 68 65 6d 65 53 65 .......private.void.DrawSchemeSe
16a0 6c 65 63 74 69 6f 6e 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 lection()..........{............
16c0 20 20 76 61 72 20 62 75 74 74 6f 6e 47 55 49 20 3d 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d ..var.buttonGUI.=.m_ControlSchem
16e0 65 73 2e 4c 65 6e 67 74 68 53 61 66 65 28 29 20 3e 20 30 0d 0a 20 20 20 20 20 20 20 20 20 20 20 es.LengthSafe().>.0.............
1700 20 20 20 20 20 3f 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 73 65 6c 65 63 74 65 64 43 6f .....?.new.GUIContent(selectedCo
1720 6e 74 72 6f 6c 53 63 68 65 6d 65 3f 2e 6e 61 6d 65 20 3f 3f 20 22 41 6c 6c 20 43 6f 6e 74 72 6f ntrolScheme?.name.??."All.Contro
1740 6c 20 53 63 68 65 6d 65 73 22 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3a 20 6e l.Schemes")..................:.n
1760 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 4e 6f 20 43 6f 6e 74 72 6f 6c 20 53 63 68 65 6d 65 ew.GUIContent("No.Control.Scheme
1780 73 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 62 75 74 74 6f 6e 52 65 s");................var.buttonRe
17a0 63 74 20 3d 20 47 55 49 4c 61 79 6f 75 74 55 74 69 6c 69 74 79 2e 47 65 74 52 65 63 74 28 62 75 ct.=.GUILayoutUtility.GetRect(bu
17c0 74 74 6f 6e 47 55 49 2c 20 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 74 6f 6f 6c 62 61 72 50 6f 70 ttonGUI,.EditorStyles.toolbarPop
17e0 75 70 2c 20 47 55 49 4c 61 79 6f 75 74 2e 4d 69 6e 57 69 64 74 68 28 6b 5f 4d 69 6e 69 6d 75 6d up,.GUILayout.MinWidth(k_Minimum
1800 42 75 74 74 6f 6e 57 69 64 74 68 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 ButtonWidth));................if
1820 20 28 47 55 49 2e 42 75 74 74 6f 6e 28 62 75 74 74 6f 6e 52 65 63 74 2c 20 62 75 74 74 6f 6e 47 .(GUI.Button(buttonRect,.buttonG
1840 55 49 2c 20 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 74 6f 6f 6c 62 61 72 50 6f 70 75 70 29 29 0d UI,.EditorStyles.toolbarPopup)).
1860 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .............{..................
1880 2f 2f 20 50 6f 70 75 70 57 69 6e 64 6f 77 2e 53 68 6f 77 20 61 6c 72 65 61 64 79 20 74 61 6b 65 //.PopupWindow.Show.already.take
18a0 73 20 74 68 65 20 63 75 72 72 65 6e 74 20 4f 6e 47 55 49 20 45 64 69 74 6f 72 57 69 6e 64 6f 77 s.the.current.OnGUI.EditorWindow
18c0 20 63 6f 6e 74 65 78 74 20 69 6e 74 6f 20 61 63 63 6f 75 6e 74 20 66 6f 72 20 77 69 6e 64 6f 77 .context.into.account.for.window
18e0 20 63 6f 6f 72 64 69 6e 61 74 65 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f .coordinates.................../
1900 2f 20 48 6f 77 65 76 65 72 2c 20 6f 6e 20 6d 61 63 4f 53 2c 20 6d 65 6e 75 20 63 6f 6d 6d 61 6e /.However,.on.macOS,.menu.comman
1920 64 73 20 61 72 65 20 70 65 72 66 6f 72 6d 65 64 20 61 73 79 6e 63 68 72 6f 6e 6f 75 73 6c 79 2c ds.are.performed.asynchronously,
1940 20 73 6f 20 77 65 20 64 6f 6e 27 74 20 68 61 76 65 20 61 20 63 75 72 72 65 6e 74 20 4f 6e 47 55 .so.we.don't.have.a.current.OnGU
1960 49 20 63 6f 6e 74 65 78 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 I.context...................//.S
1980 6f 20 69 6e 20 74 68 61 74 20 63 61 73 65 2c 20 77 65 20 6e 65 65 64 20 74 6f 20 74 72 61 6e 73 o.in.that.case,.we.need.to.trans
19a0 6c 61 74 65 20 74 68 65 20 72 65 63 74 20 74 6f 20 73 63 72 65 65 6e 20 63 6f 6f 72 64 69 6e 61 late.the.rect.to.screen.coordina
19c0 74 65 73 2e 20 44 6f 6e 27 74 20 64 6f 20 74 68 61 74 20 6f 6e 20 77 69 6e 64 6f 77 73 2c 20 61 tes..Don't.do.that.on.windows,.a
19e0 73 20 77 65 20 77 69 6c 6c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 6f 76 s.we.will..................//.ov
1a00 65 72 63 6f 6d 70 65 6e 73 61 74 65 20 6f 74 68 65 72 77 69 73 65 2e 0d 0a 20 20 20 20 20 20 20 ercompensate.otherwise..........
1a20 20 20 20 20 20 20 20 20 20 69 66 20 28 41 70 70 6c 69 63 61 74 69 6f 6e 2e 70 6c 61 74 66 6f 72 .........if.(Application.platfor
1a40 6d 20 3d 3d 20 52 75 6e 74 69 6d 65 50 6c 61 74 66 6f 72 6d 2e 4f 53 58 45 64 69 74 6f 72 29 0d m.==.RuntimePlatform.OSXEditor).
1a60 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 75 74 74 6f 6e 52 65 63 74 20 .....................buttonRect.
1a80 3d 20 6e 65 77 20 52 65 63 74 28 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 47 55 49 54 =.new.Rect(EditorGUIUtility.GUIT
1aa0 6f 53 63 72 65 65 6e 50 6f 69 6e 74 28 6e 65 77 20 56 65 63 74 6f 72 32 28 62 75 74 74 6f 6e 52 oScreenPoint(new.Vector2(buttonR
1ac0 65 63 74 2e 78 2c 20 62 75 74 74 6f 6e 52 65 63 74 2e 79 29 29 2c 20 56 65 63 74 6f 72 32 2e 7a ect.x,.buttonRect.y)),.Vector2.z
1ae0 65 72 6f 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6d 65 6e ero);....................var.men
1b00 75 20 3d 20 6e 65 77 20 47 65 6e 65 72 69 63 4d 65 6e 75 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 u.=.new.GenericMenu();..........
1b20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 64 64 20 65 6e 74 72 69 65 73 20 74 6f 20 73 65 6c 65 ..........//.Add.entries.to.sele
1b40 63 74 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 2c 20 69 66 20 77 65 20 68 61 76 65 20 73 6f ct.control.scheme,.if.we.have.so
1b60 6d 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 43 6f 6e 74 72 me...................if.(m_Contr
1b80 6f 6c 53 63 68 65 6d 65 73 2e 4c 65 6e 67 74 68 53 61 66 65 28 29 20 3e 20 30 29 0d 0a 20 20 20 olSchemes.LengthSafe().>.0).....
1ba0 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .............{..................
1bc0 20 20 20 20 6d 65 6e 75 2e 41 64 64 49 74 65 6d 28 73 5f 41 6c 6c 43 6f 6e 74 72 6f 6c 53 63 68 ....menu.AddItem(s_AllControlSch
1be0 65 6d 65 73 2c 20 6d 5f 53 65 6c 65 63 74 65 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 49 6e 64 emes,.m_SelectedControlSchemeInd
1c00 65 78 20 3d 3d 20 2d 31 2c 20 4f 6e 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 53 65 6c 65 63 74 65 ex.==.-1,.OnControlSchemeSelecte
1c20 64 2c 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 d,.null);......................v
1c40 61 72 20 73 65 6c 65 63 74 65 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 4e 61 6d 65 20 3d 20 6d ar.selectedControlSchemeName.=.m
1c60 5f 53 65 6c 65 63 74 65 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 49 6e 64 65 78 20 3d 3d 20 2d _SelectedControlSchemeIndex.==.-
1c80 31 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 3f 20 6e 75 6c 1..........................?.nul
1ca0 6c 20 3a 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 5b 6d 5f 53 65 6c 65 63 74 65 64 43 l.:.m_ControlSchemes[m_SelectedC
1cc0 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 49 6e 64 65 78 5d 2e 6e 61 6d 65 3b 0d 0a 20 20 20 20 20 20 ontrolSchemeIndex].name;........
1ce0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 65 61 63 68 20 28 76 61 72 20 63 6f 6e 74 72 ..............foreach.(var.contr
1d00 6f 6c 53 63 68 65 6d 65 20 69 6e 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 2e 4f 72 64 olScheme.in.m_ControlSchemes.Ord
1d20 65 72 42 79 28 78 20 3d 3e 20 78 2e 6e 61 6d 65 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 erBy(x.=>.x.name))..............
1d40 20 20 20 20 20 20 20 20 20 20 20 20 6d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 49 ............menu.AddItem(new.GUI
1d60 43 6f 6e 74 65 6e 74 28 63 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 2e 6e 61 6d 65 29 2c 0d 0a 20 20 Content(controlScheme.name),....
1d80 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 63 6f 6e 74 72 6f ..........................contro
1da0 6c 53 63 68 65 6d 65 2e 6e 61 6d 65 20 3d 3d 20 73 65 6c 65 63 74 65 64 43 6f 6e 74 72 6f 6c 53 lScheme.name.==.selectedControlS
1dc0 63 68 65 6d 65 4e 61 6d 65 2c 20 4f 6e 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 53 65 6c 65 63 74 chemeName,.OnControlSchemeSelect
1de0 65 64 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ed,.............................
1e00 20 63 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 2e 6e 61 6d 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 .controlScheme.name);...........
1e20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 65 6e 75 2e 41 64 64 53 65 70 61 72 61 74 6f 72 28 73 .............menu.AddSeparator(s
1e40 74 72 69 6e 67 2e 45 6d 70 74 79 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d tring.Empty);..................}
1e60 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 64 64 20 65 6e 74 72 69 ....................//.Add.entri
1e80 65 73 20 74 6f 20 61 64 64 2f 65 64 69 74 2f 64 75 70 6c 69 63 61 74 65 2f 64 65 6c 65 74 65 20 es.to.add/edit/duplicate/delete.
1ea0 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 control.schemes.................
1ec0 20 20 6d 65 6e 75 2e 41 64 64 49 74 65 6d 28 73 5f 41 64 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d ..menu.AddItem(s_AddControlSchem
1ee0 65 4c 61 62 65 6c 2c 20 66 61 6c 73 65 2c 20 4f 6e 41 64 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d eLabel,.false,.OnAddControlSchem
1f00 65 2c 20 62 75 74 74 6f 6e 52 65 63 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 e,.buttonRect);.................
1f20 20 69 66 20 28 6d 5f 53 65 6c 65 63 74 65 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 49 6e 64 65 .if.(m_SelectedControlSchemeInde
1f40 78 20 3e 3d 20 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 x.>=.0)..................{......
1f60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 65 6e 75 2e 41 64 64 49 74 65 6d 28 73 5f 45 ................menu.AddItem(s_E
1f80 64 69 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 4c 61 62 65 6c 2c 20 66 61 6c 73 65 2c 20 4f 6e ditControlSchemeLabel,.false,.On
1fa0 45 64 69 74 53 65 6c 65 63 74 65 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 2c 20 62 75 74 74 6f EditSelectedControlScheme,.butto
1fc0 6e 52 65 63 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 65 6e nRect);......................men
1fe0 75 2e 41 64 64 49 74 65 6d 28 73 5f 44 75 70 6c 69 63 61 74 65 43 6f 6e 74 72 6f 6c 53 63 68 65 u.AddItem(s_DuplicateControlSche
2000 6d 65 4c 61 62 65 6c 2c 20 66 61 6c 73 65 2c 20 4f 6e 44 75 70 6c 69 63 61 74 65 43 6f 6e 74 72 meLabel,.false,.OnDuplicateContr
2020 6f 6c 53 63 68 65 6d 65 2c 20 62 75 74 74 6f 6e 52 65 63 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 olScheme,.buttonRect);..........
2040 20 20 20 20 20 20 20 20 20 20 20 20 6d 65 6e 75 2e 41 64 64 49 74 65 6d 28 73 5f 44 65 6c 65 74 ............menu.AddItem(s_Delet
2060 65 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 4c 61 62 65 6c 2c 20 66 61 6c 73 65 2c 20 4f 6e 44 65 eControlSchemeLabel,.false,.OnDe
2080 6c 65 74 65 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 leteControlScheme);.............
20a0 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0d 0a 20 20 .....}..................else....
20c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..............{.................
20e0 20 20 20 20 20 6d 65 6e 75 2e 41 64 64 44 69 73 61 62 6c 65 64 49 74 65 6d 28 73 5f 45 64 69 74 .....menu.AddDisabledItem(s_Edit
2100 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 4c 61 62 65 6c 2c 20 66 61 6c 73 65 29 3b 0d 0a 20 20 20 ControlSchemeLabel,.false);.....
2120 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 65 6e 75 2e 41 64 64 44 69 73 61 62 6c 65 .................menu.AddDisable
2140 64 49 74 65 6d 28 73 5f 44 75 70 6c 69 63 61 74 65 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 4c 61 dItem(s_DuplicateControlSchemeLa
2160 62 65 6c 2c 20 66 61 6c 73 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 bel,.false);....................
2180 20 20 6d 65 6e 75 2e 41 64 64 44 69 73 61 62 6c 65 64 49 74 65 6d 28 73 5f 44 65 6c 65 74 65 43 ..menu.AddDisabledItem(s_DeleteC
21a0 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 4c 61 62 65 6c 2c 20 66 61 6c 73 65 29 3b 0d 0a 20 20 20 20 ontrolSchemeLabel,.false);......
21c0 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ............}...................
21e0 20 6d 65 6e 75 2e 53 68 6f 77 41 73 43 6f 6e 74 65 78 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 .menu.ShowAsContext();..........
2200 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 20 70 72 69 76 ....}..........}............priv
2220 61 74 65 20 76 6f 69 64 20 44 72 61 77 44 65 76 69 63 65 46 69 6c 74 65 72 53 65 6c 65 63 74 69 ate.void.DrawDeviceFilterSelecti
2240 6f 6e 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 on()..........{..............//.
2260 4c 61 7a 79 2d 69 6e 69 74 69 61 6c 69 7a 65 20 6c 69 73 74 20 6f 66 20 47 55 49 43 6f 6e 74 65 Lazy-initialize.list.of.GUIConte
2280 6e 74 73 20 74 68 61 74 20 72 65 70 72 65 73 65 6e 74 20 65 61 63 68 20 69 6e 64 69 76 69 64 75 nts.that.represent.each.individu
22a0 61 6c 20 64 65 76 69 63 65 20 72 65 71 75 69 72 65 6d 65 6e 74 2e 0d 0a 20 20 20 20 20 20 20 20 al.device.requirement...........
22c0 20 20 20 20 69 66 20 28 6d 5f 53 65 6c 65 63 74 65 64 53 63 68 65 6d 65 44 65 76 69 63 65 52 65 ....if.(m_SelectedSchemeDeviceRe
22e0 71 75 69 72 65 6d 65 6e 74 4e 61 6d 65 73 20 3d 3d 20 6e 75 6c 6c 20 26 26 20 6d 5f 43 6f 6e 74 quirementNames.==.null.&&.m_Cont
2300 72 6f 6c 53 63 68 65 6d 65 73 2e 4c 65 6e 67 74 68 53 61 66 65 28 29 20 3e 20 30 20 26 26 20 6d rolSchemes.LengthSafe().>.0.&&.m
2320 5f 53 65 6c 65 63 74 65 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 49 6e 64 65 78 20 3e 3d 20 30 _SelectedControlSchemeIndex.>=.0
2340 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 )..............{................
2360 20 20 6d 5f 53 65 6c 65 63 74 65 64 53 63 68 65 6d 65 44 65 76 69 63 65 52 65 71 75 69 72 65 6d ..m_SelectedSchemeDeviceRequirem
2380 65 6e 74 4e 61 6d 65 73 20 3d 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 5b 6d 5f 53 65 entNames.=.m_ControlSchemes[m_Se
23a0 6c 65 63 74 65 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 49 6e 64 65 78 5d 0d 0a 20 20 20 20 20 lectedControlSchemeIndex].......
23c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2e 64 65 76 69 63 65 52 65 71 75 69 72 65 6d 65 6e ................deviceRequiremen
23e0 74 73 2e 53 65 6c 65 63 74 28 78 20 3d 3e 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 44 65 ts.Select(x.=>.new.GUIContent(De
2400 76 69 63 65 52 65 71 75 69 72 65 6d 65 6e 74 54 6f 44 69 73 70 6c 61 79 53 74 72 69 6e 67 28 78 viceRequirementToDisplayString(x
2420 29 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2e 54 6f 41 72 72 61 ))).......................ToArra
2440 79 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 y();..............}.............
2460 20 20 20 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 44 69 73 61 62 6c 65 64 47 72 6f 75 70 28 ...EditorGUI.BeginDisabledGroup(
2480 6d 5f 53 65 6c 65 63 74 65 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 49 6e 64 65 78 20 3c 20 30 m_SelectedControlSchemeIndex.<.0
24a0 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 53 65 6c 65 63 74 65 64 53 63 );..............if.(m_SelectedSc
24c0 68 65 6d 65 44 65 76 69 63 65 52 65 71 75 69 72 65 6d 65 6e 74 4e 61 6d 65 73 2e 4c 65 6e 67 74 hemeDeviceRequirementNames.Lengt
24e0 68 53 61 66 65 28 29 20 3d 3d 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 hSafe().==.0)..............{....
2500 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 42 75 74 74 6f 6e 28 73 ..............GUILayout.Button(s
2520 5f 41 6c 6c 44 65 76 69 63 65 73 4c 61 62 65 6c 2c 20 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 74 _AllDevicesLabel,.EditorStyles.t
2540 6f 6f 6c 62 61 72 50 6f 70 75 70 2c 20 47 55 49 4c 61 79 6f 75 74 2e 4d 69 6e 57 69 64 74 68 28 oolbarPopup,.GUILayout.MinWidth(
2560 6b 5f 4d 69 6e 69 6d 75 6d 42 75 74 74 6f 6e 57 69 64 74 68 29 29 3b 0d 0a 20 20 20 20 20 20 20 k_MinimumButtonWidth));.........
2580 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 20 69 66 20 28 47 55 49 .....}..............else.if.(GUI
25a0 4c 61 79 6f 75 74 2e 42 75 74 74 6f 6e 28 6d 5f 53 65 6c 65 63 74 65 64 44 65 76 69 63 65 52 65 Layout.Button(m_SelectedDeviceRe
25c0 71 75 69 72 65 6d 65 6e 74 49 6e 64 65 78 20 3c 20 30 20 3f 20 73 5f 41 6c 6c 44 65 76 69 63 65 quirementIndex.<.0.?.s_AllDevice
25e0 73 4c 61 62 65 6c 20 3a 20 6d 5f 53 65 6c 65 63 74 65 64 53 63 68 65 6d 65 44 65 76 69 63 65 52 sLabel.:.m_SelectedSchemeDeviceR
2600 65 71 75 69 72 65 6d 65 6e 74 4e 61 6d 65 73 5b 6d 5f 53 65 6c 65 63 74 65 64 44 65 76 69 63 65 equirementNames[m_SelectedDevice
2620 52 65 71 75 69 72 65 6d 65 6e 74 49 6e 64 65 78 5d 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 RequirementIndex],..............
2640 20 20 20 20 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 74 6f 6f 6c 62 61 72 50 6f 70 75 70 2c 20 47 ....EditorStyles.toolbarPopup,.G
2660 55 49 4c 61 79 6f 75 74 2e 4d 69 6e 57 69 64 74 68 28 6b 5f 4d 69 6e 69 6d 75 6d 42 75 74 74 6f UILayout.MinWidth(k_MinimumButto
2680 6e 57 69 64 74 68 29 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 nWidth)))..............{........
26a0 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6d 65 6e 75 20 3d 20 6e 65 77 20 47 65 6e 65 72 69 63 ..........var.menu.=.new.Generic
26c0 4d 65 6e 75 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 65 6e 75 2e 41 64 Menu();..................menu.Ad
26e0 64 49 74 65 6d 28 73 5f 41 6c 6c 44 65 76 69 63 65 73 4c 61 62 65 6c 2c 20 6d 5f 53 65 6c 65 63 dItem(s_AllDevicesLabel,.m_Selec
2700 74 65 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 49 6e 64 65 78 20 3d 3d 20 2d 31 2c 20 4f 6e 53 tedControlSchemeIndex.==.-1,.OnS
2720 65 6c 65 63 74 65 64 44 65 76 69 63 65 43 68 61 6e 67 65 64 2c 20 2d 31 29 3b 0d 0a 20 20 20 20 electedDeviceChanged,.-1);......
2740 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 76 61 72 20 69 20 3d 20 30 3b 20 69 20 3c 20 ............for.(var.i.=.0;.i.<.
2760 6d 5f 53 65 6c 65 63 74 65 64 53 63 68 65 6d 65 44 65 76 69 63 65 52 65 71 75 69 72 65 6d 65 6e m_SelectedSchemeDeviceRequiremen
2780 74 4e 61 6d 65 73 2e 4c 65 6e 67 74 68 3b 20 69 2b 2b 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 tNames.Length;.i++).............
27a0 20 20 20 20 20 20 20 20 20 6d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6d 5f 53 65 6c 65 63 74 65 64 .........menu.AddItem(m_Selected
27c0 53 63 68 65 6d 65 44 65 76 69 63 65 52 65 71 75 69 72 65 6d 65 6e 74 4e 61 6d 65 73 5b 69 5d 2c SchemeDeviceRequirementNames[i],
27e0 20 6d 5f 53 65 6c 65 63 74 65 64 44 65 76 69 63 65 52 65 71 75 69 72 65 6d 65 6e 74 49 6e 64 65 .m_SelectedDeviceRequirementInde
2800 78 20 3d 3d 20 69 2c 20 4f 6e 53 65 6c 65 63 74 65 64 44 65 76 69 63 65 43 68 61 6e 67 65 64 2c x.==.i,.OnSelectedDeviceChanged,
2820 20 69 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 65 6e 75 2e 53 68 6f 77 41 .i);..................menu.ShowA
2840 73 43 6f 6e 74 65 78 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 sContext();..............}......
2860 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 45 6e 64 44 69 73 61 62 6c 65 64 47 72 6f ........EditorGUI.EndDisabledGro
2880 75 70 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 up();..........}............priv
28a0 61 74 65 20 76 6f 69 64 20 44 72 61 77 53 61 76 65 42 75 74 74 6f 6e 28 29 0d 0a 20 20 20 20 20 ate.void.DrawSaveButton().......
28c0 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 ...{..............EditorGUI.Begi
28e0 6e 44 69 73 61 62 6c 65 64 47 72 6f 75 70 28 21 6d 5f 49 73 44 69 72 74 79 29 3b 0d 0a 20 20 20 nDisabledGroup(!m_IsDirty);.....
2900 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 53 70 61 63 65 28 29 .........EditorGUILayout.Space()
2920 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 4c 61 79 6f 75 74 2e 42 75 74 ;..............if.(GUILayout.But
2940 74 6f 6e 28 73 5f 53 61 76 65 41 73 73 65 74 4c 61 62 65 6c 2c 20 45 64 69 74 6f 72 53 74 79 6c ton(s_SaveAssetLabel,.EditorStyl
2960 65 73 2e 74 6f 6f 6c 62 61 72 42 75 74 74 6f 6e 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 es.toolbarButton))..............
2980 20 20 20 20 6f 6e 53 61 76 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f ....onSave();..............Edito
29a0 72 47 55 49 2e 45 6e 64 44 69 73 61 62 6c 65 64 47 72 6f 75 70 28 29 3b 0d 0a 20 20 20 20 20 20 rGUI.EndDisabledGroup();........
29c0 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 44 72 61 77 ..}............private.void.Draw
29e0 41 75 74 6f 53 61 76 65 54 6f 67 67 6c 65 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 AutoSaveToggle()..........{.....
2a00 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 46 49 58 4d 45 3a 20 55 73 69 6e 67 20 61 20 6e 6f 72 6d .........////FIXME:.Using.a.norm
2a20 61 6c 20 54 6f 67 67 6c 65 20 73 74 79 6c 65 20 77 69 74 68 20 61 20 6d 69 6e 69 46 6f 6e 74 2c al.Toggle.style.with.a.miniFont,
2a40 20 49 20 63 61 6e 27 74 20 67 65 74 20 74 68 65 20 22 41 75 74 6f 2d 53 61 76 65 22 20 6c 61 62 .I.can't.get.the."Auto-Save".lab
2a60 65 6c 20 74 6f 20 61 6c 69 67 6e 20 70 72 6f 70 65 72 6c 79 20 6f 6e 20 74 68 65 20 76 65 72 74 el.to.align.properly.on.the.vert
2a80 69 63 61 6c 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 20 20 20 20 20 20 20 54 68 ical...............////.......Th
2aa0 65 20 77 6f 72 6b 61 72 6f 75 6e 64 20 68 65 72 65 20 73 70 6c 69 74 73 20 69 74 20 69 6e 74 6f e.workaround.here.splits.it.into
2ac0 20 61 20 74 6f 67 67 6c 65 20 77 69 74 68 20 61 6e 20 65 6d 70 74 79 20 6c 61 62 65 6c 20 70 6c .a.toggle.with.an.empty.label.pl
2ae0 75 73 20 61 6e 20 65 78 74 72 61 20 6c 61 62 65 6c 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 us.an.extra.label...............
2b00 2f 2f 2f 2f 20 20 20 20 20 20 20 4e 6f 74 20 75 73 69 6e 67 20 45 64 69 74 6f 72 53 74 79 6c 65 ////.......Not.using.EditorStyle
2b20 73 2e 74 6f 6f 6c 62 61 72 42 75 74 74 6f 6e 20 68 65 72 65 20 61 73 20 69 74 20 6d 61 6b 65 73 s.toolbarButton.here.as.it.makes
2b40 20 69 74 20 68 61 72 64 20 74 6f 20 74 65 6c 6c 20 74 68 61 74 20 69 74 27 73 20 61 20 74 6f 67 .it.hard.to.tell.that.it's.a.tog
2b60 67 6c 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 5f 4d 69 6e 69 54 6f 67 67 gle...............if.(s_MiniTogg
2b80 6c 65 53 74 79 6c 65 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d leStyle.==.null)..............{.
2ba0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 4d 69 6e 69 54 6f 67 67 6c 65 53 74 79 .................s_MiniToggleSty
2bc0 6c 65 20 3d 20 6e 65 77 20 47 55 49 53 74 79 6c 65 28 22 54 6f 67 67 6c 65 22 29 0d 0a 20 20 20 le.=.new.GUIStyle("Toggle").....
2be0 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .............{..................
2c00 20 20 20 20 66 6f 6e 74 20 3d 20 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 6d 69 6e 69 46 6f 6e 74 ....font.=.EditorStyles.miniFont
2c20 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 61 72 67 69 6e 20 3d 20 ,......................margin.=.
2c40 6e 65 77 20 52 65 63 74 4f 66 66 73 65 74 28 30 2c 20 30 2c 20 31 2c 20 30 29 2c 0d 0a 20 20 20 new.RectOffset(0,.0,.1,.0),.....
2c60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 61 64 64 69 6e 67 20 3d 20 6e 65 77 20 52 .................padding.=.new.R
2c80 65 63 74 4f 66 66 73 65 74 28 30 2c 20 31 36 2c 20 30 2c 20 30 29 0d 0a 20 20 20 20 20 20 20 20 ectOffset(0,.16,.0,.0)..........
2ca0 20 20 20 20 20 20 20 20 7d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 4d 69 ........};..................s_Mi
2cc0 6e 69 4c 61 62 65 6c 53 74 79 6c 65 20 3d 20 6e 65 77 20 47 55 49 53 74 79 6c 65 28 22 4c 61 62 niLabelStyle.=.new.GUIStyle("Lab
2ce0 65 6c 22 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 el")..................{.........
2d00 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e 74 20 3d 20 45 64 69 74 6f 72 53 74 79 6c 65 73 .............font.=.EditorStyles
2d20 2e 6d 69 6e 69 46 6f 6e 74 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .miniFont,......................
2d40 6d 61 72 67 69 6e 20 3d 20 6e 65 77 20 52 65 63 74 4f 66 66 73 65 74 28 30 2c 20 30 2c 20 33 2c margin.=.new.RectOffset(0,.0,.3,
2d60 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 3b 0d 0a 20 20 20 20 20 20 20 .0)..................};.........
2d80 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 75 74 6f 53 61 .....}................var.autoSa
2da0 76 65 4e 65 77 20 3d 20 47 55 49 4c 61 79 6f 75 74 2e 54 6f 67 67 6c 65 28 49 6e 70 75 74 45 64 veNew.=.GUILayout.Toggle(InputEd
2dc0 69 74 6f 72 55 73 65 72 53 65 74 74 69 6e 67 73 2e 61 75 74 6f 53 61 76 65 49 6e 70 75 74 41 63 itorUserSettings.autoSaveInputAc
2de0 74 69 6f 6e 41 73 73 65 74 73 2c 20 22 22 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 tionAssets,."",.................
2e00 20 73 5f 4d 69 6e 69 54 6f 67 67 6c 65 53 74 79 6c 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 .s_MiniToggleStyle);............
2e20 20 20 47 55 49 4c 61 79 6f 75 74 2e 4c 61 62 65 6c 28 73 5f 41 75 74 6f 53 61 76 65 4c 61 62 65 ..GUILayout.Label(s_AutoSaveLabe
2e40 6c 2c 20 73 5f 4d 69 6e 69 4c 61 62 65 6c 53 74 79 6c 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 l,.s_MiniLabelStyle);...........
2e60 20 20 20 69 66 20 28 61 75 74 6f 53 61 76 65 4e 65 77 20 21 3d 20 49 6e 70 75 74 45 64 69 74 6f ...if.(autoSaveNew.!=.InputEdito
2e80 72 55 73 65 72 53 65 74 74 69 6e 67 73 2e 61 75 74 6f 53 61 76 65 49 6e 70 75 74 41 63 74 69 6f rUserSettings.autoSaveInputActio
2ea0 6e 41 73 73 65 74 73 20 26 26 20 61 75 74 6f 53 61 76 65 4e 65 77 20 26 26 20 6d 5f 49 73 44 69 nAssets.&&.autoSaveNew.&&.m_IsDi
2ec0 72 74 79 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 rty)..............{.............
2ee0 20 20 20 20 20 2f 2f 20 49 66 20 69 74 20 63 68 61 6e 67 65 64 20 66 72 6f 6d 20 64 69 73 61 62 .....//.If.it.changed.from.disab
2f00 6c 65 64 20 74 6f 20 65 6e 61 62 6c 65 64 2c 20 70 65 72 66 6f 72 6d 20 61 6e 20 69 6e 69 74 69 led.to.enabled,.perform.an.initi
2f20 61 6c 20 73 61 76 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6f 6e 53 61 76 65 al.save...................onSave
2f40 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 ();..............}..............
2f60 20 20 49 6e 70 75 74 45 64 69 74 6f 72 55 73 65 72 53 65 74 74 69 6e 67 73 2e 61 75 74 6f 53 61 ..InputEditorUserSettings.autoSa
2f80 76 65 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 73 20 3d 20 61 75 74 6f 53 61 76 65 4e 65 veInputActionAssets.=.autoSaveNe
2fa0 77 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 53 70 61 63 w;................GUILayout.Spac
2fc0 65 28 35 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 e(5);..........}............priv
2fe0 61 74 65 20 76 6f 69 64 20 44 72 61 77 53 65 61 72 63 68 46 69 65 6c 64 28 29 0d 0a 20 20 20 20 ate.void.DrawSearchField()......
3000 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 53 65 61 72 63 68 46 ....{..............if.(m_SearchF
3020 69 65 6c 64 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 6d ield.==.null)..................m
3040 5f 53 65 61 72 63 68 46 69 65 6c 64 20 3d 20 6e 65 77 20 53 65 61 72 63 68 46 69 65 6c 64 28 29 _SearchField.=.new.SearchField()
3060 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 6e ;................EditorGUI.Begin
3080 43 68 61 6e 67 65 43 68 65 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 65 ChangeCheck();..............m_Se
30a0 61 72 63 68 54 65 78 74 20 3d 20 6d 5f 53 65 61 72 63 68 46 69 65 6c 64 2e 4f 6e 54 6f 6f 6c 62 archText.=.m_SearchField.OnToolb
30c0 61 72 47 55 49 28 6d 5f 53 65 61 72 63 68 54 65 78 74 2c 20 47 55 49 4c 61 79 6f 75 74 2e 4d 61 arGUI(m_SearchText,.GUILayout.Ma
30e0 78 57 69 64 74 68 28 32 35 30 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 xWidth(250));..............if.(E
3100 64 69 74 6f 72 47 55 49 2e 45 6e 64 43 68 61 6e 67 65 43 68 65 63 6b 28 29 29 0d 0a 20 20 20 20 ditorGUI.EndChangeCheck())......
3120 20 20 20 20 20 20 20 20 20 20 20 20 6f 6e 53 65 61 72 63 68 43 68 61 6e 67 65 64 3f 2e 49 6e 76 ............onSearchChanged?.Inv
3140 6f 6b 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 oke();..........}............pri
3160 76 61 74 65 20 76 6f 69 64 20 4f 6e 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 53 65 6c 65 63 74 65 vate.void.OnControlSchemeSelecte
3180 64 28 6f 62 6a 65 63 74 20 6e 61 6d 65 4f 62 6a 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 d(object.nameObj)..........{....
31a0 20 20 20 20 20 20 20 20 20 20 76 61 72 20 69 6e 64 65 78 20 3d 20 2d 31 3b 0d 0a 20 20 20 20 20 ..........var.index.=.-1;.......
31c0 20 20 20 20 20 20 20 76 61 72 20 6e 61 6d 65 20 3d 20 28 73 74 72 69 6e 67 29 6e 61 6d 65 4f 62 .......var.name.=.(string)nameOb
31e0 6a 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6e 61 6d 65 20 21 3d 20 6e 75 6c 6c j;..............if.(name.!=.null
3200 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 )..............{................
3220 20 20 69 6e 64 65 78 20 3d 20 41 72 72 61 79 48 65 6c 70 65 72 73 2e 49 6e 64 65 78 4f 66 28 6d ..index.=.ArrayHelpers.IndexOf(m
3240 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 _ControlSchemes,................
3260 20 20 20 20 20 20 78 20 3d 3e 20 78 2e 6e 61 6d 65 2e 45 71 75 61 6c 73 28 6e 61 6d 65 2c 20 53 ......x.=>.x.name.Equals(name,.S
3280 74 72 69 6e 67 43 6f 6d 70 61 72 69 73 6f 6e 2e 49 6e 76 61 72 69 61 6e 74 43 75 6c 74 75 72 65 tringComparison.InvariantCulture
32a0 49 67 6e 6f 72 65 43 61 73 65 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 IgnoreCase));..................D
32c0 65 62 75 67 2e 41 73 73 65 72 74 28 69 6e 64 65 78 20 21 3d 20 2d 31 2c 20 24 22 43 61 6e 6e 6f ebug.Assert(index.!=.-1,.$"Canno
32e0 74 20 66 69 6e 64 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 20 7b 6e 61 6d 65 7d 22 29 3b 0d t.find.control.scheme.{name}");.
3300 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f .............}................m_
3320 53 65 6c 65 63 74 65 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 49 6e 64 65 78 20 3d 20 69 6e 64 SelectedControlSchemeIndex.=.ind
3340 65 78 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 65 6c 65 63 74 65 64 44 65 76 69 63 ex;..............m_SelectedDevic
3360 65 52 65 71 75 69 72 65 6d 65 6e 74 49 6e 64 65 78 20 3d 20 2d 31 3b 0d 0a 20 20 20 20 20 20 20 eRequirementIndex.=.-1;.........
3380 20 20 20 20 20 6d 5f 53 65 6c 65 63 74 65 64 53 63 68 65 6d 65 44 65 76 69 63 65 52 65 71 75 69 .....m_SelectedSchemeDeviceRequi
33a0 72 65 6d 65 6e 74 4e 61 6d 65 73 20 3d 20 6e 75 6c 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 rementNames.=.null;.............
33c0 20 20 20 6f 6e 53 65 6c 65 63 74 65 64 53 63 68 65 6d 65 43 68 61 6e 67 65 64 3f 2e 49 6e 76 6f ...onSelectedSchemeChanged?.Invo
33e0 6b 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 ke();..........}............priv
3400 61 74 65 20 76 6f 69 64 20 4f 6e 53 65 6c 65 63 74 65 64 44 65 76 69 63 65 43 68 61 6e 67 65 64 ate.void.OnSelectedDeviceChanged
3420 28 6f 62 6a 65 63 74 20 69 6e 64 65 78 4f 62 6a 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 (object.indexObj)..........{....
3440 20 20 20 20 20 20 20 20 20 20 44 65 62 75 67 2e 41 73 73 65 72 74 28 6d 5f 53 65 6c 65 63 74 65 ..........Debug.Assert(m_Selecte
3460 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 49 6e 64 65 78 20 3e 3d 20 30 2c 20 22 43 6f 6e 74 72 dControlSchemeIndex.>=.0,."Contr
3480 6f 6c 20 73 63 68 65 6d 65 20 6d 75 73 74 20 62 65 20 73 65 6c 65 63 74 65 64 22 29 3b 0d 0a 0d ol.scheme.must.be.selected");...
34a0 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 65 6c 65 63 74 65 64 44 65 76 69 63 65 52 65 71 .............m_SelectedDeviceReq
34c0 75 69 72 65 6d 65 6e 74 49 6e 64 65 78 20 3d 20 28 69 6e 74 29 69 6e 64 65 78 4f 62 6a 3b 0d 0a uirementIndex.=.(int)indexObj;..
34e0 20 20 20 20 20 20 20 20 20 20 20 20 6f 6e 53 65 6c 65 63 74 65 64 44 65 76 69 63 65 43 68 61 6e ............onSelectedDeviceChan
3500 67 65 64 3f 2e 49 6e 76 6f 6b 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 ged?.Invoke();..........}.......
3520 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 4f 6e 41 64 64 43 6f 6e 74 72 6f 6c 53 63 .....private.void.OnAddControlSc
3540 68 65 6d 65 28 6f 62 6a 65 63 74 20 70 6f 73 69 74 69 6f 6e 29 0d 0a 20 20 20 20 20 20 20 20 7b heme(object.position)..........{
3560 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 75 6e 69 71 75 65 4e 61 6d 65 20 3d 20 4d ..............var.uniqueName.=.M
3580 61 6b 65 55 6e 69 71 75 65 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 4e 61 6d 65 28 22 4e 65 77 20 akeUniqueControlSchemeName("New.
35a0 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 43 control.scheme");..............C
35c0 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 50 72 6f 70 65 72 74 69 65 73 50 6f 70 75 70 2e 53 68 6f 77 ontrolSchemePropertiesPopup.Show
35e0 28 28 52 65 63 74 29 70 6f 73 69 74 69 6f 6e 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ((Rect)position,................
3600 20 20 6e 65 77 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 28 75 6e 69 71 75 65 4e ..new.InputControlScheme(uniqueN
3620 61 6d 65 29 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 73 2c 20 5f 29 20 3d 3e ame),..................(s,._).=>
3640 20 41 64 64 41 6e 64 53 65 6c 65 63 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 28 73 29 29 3b 0d .AddAndSelectControlScheme(s));.
3660 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f .........}............private.vo
3680 69 64 20 4f 6e 44 65 6c 65 74 65 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 28 29 0d 0a 20 20 20 20 id.OnDeleteControlScheme()......
36a0 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 65 62 75 67 2e 41 73 73 65 72 74 28 ....{..............Debug.Assert(
36c0 6d 5f 53 65 6c 65 63 74 65 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 49 6e 64 65 78 20 3e 3d 20 m_SelectedControlSchemeIndex.>=.
36e0 30 2c 20 22 43 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 20 6d 75 73 74 20 62 65 20 73 65 6c 65 63 0,."Control.scheme.must.be.selec
3700 74 65 64 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6e 61 6d 65 20 3d ted");................var.name.=
3720 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 5b 6d 5f 53 65 6c 65 63 74 65 64 43 6f 6e 74 .m_ControlSchemes[m_SelectedCont
3740 72 6f 6c 53 63 68 65 6d 65 49 6e 64 65 78 5d 2e 6e 61 6d 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 rolSchemeIndex].name;...........
3760 20 20 20 76 61 72 20 62 69 6e 64 69 6e 67 47 72 6f 75 70 20 3d 20 6d 5f 43 6f 6e 74 72 6f 6c 53 ...var.bindingGroup.=.m_ControlS
3780 63 68 65 6d 65 73 5b 6d 5f 53 65 6c 65 63 74 65 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 49 6e chemes[m_SelectedControlSchemeIn
37a0 64 65 78 5d 2e 62 69 6e 64 69 6e 67 47 72 6f 75 70 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 dex].bindingGroup;..............
37c0 20 20 2f 2f 20 41 73 6b 20 66 6f 72 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 2e 0d 0a 20 20 20 20 ..//.Ask.for.confirmation.......
37e0 20 20 20 20 20 20 20 20 69 66 20 28 21 45 64 69 74 6f 72 55 74 69 6c 69 74 79 2e 44 69 73 70 6c ........if.(!EditorUtility.Displ
3800 61 79 44 69 61 6c 6f 67 28 22 44 65 6c 65 74 65 20 73 63 68 65 6d 65 3f 22 2c 20 24 22 44 6f 20 ayDialog("Delete.scheme?",.$"Do.
3820 79 6f 75 20 77 61 6e 74 20 74 6f 20 64 65 6c 65 74 65 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d you.want.to.delete.control.schem
3840 65 20 27 7b 6e 61 6d 65 7d 27 3f 22 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 22 e.'{name}'?",.................."
3860 44 65 6c 65 74 65 22 2c 20 22 43 61 6e 63 65 6c 22 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 Delete",."Cancel")).............
3880 20 20 20 20 20 72 65 74 75 72 6e 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 72 72 61 .....return;................Arra
38a0 79 48 65 6c 70 65 72 73 2e 45 72 61 73 65 41 74 28 72 65 66 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 yHelpers.EraseAt(ref.m_ControlSc
38c0 68 65 6d 65 73 2c 20 6d 5f 53 65 6c 65 63 74 65 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 49 6e hemes,.m_SelectedControlSchemeIn
38e0 64 65 78 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 65 6c 65 63 74 65 64 43 6f 6e dex);..............m_SelectedCon
3900 74 72 6f 6c 53 63 68 65 6d 65 49 6e 64 65 78 20 3d 20 2d 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 trolSchemeIndex.=.-1;...........
3920 20 20 20 6d 5f 53 65 6c 65 63 74 65 64 53 63 68 65 6d 65 44 65 76 69 63 65 52 65 71 75 69 72 65 ...m_SelectedSchemeDeviceRequire
3940 6d 65 6e 74 4e 61 6d 65 73 20 3d 20 6e 75 6c 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 mentNames.=.null;...............
3960 20 69 66 20 28 6d 5f 53 65 6c 65 63 74 65 64 44 65 76 69 63 65 52 65 71 75 69 72 65 6d 65 6e 74 .if.(m_SelectedDeviceRequirement
3980 49 6e 64 65 78 20 3e 3d 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 Index.>=.0)..............{......
39a0 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 65 6c 65 63 74 65 64 44 65 76 69 63 65 52 65 71 75 ............m_SelectedDeviceRequ
39c0 69 72 65 6d 65 6e 74 49 6e 64 65 78 20 3d 20 2d 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 irementIndex.=.-1;..............
39e0 20 20 20 20 6f 6e 53 65 6c 65 63 74 65 64 44 65 76 69 63 65 43 68 61 6e 67 65 64 3f 2e 49 6e 76 ....onSelectedDeviceChanged?.Inv
3a00 6f 6b 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 oke();..............}...........
3a20 20 20 20 20 20 6f 6e 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 43 68 61 6e 67 65 64 3f 2e 49 6e .....onControlSchemesChanged?.In
3a40 76 6f 6b 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6f 6e 53 65 6c 65 63 74 65 64 53 voke();..............onSelectedS
3a60 63 68 65 6d 65 43 68 61 6e 67 65 64 3f 2e 49 6e 76 6f 6b 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 chemeChanged?.Invoke();.........
3a80 20 20 20 20 20 6f 6e 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 44 65 6c 65 74 65 64 3f 2e 49 6e 76 .....onControlSchemeDeleted?.Inv
3aa0 6f 6b 65 28 6e 61 6d 65 2c 20 62 69 6e 64 69 6e 67 47 72 6f 75 70 29 3b 0d 0a 20 20 20 20 20 20 oke(name,.bindingGroup);........
3ac0 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 74 68 69 73 20 ..}............////REVIEW:.this.
3ae0 64 6f 65 73 20 6e 6f 74 68 69 6e 67 20 74 6f 20 62 69 6e 64 69 6e 67 73 3b 20 73 68 6f 75 6c 64 does.nothing.to.bindings;.should
3b00 20 74 68 69 73 20 61 73 6b 20 74 6f 20 64 75 70 6c 69 63 61 74 65 20 62 69 6e 64 69 6e 67 73 20 .this.ask.to.duplicate.bindings.
3b20 61 73 20 77 65 6c 6c 3f 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 4f as.well?..........private.void.O
3b40 6e 44 75 70 6c 69 63 61 74 65 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 28 6f 62 6a 65 63 74 20 70 nDuplicateControlScheme(object.p
3b60 6f 73 69 74 69 6f 6e 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 osition)..........{.............
3b80 20 44 65 62 75 67 2e 41 73 73 65 72 74 28 6d 5f 53 65 6c 65 63 74 65 64 43 6f 6e 74 72 6f 6c 53 .Debug.Assert(m_SelectedControlS
3ba0 63 68 65 6d 65 49 6e 64 65 78 20 3e 3d 20 30 2c 20 22 43 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 chemeIndex.>=.0,."Control.scheme
3bc0 20 6d 75 73 74 20 62 65 20 73 65 6c 65 63 74 65 64 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 .must.be.selected");............
3be0 20 20 20 20 76 61 72 20 73 63 68 65 6d 65 20 3d 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 ....var.scheme.=.m_ControlScheme
3c00 73 5b 6d 5f 53 65 6c 65 63 74 65 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 49 6e 64 65 78 5d 3b s[m_SelectedControlSchemeIndex];
3c20 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 63 68 65 6d 65 20 3d 20 6e 65 77 20 49 6e 70 75 74 ..............scheme.=.new.Input
3c40 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 28 4d 61 6b 65 55 6e 69 71 75 65 43 6f 6e 74 72 6f 6c 53 ControlScheme(MakeUniqueControlS
3c60 63 68 65 6d 65 4e 61 6d 65 28 73 63 68 65 6d 65 2e 6e 61 6d 65 29 2c 0d 0a 20 20 20 20 20 20 20 chemeName(scheme.name),.........
3c80 20 20 20 20 20 20 20 20 20 64 65 76 69 63 65 73 3a 20 73 63 68 65 6d 65 2e 64 65 76 69 63 65 52 .........devices:.scheme.deviceR
3ca0 65 71 75 69 72 65 6d 65 6e 74 73 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 43 6f 6e equirements);................Con
3cc0 74 72 6f 6c 53 63 68 65 6d 65 50 72 6f 70 65 72 74 69 65 73 50 6f 70 75 70 2e 53 68 6f 77 28 28 trolSchemePropertiesPopup.Show((
3ce0 52 65 63 74 29 70 6f 73 69 74 69 6f 6e 2c 20 73 63 68 65 6d 65 2c 0d 0a 20 20 20 20 20 20 20 20 Rect)position,.scheme,..........
3d00 20 20 20 20 20 20 20 20 28 73 2c 20 5f 29 20 3d 3e 20 41 64 64 41 6e 64 53 65 6c 65 63 74 43 6f ........(s,._).=>.AddAndSelectCo
3d20 6e 74 72 6f 6c 53 63 68 65 6d 65 28 73 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 ntrolScheme(s));..........}.....
3d40 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 4f 6e 45 64 69 74 53 65 6c 65 63 74 .......private.void.OnEditSelect
3d60 65 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 28 6f 62 6a 65 63 74 20 70 6f 73 69 74 69 6f 6e 29 edControlScheme(object.position)
3d80 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 44 65 62 75 67 2e 41 ..........{..............Debug.A
3da0 73 73 65 72 74 28 6d 5f 53 65 6c 65 63 74 65 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 49 6e 64 ssert(m_SelectedControlSchemeInd
3dc0 65 78 20 3e 3d 20 30 2c 20 22 43 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 20 6d 75 73 74 20 62 65 ex.>=.0,."Control.scheme.must.be
3de0 20 73 65 6c 65 63 74 65 64 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 43 6f 6e 74 .selected");................Cont
3e00 72 6f 6c 53 63 68 65 6d 65 50 72 6f 70 65 72 74 69 65 73 50 6f 70 75 70 2e 53 68 6f 77 28 28 52 rolSchemePropertiesPopup.Show((R
3e20 65 63 74 29 70 6f 73 69 74 69 6f 6e 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d ect)position,..................m
3e40 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 5b 6d 5f 53 65 6c 65 63 74 65 64 43 6f 6e 74 72 6f _ControlSchemes[m_SelectedContro
3e60 6c 53 63 68 65 6d 65 49 6e 64 65 78 5d 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 lSchemeIndex],..................
3e80 55 70 64 61 74 65 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 UpdateControlScheme,............
3ea0 20 20 20 20 20 20 6d 5f 53 65 6c 65 63 74 65 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 49 6e 64 ......m_SelectedControlSchemeInd
3ec0 65 78 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 ex);..........}............priva
3ee0 74 65 20 76 6f 69 64 20 41 64 64 41 6e 64 53 65 6c 65 63 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d te.void.AddAndSelectControlSchem
3f00 65 28 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 20 73 63 68 65 6d 65 29 0d 0a 20 20 e(InputControlScheme.scheme)....
3f20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 45 6e 73 75 72 65 20 73 ......{..............//.Ensure.s
3f40 63 68 65 6d 65 20 68 61 73 20 61 20 6e 61 6d 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 cheme.has.a.name...............i
3f60 66 20 28 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 73 63 68 65 6d 65 2e 6e f.(string.IsNullOrEmpty(scheme.n
3f80 61 6d 65 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 63 68 65 6d 65 2e 6d 5f ame))..................scheme.m_
3fa0 4e 61 6d 65 20 3d 20 22 4e 65 77 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 22 3b 0d 0a 0d 0a Name.=."New.control.scheme";....
3fc0 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 6e 61 6d 65 20 69 73 ............//.Make.sure.name.is
3fe0 20 75 6e 69 71 75 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 63 68 65 6d 65 2e 6d 5f 4e .unique...............scheme.m_N
4000 61 6d 65 20 3d 20 4d 61 6b 65 55 6e 69 71 75 65 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 4e 61 6d ame.=.MakeUniqueControlSchemeNam
4020 65 28 73 63 68 65 6d 65 2e 6e 61 6d 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 e(scheme.name);................v
4040 61 72 20 69 6e 64 65 78 20 3d 20 41 72 72 61 79 48 65 6c 70 65 72 73 2e 41 70 70 65 6e 64 28 72 ar.index.=.ArrayHelpers.Append(r
4060 65 66 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 2c 20 73 63 68 65 6d 65 29 3b 0d 0a 20 ef.m_ControlSchemes,.scheme);...
4080 20 20 20 20 20 20 20 20 20 20 20 6f 6e 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 43 68 61 6e 67 ...........onControlSchemesChang
40a0 65 64 3f 2e 49 6e 76 6f 6b 65 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 53 65 6c ed?.Invoke();................Sel
40c0 65 63 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 28 69 6e 64 65 78 29 3b 0d 0a 20 20 20 20 20 20 ectControlScheme(index);........
40e0 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 55 70 64 61 ..}............private.void.Upda
4100 74 65 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 28 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 53 63 68 65 teControlScheme(InputControlSche
4120 6d 65 20 73 63 68 65 6d 65 2c 20 69 6e 74 20 69 6e 64 65 78 29 0d 0a 20 20 20 20 20 20 20 20 7b me.scheme,.int.index)..........{
4140 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 65 62 75 67 2e 41 73 73 65 72 74 28 69 6e 64 65 78 ..............Debug.Assert(index
4160 20 3e 3d 20 30 20 26 26 20 69 6e 64 65 78 20 3c 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 .>=.0.&&.index.<.m_ControlScheme
4180 73 2e 4c 65 6e 67 74 68 53 61 66 65 28 29 2c 20 22 43 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 20 s.LengthSafe(),."Control.scheme.
41a0 69 6e 64 65 78 20 6f 75 74 20 6f 66 20 72 61 6e 67 65 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 index.out.of.range");...........
41c0 20 20 20 20 20 76 61 72 20 72 65 6e 61 6d 65 64 20 3d 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 .....var.renamed.=.false;.......
41e0 20 20 20 20 20 20 20 73 74 72 69 6e 67 20 6f 6c 64 42 69 6e 64 69 6e 67 47 72 6f 75 70 20 3d 20 .......string.oldBindingGroup.=.
4200 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 69 6e 67 20 6e 65 77 42 69 6e null;..............string.newBin
4220 64 69 6e 67 47 72 6f 75 70 20 3d 20 6e 75 6c 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 dingGroup.=.null;...............
4240 20 2f 2f 20 49 66 20 67 69 76 65 6e 20 73 63 68 65 6d 65 20 68 61 73 20 6e 6f 20 6e 61 6d 65 2c .//.If.given.scheme.has.no.name,
4260 20 70 72 65 73 65 72 76 65 20 74 68 65 20 65 78 69 73 74 69 6e 67 20 6f 6e 65 20 6f 6e 20 74 68 .preserve.the.existing.one.on.th
4280 65 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 e.control.scheme...............i
42a0 66 20 28 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 73 63 68 65 6d 65 2e 6e f.(string.IsNullOrEmpty(scheme.n
42c0 61 6d 65 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 63 68 65 6d 65 2e 6d 5f ame))..................scheme.m_
42e0 4e 61 6d 65 20 3d 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 5b 69 6e 64 65 78 5d 2e 6e Name.=.m_ControlSchemes[index].n
4300 61 6d 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 49 66 20 6e 61 6d 65 20 69 ame;................//.If.name.i
4320 73 20 63 68 61 6e 67 69 6e 67 2c 20 6d 61 6b 65 20 73 75 72 65 20 69 74 27 73 20 75 6e 69 71 75 s.changing,.make.sure.it's.uniqu
4340 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 20 69 66 20 28 73 63 68 65 6d 65 2e e...............else.if.(scheme.
4360 6e 61 6d 65 20 21 3d 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 5b 69 6e 64 65 78 5d 2e name.!=.m_ControlSchemes[index].
4380 6e 61 6d 65 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 name)..............{............
43a0 20 20 20 20 20 20 72 65 6e 61 6d 65 64 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 ......renamed.=.true;...........
43c0 20 20 20 20 20 20 20 6f 6c 64 42 69 6e 64 69 6e 67 47 72 6f 75 70 20 3d 20 6d 5f 43 6f 6e 74 72 .......oldBindingGroup.=.m_Contr
43e0 6f 6c 53 63 68 65 6d 65 73 5b 69 6e 64 65 78 5d 2e 62 69 6e 64 69 6e 67 47 72 6f 75 70 3b 0d 0a olSchemes[index].bindingGroup;..
4400 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 ................m_ControlSchemes
4420 5b 69 6e 64 65 78 5d 2e 6d 5f 4e 61 6d 65 20 3d 20 22 22 3b 20 2f 2f 20 44 6f 6e 27 74 20 77 61 [index].m_Name.=."";.//.Don't.wa
4440 6e 74 20 74 68 69 73 20 74 6f 20 69 6e 74 65 72 66 65 72 65 20 77 69 74 68 20 66 69 6e 64 69 6e nt.this.to.interfere.with.findin
4460 67 20 61 20 75 6e 69 71 75 65 20 6e 61 6d 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 g.a.unique.name.................
4480 20 20 76 61 72 20 6e 65 77 4e 61 6d 65 20 3d 20 4d 61 6b 65 55 6e 69 71 75 65 43 6f 6e 74 72 6f ..var.newName.=.MakeUniqueContro
44a0 6c 53 63 68 65 6d 65 4e 61 6d 65 28 73 63 68 65 6d 65 2e 6e 61 6d 65 29 3b 0d 0a 20 20 20 20 20 lSchemeName(scheme.name);.......
44c0 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 5b 69 6e 64 65 ...........m_ControlSchemes[inde
44e0 78 5d 2e 53 65 74 4e 61 6d 65 41 6e 64 42 69 6e 64 69 6e 67 47 72 6f 75 70 28 6e 65 77 4e 61 6d x].SetNameAndBindingGroup(newNam
4500 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6e 65 77 42 69 6e 64 69 6e 67 47 e);..................newBindingG
4520 72 6f 75 70 20 3d 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 5b 69 6e 64 65 78 5d 2e 62 roup.=.m_ControlSchemes[index].b
4540 69 6e 64 69 6e 67 47 72 6f 75 70 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 indingGroup;..............}.....
4560 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 5b 69 6e 64 65 ...........m_ControlSchemes[inde
4580 78 5d 20 3d 20 73 63 68 65 6d 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6f 6e 43 6f 6e 74 x].=.scheme;..............onCont
45a0 72 6f 6c 53 63 68 65 6d 65 73 43 68 61 6e 67 65 64 3f 2e 49 6e 76 6f 6b 65 28 29 3b 0d 0a 0d 0a rolSchemesChanged?.Invoke();....
45c0 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 72 65 6e 61 6d 65 64 29 0d 0a 20 20 20 20 20 20 ............if.(renamed)........
45e0 20 20 20 20 20 20 20 20 20 20 6f 6e 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 52 65 6e 61 6d 65 64 ..........onControlSchemeRenamed
4600 3f 2e 49 6e 76 6f 6b 65 28 6f 6c 64 42 69 6e 64 69 6e 67 47 72 6f 75 70 2c 20 6e 65 77 42 69 6e ?.Invoke(oldBindingGroup,.newBin
4620 64 69 6e 67 47 72 6f 75 70 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 dingGroup);..........}..........
4640 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 53 65 6c 65 63 74 43 6f 6e 74 72 6f 6c 53 63 68 65 ..private.void.SelectControlSche
4660 6d 65 28 69 6e 74 20 69 6e 64 65 78 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 me(int.index)..........{........
4680 20 20 20 20 20 20 44 65 62 75 67 2e 41 73 73 65 72 74 28 69 6e 64 65 78 20 3e 3d 20 30 20 26 26 ......Debug.Assert(index.>=.0.&&
46a0 20 69 6e 64 65 78 20 3c 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 2e 4c 65 6e 67 74 68 .index.<.m_ControlSchemes.Length
46c0 53 61 66 65 28 29 2c 20 22 43 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 20 69 6e 64 65 78 20 6f 75 Safe(),."Control.scheme.index.ou
46e0 74 20 6f 66 20 72 61 6e 67 65 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 t.of.range");................m_S
4700 65 6c 65 63 74 65 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 49 6e 64 65 78 20 3d 20 69 6e 64 65 electedControlSchemeIndex.=.inde
4720 78 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 65 6c 65 63 74 65 64 53 63 68 65 6d 65 x;..............m_SelectedScheme
4740 44 65 76 69 63 65 52 65 71 75 69 72 65 6d 65 6e 74 4e 61 6d 65 73 20 3d 20 6e 75 6c 6c 3b 0d 0a DeviceRequirementNames.=.null;..
4760 20 20 20 20 20 20 20 20 20 20 20 20 6f 6e 53 65 6c 65 63 74 65 64 53 63 68 65 6d 65 43 68 61 6e ............onSelectedSchemeChan
4780 67 65 64 3f 2e 49 6e 76 6f 6b 65 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f ged?.Invoke();................//
47a0 20 52 65 73 65 74 20 64 65 76 69 63 65 20 73 65 6c 65 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 .Reset.device.selection.........
47c0 20 20 20 20 20 20 69 66 20 28 6d 5f 53 65 6c 65 63 74 65 64 44 65 76 69 63 65 52 65 71 75 69 72 ......if.(m_SelectedDeviceRequir
47e0 65 6d 65 6e 74 49 6e 64 65 78 20 21 3d 20 2d 31 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b ementIndex.!=.-1)..............{
4800 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 65 6c 65 63 74 65 64 44 65 76 69 ..................m_SelectedDevi
4820 63 65 52 65 71 75 69 72 65 6d 65 6e 74 49 6e 64 65 78 20 3d 20 2d 31 3b 0d 0a 20 20 20 20 20 20 ceRequirementIndex.=.-1;........
4840 20 20 20 20 20 20 20 20 20 20 6f 6e 53 65 6c 65 63 74 65 64 44 65 76 69 63 65 43 68 61 6e 67 65 ..........onSelectedDeviceChange
4860 64 3f 2e 49 6e 76 6f 6b 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 d?.Invoke();..............}.....
4880 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 72 69 6e 67 .....}............private.string
48a0 20 4d 61 6b 65 55 6e 69 71 75 65 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 4e 61 6d 65 28 73 74 72 .MakeUniqueControlSchemeName(str
48c0 69 6e 67 20 6e 61 6d 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 ing.name)..........{............
48e0 20 20 72 65 74 75 72 6e 20 53 74 72 69 6e 67 48 65 6c 70 65 72 73 2e 4d 61 6b 65 55 6e 69 71 75 ..return.StringHelpers.MakeUniqu
4900 65 4e 61 6d 65 28 6e 61 6d 65 2c 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 2c 20 78 20 eName(name,.m_ControlSchemes,.x.
4920 3d 3e 20 78 2e 6e 61 6d 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 =>.x.name);..........}..........
4940 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 73 74 72 69 6e 67 20 44 65 76 69 63 65 52 65 ..private.static.string.DeviceRe
4960 71 75 69 72 65 6d 65 6e 74 54 6f 44 69 73 70 6c 61 79 53 74 72 69 6e 67 28 49 6e 70 75 74 43 6f quirementToDisplayString(InputCo
4980 6e 74 72 6f 6c 53 63 68 65 6d 65 2e 44 65 76 69 63 65 52 65 71 75 69 72 65 6d 65 6e 74 20 72 65 ntrolScheme.DeviceRequirement.re
49a0 71 75 69 72 65 6d 65 6e 74 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 quirement)..........{...........
49c0 20 20 20 2f 2f 2f 2f 54 4f 44 4f 3a 20 6e 65 65 64 20 73 6f 6d 65 74 68 69 6e 67 20 6d 6f 72 65 ...////TODO:.need.something.more
49e0 20 66 6c 65 78 69 62 6c 65 20 74 6f 20 70 72 6f 64 75 63 65 20 63 6f 72 72 65 63 74 20 72 65 73 .flexible.to.produce.correct.res
4a00 75 6c 74 73 20 66 6f 72 20 6d 6f 72 65 20 74 68 61 6e 20 74 68 65 20 73 69 6d 70 6c 65 20 73 74 ults.for.more.than.the.simple.st
4a20 72 69 6e 67 20 77 65 20 70 72 6f 64 75 63 65 20 68 65 72 65 0d 0a 20 20 20 20 20 20 20 20 20 20 ring.we.produce.here............
4a40 20 20 76 61 72 20 64 65 76 69 63 65 4c 61 79 6f 75 74 20 3d 20 49 6e 70 75 74 43 6f 6e 74 72 6f ..var.deviceLayout.=.InputContro
4a60 6c 50 61 74 68 2e 54 72 79 47 65 74 44 65 76 69 63 65 4c 61 79 6f 75 74 28 72 65 71 75 69 72 65 lPath.TryGetDeviceLayout(require
4a80 6d 65 6e 74 2e 63 6f 6e 74 72 6f 6c 50 61 74 68 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ment.controlPath);..............
4aa0 76 61 72 20 64 65 76 69 63 65 4c 61 79 6f 75 74 54 65 78 74 20 3d 20 21 73 74 72 69 6e 67 2e 49 var.deviceLayoutText.=.!string.I
4ac0 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 64 65 76 69 63 65 4c 61 79 6f 75 74 29 0d 0a 20 20 20 20 sNullOrEmpty(deviceLayout)......
4ae0 20 20 20 20 20 20 20 20 20 20 20 20 3f 20 45 64 69 74 6f 72 49 6e 70 75 74 43 6f 6e 74 72 6f 6c ............?.EditorInputControl
4b00 4c 61 79 6f 75 74 43 61 63 68 65 2e 47 65 74 44 69 73 70 6c 61 79 4e 61 6d 65 28 64 65 76 69 63 LayoutCache.GetDisplayName(devic
4b20 65 4c 61 79 6f 75 74 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3a 20 73 74 72 69 eLayout)..................:.stri
4b40 6e 67 2e 45 6d 70 74 79 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 75 73 61 67 65 ng.Empty;..............var.usage
4b60 73 20 3d 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 50 61 74 68 2e 54 72 79 47 65 74 44 65 76 69 63 s.=.InputControlPath.TryGetDevic
4b80 65 55 73 61 67 65 73 28 72 65 71 75 69 72 65 6d 65 6e 74 2e 63 6f 6e 74 72 6f 6c 50 61 74 68 29 eUsages(requirement.controlPath)
4ba0 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 75 73 61 67 65 73 20 21 3d 20 6e ;................if.(usages.!=.n
4bc0 75 6c 6c 20 26 26 20 75 73 61 67 65 73 2e 4c 65 6e 67 74 68 20 3e 20 30 29 0d 0a 20 20 20 20 20 ull.&&.usages.Length.>.0).......
4be0 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 24 22 7b 64 65 76 69 63 65 4c 61 79 6f 75 ...........return.$"{deviceLayou
4c00 74 54 65 78 74 7d 20 7b 73 74 72 69 6e 67 2e 4a 6f 69 6e 28 22 7d 7b 22 2c 20 75 73 61 67 65 73 tText}.{string.Join("}{",.usages
4c20 29 7d 22 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 64 65 76 69 63 )}";................return.devic
4c40 65 4c 61 79 6f 75 74 54 65 78 74 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 eLayoutText;..........}.........
4c60 20 20 20 2f 2f 20 4e 6f 74 69 66 69 63 61 74 69 6f 6e 73 2e 0d 0a 20 20 20 20 20 20 20 20 70 75 ...//.Notifications...........pu
4c80 62 6c 69 63 20 41 63 74 69 6f 6e 20 6f 6e 53 65 61 72 63 68 43 68 61 6e 67 65 64 3b 0d 0a 20 20 blic.Action.onSearchChanged;....
4ca0 20 20 20 20 20 20 70 75 62 6c 69 63 20 41 63 74 69 6f 6e 20 6f 6e 53 65 6c 65 63 74 65 64 53 63 ......public.Action.onSelectedSc
4cc0 68 65 6d 65 43 68 61 6e 67 65 64 3b 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 41 63 74 hemeChanged;..........public.Act
4ce0 69 6f 6e 20 6f 6e 53 65 6c 65 63 74 65 64 44 65 76 69 63 65 43 68 61 6e 67 65 64 3b 0d 0a 20 20 ion.onSelectedDeviceChanged;....
4d00 20 20 20 20 20 20 70 75 62 6c 69 63 20 41 63 74 69 6f 6e 20 6f 6e 43 6f 6e 74 72 6f 6c 53 63 68 ......public.Action.onControlSch
4d20 65 6d 65 73 43 68 61 6e 67 65 64 3b 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 41 63 74 emesChanged;..........public.Act
4d40 69 6f 6e 3c 73 74 72 69 6e 67 2c 20 73 74 72 69 6e 67 3e 20 6f 6e 43 6f 6e 74 72 6f 6c 53 63 68 ion<string,.string>.onControlSch
4d60 65 6d 65 52 65 6e 61 6d 65 64 3b 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 41 63 74 69 emeRenamed;..........public.Acti
4d80 6f 6e 3c 73 74 72 69 6e 67 2c 20 73 74 72 69 6e 67 3e 20 6f 6e 43 6f 6e 74 72 6f 6c 53 63 68 65 on<string,.string>.onControlSche
4da0 6d 65 44 65 6c 65 74 65 64 3b 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 41 63 74 69 6f meDeleted;..........public.Actio
4dc0 6e 20 6f 6e 53 61 76 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 n.onSave;............[SerializeF
4de0 69 65 6c 64 5d 20 70 72 69 76 61 74 65 20 62 6f 6f 6c 20 6d 5f 49 73 44 69 72 74 79 3b 0d 0a 20 ield].private.bool.m_IsDirty;...
4e00 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 70 72 69 76 61 74 65 20 .......[SerializeField].private.
4e20 69 6e 74 20 6d 5f 53 65 6c 65 63 74 65 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 49 6e 64 65 78 int.m_SelectedControlSchemeIndex
4e40 20 3d 20 2d 31 3b 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d .=.-1;..........[SerializeField]
4e60 20 70 72 69 76 61 74 65 20 69 6e 74 20 6d 5f 53 65 6c 65 63 74 65 64 44 65 76 69 63 65 52 65 71 .private.int.m_SelectedDeviceReq
4e80 75 69 72 65 6d 65 6e 74 49 6e 64 65 78 20 3d 20 2d 31 3b 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 uirementIndex.=.-1;..........[Se
4ea0 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 70 72 69 76 61 74 65 20 49 6e 70 75 74 43 6f 6e 74 72 rializeField].private.InputContr
4ec0 6f 6c 53 63 68 65 6d 65 5b 5d 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 3b 0d 0a 20 20 olScheme[].m_ControlSchemes;....
4ee0 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 70 72 69 76 61 74 65 20 73 ......[SerializeField].private.s
4f00 74 72 69 6e 67 20 6d 5f 53 65 61 72 63 68 54 65 78 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 tring.m_SearchText;............p
4f20 72 69 76 61 74 65 20 47 55 49 43 6f 6e 74 65 6e 74 5b 5d 20 6d 5f 53 65 6c 65 63 74 65 64 53 63 rivate.GUIContent[].m_SelectedSc
4f40 68 65 6d 65 44 65 76 69 63 65 52 65 71 75 69 72 65 6d 65 6e 74 4e 61 6d 65 73 3b 0d 0a 20 20 20 hemeDeviceRequirementNames;.....
4f60 20 20 20 20 20 70 72 69 76 61 74 65 20 53 65 61 72 63 68 46 69 65 6c 64 20 6d 5f 53 65 61 72 63 .....private.SearchField.m_Searc
4f80 68 46 69 65 6c 64 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 hField;............private.stati
4fa0 63 20 72 65 61 64 6f 6e 6c 79 20 47 55 49 43 6f 6e 74 65 6e 74 20 73 5f 41 6c 6c 43 6f 6e 74 72 c.readonly.GUIContent.s_AllContr
4fc0 6f 6c 53 63 68 65 6d 65 73 20 3d 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 54 72 54 olSchemes.=.EditorGUIUtility.TrT
4fe0 65 78 74 43 6f 6e 74 65 6e 74 28 22 41 6c 6c 20 43 6f 6e 74 72 6f 6c 20 53 63 68 65 6d 65 73 22 extContent("All.Control.Schemes"
5000 29 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 72 65 61 64 6f );..........private.static.reado
5020 6e 6c 79 20 47 55 49 43 6f 6e 74 65 6e 74 20 73 5f 41 64 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d nly.GUIContent.s_AddControlSchem
5040 65 4c 61 62 65 6c 20 3d 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 41 64 64 20 43 6f 6e eLabel.=.new.GUIContent("Add.Con
5060 74 72 6f 6c 20 53 63 68 65 6d 65 2e 2e 2e 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 trol.Scheme...");..........priva
5080 74 65 20 73 74 61 74 69 63 20 72 65 61 64 6f 6e 6c 79 20 47 55 49 43 6f 6e 74 65 6e 74 20 73 5f te.static.readonly.GUIContent.s_
50a0 45 64 69 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 4c 61 62 65 6c 20 3d 20 45 64 69 74 6f 72 47 EditControlSchemeLabel.=.EditorG
50c0 55 49 55 74 69 6c 69 74 79 2e 54 72 54 65 78 74 43 6f 6e 74 65 6e 74 28 22 45 64 69 74 20 43 6f UIUtility.TrTextContent("Edit.Co
50e0 6e 74 72 6f 6c 20 53 63 68 65 6d 65 2e 2e 2e 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 ntrol.Scheme...");..........priv
5100 61 74 65 20 73 74 61 74 69 63 20 72 65 61 64 6f 6e 6c 79 20 47 55 49 43 6f 6e 74 65 6e 74 20 73 ate.static.readonly.GUIContent.s
5120 5f 44 75 70 6c 69 63 61 74 65 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 4c 61 62 65 6c 20 3d 20 45 _DuplicateControlSchemeLabel.=.E
5140 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 54 72 54 65 78 74 43 6f 6e 74 65 6e 74 28 22 44 ditorGUIUtility.TrTextContent("D
5160 75 70 6c 69 63 61 74 65 20 43 6f 6e 74 72 6f 6c 20 53 63 68 65 6d 65 2e 2e 2e 22 29 3b 0d 0a 20 uplicate.Control.Scheme...");...
5180 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 72 65 61 64 6f 6e 6c 79 20 47 .......private.static.readonly.G
51a0 55 49 43 6f 6e 74 65 6e 74 20 73 5f 44 65 6c 65 74 65 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 4c UIContent.s_DeleteControlSchemeL
51c0 61 62 65 6c 20 3d 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 54 72 54 65 78 74 43 6f abel.=.EditorGUIUtility.TrTextCo
51e0 6e 74 65 6e 74 28 22 44 65 6c 65 74 65 20 43 6f 6e 74 72 6f 6c 20 53 63 68 65 6d 65 2e 2e 2e 22 ntent("Delete.Control.Scheme..."
5200 29 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 72 65 61 64 6f );..........private.static.reado
5220 6e 6c 79 20 47 55 49 43 6f 6e 74 65 6e 74 20 73 5f 53 61 76 65 41 73 73 65 74 4c 61 62 65 6c 20 nly.GUIContent.s_SaveAssetLabel.
5240 3d 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 54 72 54 65 78 74 43 6f 6e 74 65 6e 74 =.EditorGUIUtility.TrTextContent
5260 28 22 53 61 76 65 20 41 73 73 65 74 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 ("Save.Asset");..........private
5280 20 73 74 61 74 69 63 20 72 65 61 64 6f 6e 6c 79 20 47 55 49 43 6f 6e 74 65 6e 74 20 73 5f 41 75 .static.readonly.GUIContent.s_Au
52a0 74 6f 53 61 76 65 4c 61 62 65 6c 20 3d 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 54 toSaveLabel.=.EditorGUIUtility.T
52c0 72 54 65 78 74 43 6f 6e 74 65 6e 74 28 22 41 75 74 6f 2d 53 61 76 65 22 29 3b 0d 0a 20 20 20 20 rTextContent("Auto-Save");......
52e0 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 72 65 61 64 6f 6e 6c 79 20 47 55 49 43 ....private.static.readonly.GUIC
5300 6f 6e 74 65 6e 74 20 73 5f 41 6c 6c 44 65 76 69 63 65 73 4c 61 62 65 6c 20 3d 20 45 64 69 74 6f ontent.s_AllDevicesLabel.=.Edito
5320 72 47 55 49 55 74 69 6c 69 74 79 2e 54 72 54 65 78 74 43 6f 6e 74 65 6e 74 28 22 41 6c 6c 20 44 rGUIUtility.TrTextContent("All.D
5340 65 76 69 63 65 73 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 evices");............private.sta
5360 74 69 63 20 47 55 49 53 74 79 6c 65 20 73 5f 4d 69 6e 69 54 6f 67 67 6c 65 53 74 79 6c 65 3b 0d tic.GUIStyle.s_MiniToggleStyle;.
5380 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 47 55 49 53 74 79 6c 65 .........private.static.GUIStyle
53a0 20 73 5f 4d 69 6e 69 4c 61 62 65 6c 53 74 79 6c 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 .s_MiniLabelStyle;............pr
53c0 69 76 61 74 65 20 63 6f 6e 73 74 20 66 6c 6f 61 74 20 6b 5f 4d 69 6e 69 6d 75 6d 42 75 74 74 6f ivate.const.float.k_MinimumButto
53e0 6e 57 69 64 74 68 20 3d 20 31 31 30 66 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 nWidth.=.110f;............public
5400 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 6f 6c 53 63 68 65 6d .ReadOnlyArray<InputControlSchem
5420 65 3e 20 63 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 e>.controlSchemes..........{....
5440 20 20 20 20 20 20 20 20 20 20 67 65 74 20 3d 3e 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 ..........get.=>.m_ControlScheme
5460 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 s;..............set.............
5480 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 .{..................m_ControlSch
54a0 65 6d 65 73 20 3d 20 76 61 6c 75 65 2e 54 6f 41 72 72 61 79 28 29 3b 0d 0a 20 20 20 20 20 20 20 emes.=.value.ToArray();.........
54c0 20 20 20 20 20 20 20 20 20 6d 5f 53 65 6c 65 63 74 65 64 53 63 68 65 6d 65 44 65 76 69 63 65 52 .........m_SelectedSchemeDeviceR
54e0 65 71 75 69 72 65 6d 65 6e 74 4e 61 6d 65 73 20 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 equirementNames.=.null;.........
5500 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 20 2f 2f 2f .....}..........}............///
5520 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 68 65 20 63 6f 6e 74 .<summary>..........///.The.cont
5540 72 6f 6c 20 73 63 68 65 6d 65 20 63 75 72 72 65 6e 74 6c 79 20 73 65 6c 65 63 74 65 64 20 69 6e rol.scheme.currently.selected.in
5560 20 74 68 65 20 74 6f 6f 6c 62 61 72 20 6f 72 20 6e 75 6c 6c 20 69 66 20 6e 6f 6e 65 20 69 73 20 .the.toolbar.or.null.if.none.is.
5580 73 65 6c 65 63 74 65 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 selected...........///.</summary
55a0 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 53 63 >..........public.InputControlSc
55c0 68 65 6d 65 3f 20 73 65 6c 65 63 74 65 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 20 3d 3e 20 6d heme?.selectedControlScheme.=>.m
55e0 5f 53 65 6c 65 63 74 65 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 49 6e 64 65 78 20 3e 3d 20 30 _SelectedControlSchemeIndex.>=.0
5600 0d 0a 20 20 20 20 20 20 20 20 3f 20 6e 65 77 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 53 63 68 65 ..........?.new.InputControlSche
5620 6d 65 20 3f 20 28 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 5b 6d 5f 53 65 6c 65 63 74 65 me.?.(m_ControlSchemes[m_Selecte
5640 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 49 6e 64 65 78 5d 29 0d 0a 20 20 20 20 20 20 20 20 3a dControlSchemeIndex])..........:
5660 20 6e 75 6c 6c 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 .null;............///.<summary>.
5680 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 64 65 76 69 63 65 20 72 65 71 75 69 72 65 6d .........///.The.device.requirem
56a0 65 6e 74 20 6f 66 20 74 68 65 20 63 75 72 72 65 6e 74 6c 79 20 73 65 6c 65 63 74 65 64 20 63 6f ent.of.the.currently.selected.co
56c0 6e 74 72 6f 6c 20 73 63 68 65 6d 65 20 77 68 69 63 68 20 69 73 20 63 75 72 72 65 6e 74 6c 79 20 ntrol.scheme.which.is.currently.
56e0 73 65 6c 65 63 74 65 64 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 69 6e 20 74 68 65 20 74 6f 6f selected..........///.in.the.too
5700 6c 62 61 72 20 6f 72 20 6e 75 6c 6c 20 69 66 20 6e 6f 6e 65 20 69 73 20 73 65 6c 65 63 74 65 64 lbar.or.null.if.none.is.selected
5720 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 ...........///.</summary>.......
5740 20 20 20 70 75 62 6c 69 63 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 2e 44 65 76 ...public.InputControlScheme.Dev
5760 69 63 65 52 65 71 75 69 72 65 6d 65 6e 74 3f 20 73 65 6c 65 63 74 65 64 44 65 76 69 63 65 52 65 iceRequirement?.selectedDeviceRe
5780 71 75 69 72 65 6d 65 6e 74 20 3d 3e 20 6d 5f 53 65 6c 65 63 74 65 64 44 65 76 69 63 65 52 65 71 quirement.=>.m_SelectedDeviceReq
57a0 75 69 72 65 6d 65 6e 74 49 6e 64 65 78 20 3e 3d 20 30 0d 0a 20 20 20 20 20 20 20 20 3f 20 6e 65 uirementIndex.>=.0..........?.ne
57c0 77 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 2e 44 65 76 69 63 65 52 65 71 75 69 w.InputControlScheme.DeviceRequi
57e0 72 65 6d 65 6e 74 20 3f 20 28 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 5b 6d 5f 53 65 6c rement.?.(m_ControlSchemes[m_Sel
5800 65 63 74 65 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 49 6e 64 65 78 5d 0d 0a 20 20 20 20 20 20 ectedControlSchemeIndex]........
5820 20 20 20 20 20 20 2e 64 65 76 69 63 65 52 65 71 75 69 72 65 6d 65 6e 74 73 5b 6d 5f 53 65 6c 65 .......deviceRequirements[m_Sele
5840 63 74 65 64 44 65 76 69 63 65 52 65 71 75 69 72 65 6d 65 6e 74 49 6e 64 65 78 5d 29 0d 0a 20 20 ctedDeviceRequirementIndex])....
5860 20 20 20 20 20 20 3a 20 6e 75 6c 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 ......:.null;............///.<su
5880 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 73 65 61 72 63 68 20 74 mmary>..........///.The.search.t
58a0 65 78 74 20 63 75 72 72 65 6e 74 6c 79 20 65 6e 74 65 72 65 64 20 69 6e 20 74 68 65 20 74 6f 6f ext.currently.entered.in.the.too
58c0 6c 62 61 72 20 6f 72 20 6e 75 6c 6c 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d lbar.or.null...........///.</sum
58e0 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 72 69 6e 67 20 73 65 61 mary>..........public.string.sea
5900 72 63 68 54 65 78 74 20 3d 3e 20 6d 5f 53 65 61 72 63 68 54 65 78 74 3b 0d 0a 0d 0a 20 20 20 20 rchText.=>.m_SearchText;........
5920 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 76 6f 69 64 20 52 65 73 65 74 53 65 61 72 63 68 46 69 6c ....internal.void.ResetSearchFil
5940 74 65 72 73 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 6d ters()..........{..............m
5960 5f 53 65 61 72 63 68 54 65 78 74 20 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 _SearchText.=.null;.............
5980 20 6d 5f 53 65 6c 65 63 74 65 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 49 6e 64 65 78 20 3d 20 .m_SelectedControlSchemeIndex.=.
59a0 2d 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 65 6c 65 63 74 65 64 44 65 76 69 63 -1;..............m_SelectedDevic
59c0 65 52 65 71 75 69 72 65 6d 65 6e 74 49 6e 64 65 78 20 3d 20 2d 31 3b 0d 0a 20 20 20 20 20 20 20 eRequirementIndex.=.-1;.........
59e0 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 69 73 44 69 72 74 .}............public.bool.isDirt
5a00 79 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 y..........{..............get.=>
5a20 20 6d 5f 49 73 44 69 72 74 79 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 3d 3e 20 .m_IsDirty;..............set.=>.
5a40 6d 5f 49 73 44 69 72 74 79 20 3d 20 76 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d m_IsDirty.=.value;..........}...
5a60 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 .........///.<summary>..........
5a80 2f 2f 2f 20 50 6f 70 75 70 20 77 69 6e 64 6f 77 20 63 6f 6e 74 65 6e 74 20 66 6f 72 20 65 64 69 ///.Popup.window.content.for.edi
5aa0 74 69 6e 67 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 73 2e 0d 0a 20 20 20 20 20 20 20 20 2f ting.control.schemes.........../
5ac0 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 63 //.</summary>..........private.c
5ae0 6c 61 73 73 20 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 50 72 6f 70 65 72 74 69 65 73 50 6f 70 75 lass.ControlSchemePropertiesPopu
5b00 70 20 3a 20 50 6f 70 75 70 57 69 6e 64 6f 77 43 6f 6e 74 65 6e 74 0d 0a 20 20 20 20 20 20 20 20 p.:.PopupWindowContent..........
5b20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 76 6f 69 {..............public.static.voi
5b40 64 20 53 68 6f 77 28 52 65 63 74 20 70 6f 73 69 74 69 6f 6e 2c 20 49 6e 70 75 74 43 6f 6e 74 72 d.Show(Rect.position,.InputContr
5b60 6f 6c 53 63 68 65 6d 65 20 63 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 2c 20 41 63 74 69 6f 6e 3c 49 olScheme.controlScheme,.Action<I
5b80 6e 70 75 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 2c 20 69 6e 74 3e 20 6f 6e 41 70 70 6c 79 2c nputControlScheme,.int>.onApply,
5ba0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 63 6f 6e 74 72 6f 6c 53 63 68 ..................int.controlSch
5bc0 65 6d 65 49 6e 64 65 78 20 3d 20 2d 31 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 emeIndex.=.-1)..............{...
5be0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 70 6f 70 75 70 20 3d 20 6e 65 77 20 43 ...............var.popup.=.new.C
5c00 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 50 72 6f 70 65 72 74 69 65 73 50 6f 70 75 70 0d 0a 20 20 20 ontrolSchemePropertiesPopup.....
5c20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .............{..................
5c40 20 20 20 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 49 6e 64 65 78 20 3d 20 63 6f 6e 74 72 ....m_ControlSchemeIndex.=.contr
5c60 6f 6c 53 63 68 65 6d 65 49 6e 64 65 78 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 olSchemeIndex,..................
5c80 20 20 20 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 20 3d 20 63 6f 6e 74 72 6f 6c 53 63 68 ....m_ControlScheme.=.controlSch
5ca0 65 6d 65 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 4f 6e 41 70 eme,......................m_OnAp
5cc0 70 6c 79 20 3d 20 6f 6e 41 70 70 6c 79 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ply.=.onApply,..................
5ce0 20 20 20 20 6d 5f 53 65 74 46 6f 63 75 73 20 3d 20 74 72 75 65 2c 0d 0a 20 20 20 20 20 20 20 20 ....m_SetFocus.=.true,..........
5d00 20 20 20 20 20 20 20 20 7d 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f ........};....................//
5d20 20 57 65 27 72 65 20 63 61 6c 6c 69 6e 67 20 68 65 72 65 20 66 72 6f 6d 20 61 20 63 61 6c 6c 62 .We're.calling.here.from.a.callb
5d40 61 63 6b 2c 20 73 6f 20 77 65 20 6e 65 65 64 20 74 6f 20 6d 61 6e 75 61 6c 6c 79 20 68 61 6e 64 ack,.so.we.need.to.manually.hand
5d60 6c 65 20 45 78 69 74 47 55 49 45 78 63 65 70 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 le.ExitGUIException.............
5d80 20 20 20 20 20 20 74 72 79 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 ......try..................{....
5da0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 50 6f 70 75 70 57 69 6e 64 6f 77 2e 53 68 ..................PopupWindow.Sh
5dc0 6f 77 28 70 6f 73 69 74 69 6f 6e 2c 20 70 6f 70 75 70 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 ow(position,.popup);............
5de0 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 74 63 68 20 28 ......}..................catch.(
5e00 45 78 69 74 47 55 49 45 78 63 65 70 74 69 6f 6e 29 20 7b 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 ExitGUIException).{}............
5e20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 ..}................public.overri
5e40 64 65 20 56 65 63 74 6f 72 32 20 47 65 74 57 69 6e 64 6f 77 53 69 7a 65 28 29 0d 0a 20 20 20 20 de.Vector2.GetWindowSize()......
5e60 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 72 65 74 75 72 ........{..................retur
5e80 6e 20 6d 5f 42 75 74 74 6f 6e 73 41 6e 64 4c 61 62 65 6c 73 48 65 69 67 68 74 73 20 3e 20 30 20 n.m_ButtonsAndLabelsHeights.>.0.
5ea0 3f 20 6e 65 77 20 56 65 63 74 6f 72 32 28 33 30 30 2c 20 6d 5f 42 75 74 74 6f 6e 73 41 6e 64 4c ?.new.Vector2(300,.m_ButtonsAndL
5ec0 61 62 65 6c 73 48 65 69 67 68 74 73 29 20 3a 20 73 5f 44 65 66 61 75 6c 74 53 69 7a 65 3b 0d 0a abelsHeights).:.s_DefaultSize;..
5ee0 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 ............}................pub
5f00 6c 69 63 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 4f 6e 4f 70 65 6e 28 29 0d 0a 20 20 20 20 lic.override.void.OnOpen()......
5f20 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 6d 5f 44 65 76 ........{..................m_Dev
5f40 69 63 65 4c 69 73 74 20 3d 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 2e 64 65 76 69 63 65 iceList.=.m_ControlScheme.device
5f60 52 65 71 75 69 72 65 6d 65 6e 74 73 2e 53 65 6c 65 63 74 28 61 20 3d 3e 20 6e 65 77 20 44 65 76 Requirements.Select(a.=>.new.Dev
5f80 69 63 65 45 6e 74 72 79 28 61 29 29 2e 54 6f 4c 69 73 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 iceEntry(a)).ToList();..........
5fa0 20 20 20 20 20 20 20 20 6d 5f 44 65 76 69 63 65 56 69 65 77 20 3d 20 6e 65 77 20 52 65 6f 72 64 ........m_DeviceView.=.new.Reord
5fc0 65 72 61 62 6c 65 4c 69 73 74 28 6d 5f 44 65 76 69 63 65 4c 69 73 74 2c 20 74 79 70 65 6f 66 28 erableList(m_DeviceList,.typeof(
5fe0 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 2e 44 65 76 69 63 65 52 65 71 75 69 72 65 InputControlScheme.DeviceRequire
6000 6d 65 6e 74 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 44 65 76 69 63 ment));..................m_Devic
6020 65 56 69 65 77 2e 68 65 61 64 65 72 48 65 69 67 68 74 20 3d 20 32 3b 0d 0a 20 20 20 20 20 20 20 eView.headerHeight.=.2;.........
6040 20 20 20 20 20 20 20 20 20 6d 5f 44 65 76 69 63 65 56 69 65 77 2e 6f 6e 41 64 64 43 61 6c 6c 62 .........m_DeviceView.onAddCallb
6060 61 63 6b 20 2b 3d 20 6c 69 73 74 20 3d 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ack.+=.list.=>..................
6080 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 64 72 6f 70 64 {......................var.dropd
60a0 6f 77 6e 20 3d 20 6e 65 77 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 50 69 63 6b 65 72 44 72 6f 70 own.=.new.InputControlPickerDrop
60c0 64 6f 77 6e 28 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6e down(..........................n
60e0 65 77 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 50 69 63 6b 65 72 53 74 61 74 65 28 29 2c 0d 0a 20 ew.InputControlPickerState(),...
6100 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 61 74 68 20 3d 3e 0d 0a .......................path.=>..
6120 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 ........................{.......
6140 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 72 65 71 75 69 .......................var.requi
6160 72 65 6d 65 6e 74 20 3d 20 6e 65 77 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 2e rement.=.new.InputControlScheme.
6180 44 65 76 69 63 65 52 65 71 75 69 72 65 6d 65 6e 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 DeviceRequirement...............
61a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ...............{................
61c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 72 6f 6c 50 61 74 68 20 3d 20 ..................controlPath.=.
61e0 70 61 74 68 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 path,...........................
6200 20 20 20 20 20 20 20 69 73 4f 70 74 69 6f 6e 61 6c 20 3d 20 66 61 6c 73 65 0d 0a 20 20 20 20 20 .......isOptional.=.false.......
6220 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 3b 0d 0a 0d 0a 20 20 20 .......................};.......
6240 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 41 64 64 44 65 76 69 .........................AddDevi
6260 63 65 52 65 71 75 69 72 65 6d 65 6e 74 28 72 65 71 75 69 72 65 6d 65 6e 74 29 3b 0d 0a 20 20 20 ceRequirement(requirement);.....
6280 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 2c 0d 0a 20 20 20 20 20 20 20 .....................},.........
62a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 6f 64 65 3a 20 49 6e 70 75 74 43 6f 6e 74 .................mode:.InputCont
62c0 72 6f 6c 50 69 63 6b 65 72 2e 4d 6f 64 65 2e 50 69 63 6b 44 65 76 69 63 65 29 3b 0d 0a 20 20 20 rolPicker.Mode.PickDevice);.....
62e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 72 6f 70 64 6f 77 6e 2e 53 68 6f 77 28 6e .................dropdown.Show(n
6300 65 77 20 52 65 63 74 28 45 76 65 6e 74 2e 63 75 72 72 65 6e 74 2e 6d 6f 75 73 65 50 6f 73 69 74 ew.Rect(Event.current.mousePosit
6320 69 6f 6e 2c 20 56 65 63 74 6f 72 32 2e 7a 65 72 6f 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 ion,.Vector2.zero));............
6340 20 20 20 20 20 20 7d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 44 65 76 69 ......};..................m_Devi
6360 63 65 56 69 65 77 2e 6f 6e 52 65 6d 6f 76 65 43 61 6c 6c 62 61 63 6b 20 2b 3d 20 6c 69 73 74 20 ceView.onRemoveCallback.+=.list.
6380 3d 3e 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 =>..................{...........
63a0 20 20 20 20 20 20 20 20 20 20 20 6c 69 73 74 2e 6c 69 73 74 2e 52 65 6d 6f 76 65 41 74 28 6c 69 ...........list.list.RemoveAt(li
63c0 73 74 2e 69 6e 64 65 78 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 st.index);......................
63e0 6c 69 73 74 2e 69 6e 64 65 78 20 3d 20 2d 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 list.index.=.-1;................
6400 20 20 7d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 ..};..............}.............
6420 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 4f 6e 47 55 49 28 52 65 ...public.override.void.OnGUI(Re
6440 63 74 20 72 65 63 74 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 ct.rect)..............{.........
6460 20 20 20 20 20 20 20 20 20 69 66 20 28 45 76 65 6e 74 2e 63 75 72 72 65 6e 74 2e 74 79 70 65 20 .........if.(Event.current.type.
6480 3d 3d 20 45 76 65 6e 74 54 79 70 65 2e 4b 65 79 44 6f 77 6e 20 26 26 20 45 76 65 6e 74 2e 63 75 ==.EventType.KeyDown.&&.Event.cu
64a0 72 72 65 6e 74 2e 6b 65 79 43 6f 64 65 20 3d 3d 20 4b 65 79 43 6f 64 65 2e 45 73 63 61 70 65 29 rrent.keyCode.==.KeyCode.Escape)
64c0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ..................{.............
64e0 20 20 20 20 20 20 20 20 20 65 64 69 74 6f 72 57 69 6e 64 6f 77 2e 43 6c 6f 73 65 28 29 3b 0d 0a .........editorWindow.Close();..
6500 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 76 65 6e 74 2e 63 75 72 72 65 6e ....................Event.curren
6520 74 2e 55 73 65 28 29 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 t.Use();..................}.....
6540 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 76 65 6e 74 2e 63 75 72 72 65 6e 74 ...............if.(Event.current
6560 2e 74 79 70 65 20 3d 3d 20 45 76 65 6e 74 54 79 70 65 2e 52 65 70 61 69 6e 74 29 0d 0a 20 20 20 .type.==.EventType.Repaint).....
6580 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 42 75 74 74 6f 6e 73 41 6e 64 4c 61 62 .................m_ButtonsAndLab
65a0 65 6c 73 48 65 69 67 68 74 73 20 3d 20 30 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 elsHeights.=.0;.................
65c0 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 41 72 65 61 28 72 65 63 74 29 3b 0d 0a 20 ...GUILayout.BeginArea(rect);...
65e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 54 6f 70 42 61 72 28 29 3b 0d 0a 20 20 ...............DrawTopBar();....
6600 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 ..............EditorGUILayout.Be
6620 67 69 6e 56 65 72 74 69 63 61 6c 28 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 6c 61 62 65 6c 29 3b ginVertical(EditorStyles.label);
6640 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 53 70 61 63 65 28 29 3b 0d 0a ..................DrawSpace();..
6660 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 4e 61 6d 65 45 64 69 74 54 65 78 74 ................DrawNameEditText
6680 46 69 65 6c 64 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 53 70 Field();..................DrawSp
66a0 61 63 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 44 65 76 69 ace();..................DrawDevi
66c0 63 65 4c 69 73 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 43 ceList();..................DrawC
66e0 6f 6e 66 69 72 6d 61 74 69 6f 6e 42 75 74 74 6f 6e 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 onfirmationButton();............
6700 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 56 65 72 74 69 63 61 ......EditorGUILayout.EndVertica
6720 6c 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 74 2e l();..................GUILayout.
6740 45 6e 64 41 72 65 61 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 EndArea();..............}.......
6760 20 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 44 72 61 77 43 6f 6e 66 69 72 .........private.void.DrawConfir
6780 6d 61 74 69 6f 6e 42 75 74 74 6f 6e 28 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 mationButton()..............{...
67a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 ...............EditorGUILayout.B
67c0 65 67 69 6e 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 eginHorizontal();...............
67e0 20 20 20 69 66 20 28 47 55 49 4c 61 79 6f 75 74 2e 42 75 74 74 6f 6e 28 22 43 61 6e 63 65 6c 22 ...if.(GUILayout.Button("Cancel"
6800 2c 20 47 55 49 4c 61 79 6f 75 74 2e 45 78 70 61 6e 64 57 69 64 74 68 28 74 72 75 65 29 29 29 0d ,.GUILayout.ExpandWidth(true))).
6820 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 .................{..............
6840 20 20 20 20 20 20 20 20 65 64 69 74 6f 72 57 69 6e 64 6f 77 2e 43 6c 6f 73 65 28 29 3b 0d 0a 20 ........editorWindow.Close();...
6860 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ...............}................
6880 20 20 69 66 20 28 47 55 49 4c 61 79 6f 75 74 2e 42 75 74 74 6f 6e 28 22 53 61 76 65 22 2c 20 47 ..if.(GUILayout.Button("Save",.G
68a0 55 49 4c 61 79 6f 75 74 2e 45 78 70 61 6e 64 57 69 64 74 68 28 74 72 75 65 29 29 29 0d 0a 20 20 UILayout.ExpandWidth(true)))....
68c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..............{.................
68e0 20 20 20 20 20 2f 2f 20 44 6f 6e 27 74 20 61 6c 6c 6f 77 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 .....//.Don't.allow.control.sche
6900 6d 65 20 6e 61 6d 65 20 74 6f 20 62 65 20 65 6d 70 74 79 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 me.name.to.be.empty.............
6920 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 ..........if.(string.IsNullOrEmp
6940 74 79 28 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 2e 6e 61 6d 65 29 29 0d 0a 20 20 20 20 20 ty(m_ControlScheme.name)).......
6960 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ...............{................
6980 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 46 49 58 4d 45 3a 20 4f 6e 20 32 30 31 39 2e 31 20 74 ..........////FIXME:.On.2019.1.t
69a0 68 69 73 20 64 6f 65 73 6e 27 74 20 64 69 73 70 6c 61 79 20 70 72 6f 70 65 72 6c 79 20 69 6e 20 his.doesn't.display.properly.in.
69c0 74 68 65 20 77 69 6e 64 6f 77 3b 20 63 68 65 63 6b 20 32 30 31 39 2e 33 0d 0a 20 20 20 20 20 20 the.window;.check.2019.3........
69e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 64 69 74 6f 72 57 69 6e 64 6f 77 2e 53 ..................editorWindow.S
6a00 68 6f 77 4e 6f 74 69 66 69 63 61 74 69 6f 6e 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 howNotification(new.GUIContent("
6a20 43 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 20 6d 75 73 74 20 68 61 76 65 20 61 20 6e 61 6d 65 22 Control.scheme.must.have.a.name"
6a40 29 29 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 20 ));......................}......
6a60 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 20 ................else............
6a80 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..........{.....................
6aa0 20 20 20 20 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 20 3d 20 6e 65 77 20 49 6e 70 75 74 .....m_ControlScheme.=.new.Input
6ac0 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 28 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 2e 6e 61 ControlScheme(m_ControlScheme.na
6ae0 6d 65 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 me,.............................
6b00 20 64 65 76 69 63 65 73 3a 20 6d 5f 44 65 76 69 63 65 4c 69 73 74 2e 53 65 6c 65 63 74 28 61 20 .devices:.m_DeviceList.Select(a.
6b20 3d 3e 20 61 2e 64 65 76 69 63 65 52 65 71 75 69 72 65 6d 65 6e 74 29 29 3b 0d 0a 0d 0a 20 20 20 =>.a.deviceRequirement));.......
6b40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 64 69 74 6f 72 57 69 6e 64 6f .....................editorWindo
6b60 77 2e 43 6c 6f 73 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 w.Close();......................
6b80 20 20 20 20 6d 5f 4f 6e 41 70 70 6c 79 28 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 2c 20 6d ....m_OnApply(m_ControlScheme,.m
6ba0 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 49 6e 64 65 78 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 _ControlSchemeIndex);...........
6bc0 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d ...........}..................}.
6be0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 76 65 6e 74 2e 63 75 72 72 65 .................if.(Event.curre
6c00 6e 74 2e 74 79 70 65 20 3d 3d 20 45 76 65 6e 74 54 79 70 65 2e 52 65 70 61 69 6e 74 29 0d 0a 20 nt.type.==.EventType.Repaint)...
6c20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 42 75 74 74 6f 6e 73 41 6e 64 4c ...................m_ButtonsAndL
6c40 61 62 65 6c 73 48 65 69 67 68 74 73 20 2b 3d 20 47 55 49 4c 61 79 6f 75 74 55 74 69 6c 69 74 79 abelsHeights.+=.GUILayoutUtility
6c60 2e 47 65 74 4c 61 73 74 52 65 63 74 28 29 2e 68 65 69 67 68 74 3b 0d 0a 20 20 20 20 20 20 20 20 .GetLastRect().height;..........
6c80 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 48 6f 72 69 7a ........EditorGUILayout.EndHoriz
6ca0 6f 6e 74 61 6c 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 ontal();..............}.........
6cc0 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 44 72 61 77 44 65 76 69 63 65 4c 69 .......private.void.DrawDeviceLi
6ce0 73 74 28 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 st()..............{.............
6d00 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 48 6f 72 69 7a 6f .....EditorGUILayout.BeginHorizo
6d20 6e 74 61 6c 28 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 6c 61 62 65 6c 29 3b 0d 0a 20 20 20 20 20 ntal(EditorStyles.label);.......
6d40 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 72 65 71 75 69 72 65 6d 65 6e 74 73 4c 61 62 65 6c ...........var.requirementsLabel
6d60 53 69 7a 65 20 3d 20 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 6c 61 62 65 6c 2e 43 61 6c 63 53 69 Size.=.EditorStyles.label.CalcSi
6d80 7a 65 28 73 5f 52 65 71 75 69 72 65 6d 65 6e 74 73 4c 61 62 65 6c 29 3b 0d 0a 20 20 20 20 20 20 ze(s_RequirementsLabel);........
6da0 20 20 20 20 20 20 20 20 20 20 76 61 72 20 64 65 76 69 63 65 4c 69 73 74 52 65 63 74 20 3d 20 47 ..........var.deviceListRect.=.G
6dc0 55 49 4c 61 79 6f 75 74 55 74 69 6c 69 74 79 2e 47 65 74 52 65 63 74 28 47 65 74 57 69 6e 64 6f UILayoutUtility.GetRect(GetWindo
6de0 77 53 69 7a 65 28 29 2e 78 20 2d 20 72 65 71 75 69 72 65 6d 65 6e 74 73 4c 61 62 65 6c 53 69 7a wSize().x.-.requirementsLabelSiz
6e00 65 2e 78 20 2d 20 32 30 2c 20 6d 5f 44 65 76 69 63 65 56 69 65 77 2e 47 65 74 48 65 69 67 68 74 e.x.-.20,.m_DeviceView.GetHeight
6e20 28 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 44 65 76 69 63 65 56 69 ());..................m_DeviceVi
6e40 65 77 2e 44 6f 4c 69 73 74 28 64 65 76 69 63 65 4c 69 73 74 52 65 63 74 29 3b 0d 0a 20 20 20 20 ew.DoList(deviceListRect);......
6e60 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 72 65 71 75 69 72 65 6d 65 6e 74 73 48 65 69 67 ............var.requirementsHeig
6e80 68 74 20 3d 20 44 72 61 77 52 65 71 75 69 72 65 6d 65 6e 74 73 43 68 65 63 6b 62 6f 78 65 73 28 ht.=.DrawRequirementsCheckboxes(
6ea0 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6c 69 73 74 48 65 69 67 );..................var.listHeig
6ec0 68 74 20 3d 20 6d 5f 44 65 76 69 63 65 56 69 65 77 2e 47 65 74 48 65 69 67 68 74 28 29 20 2b 20 ht.=.m_DeviceView.GetHeight().+.
6ee0 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 73 69 6e 67 6c 65 4c 69 6e 65 48 65 69 67 68 EditorGUIUtility.singleLineHeigh
6f00 74 20 2a 20 33 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 76 65 6e t.*.3;..................if.(Even
6f20 74 2e 63 75 72 72 65 6e 74 2e 74 79 70 65 20 3d 3d 20 45 76 65 6e 74 54 79 70 65 2e 52 65 70 61 t.current.type.==.EventType.Repa
6f40 69 6e 74 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 int)..................{.........
6f60 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6c 69 73 74 48 65 69 67 68 74 20 3c 20 72 65 .............if.(listHeight.<.re
6f80 71 75 69 72 65 6d 65 6e 74 73 48 65 69 67 68 74 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 quirementsHeight)...............
6fa0 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .......{........................
6fc0 20 20 6d 5f 42 75 74 74 6f 6e 73 41 6e 64 4c 61 62 65 6c 73 48 65 69 67 68 74 73 20 2b 3d 20 72 ..m_ButtonsAndLabelsHeights.+=.r
6fe0 65 71 75 69 72 65 6d 65 6e 74 73 48 65 69 67 68 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 equirementsHeight;..............
7000 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 ........}......................e
7020 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 7b 0d 0a 20 20 20 20 lse......................{......
7040 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 42 75 74 74 6f 6e 73 41 6e 64 ....................m_ButtonsAnd
7060 4c 61 62 65 6c 73 48 65 69 67 68 74 73 20 2b 3d 20 6c 69 73 74 48 65 69 67 68 74 3b 0d 0a 20 20 LabelsHeights.+=.listHeight;....
7080 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ..................}.............
70a0 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 45 64 69 74 6f 72 .....}....................Editor
70c0 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0d 0a 20 20 20 20 GUILayout.EndHorizontal();......
70e0 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 ........}................private
7100 20 76 6f 69 64 20 44 72 61 77 53 70 61 63 65 28 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b .void.DrawSpace()..............{
7120 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 53 70 61 63 ..................GUILayout.Spac
7140 65 28 36 66 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 76 65 6e e(6f);..................if.(Even
7160 74 2e 63 75 72 72 65 6e 74 2e 74 79 70 65 20 3d 3d 20 45 76 65 6e 74 54 79 70 65 2e 52 65 70 61 t.current.type.==.EventType.Repa
7180 69 6e 74 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 42 75 74 74 int)......................m_Butt
71a0 6f 6e 73 41 6e 64 4c 61 62 65 6c 73 48 65 69 67 68 74 73 20 2b 3d 20 36 66 3b 0d 0a 20 20 20 20 onsAndLabelsHeights.+=.6f;......
71c0 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 ........}................private
71e0 20 76 6f 69 64 20 44 72 61 77 54 6f 70 42 61 72 28 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 .void.DrawTopBar()..............
7200 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f {..................EditorGUILayo
7220 75 74 2e 4c 61 62 65 6c 46 69 65 6c 64 28 73 5f 41 64 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 ut.LabelField(s_AddControlScheme
7240 4c 61 62 65 6c 2c 20 53 74 79 6c 65 73 2e 68 65 61 64 65 72 4c 61 62 65 6c 29 3b 0d 0a 0d 0a 20 Label,.Styles.headerLabel);.....
7260 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 76 65 6e 74 2e 63 75 72 72 65 6e 74 ...............if.(Event.current
7280 2e 74 79 70 65 20 3d 3d 20 45 76 65 6e 74 54 79 70 65 2e 52 65 70 61 69 6e 74 29 0d 0a 20 20 20 .type.==.EventType.Repaint).....
72a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 42 75 74 74 6f 6e 73 41 6e 64 4c 61 62 .................m_ButtonsAndLab
72c0 65 6c 73 48 65 69 67 68 74 73 20 2b 3d 20 47 55 49 4c 61 79 6f 75 74 55 74 69 6c 69 74 79 2e 47 elsHeights.+=.GUILayoutUtility.G
72e0 65 74 4c 61 73 74 52 65 63 74 28 29 2e 68 65 69 67 68 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 etLastRect().height;............
7300 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 ..}................private.void.
7320 44 72 61 77 4e 61 6d 65 45 64 69 74 54 65 78 74 46 69 65 6c 64 28 29 0d 0a 20 20 20 20 20 20 20 DrawNameEditTextField().........
7340 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 .....{..................EditorGU
7360 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0d 0a 20 20 20 20 ILayout.BeginHorizontal();......
7380 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6c 61 62 65 6c 53 69 7a 65 20 3d 20 45 64 69 74 ............var.labelSize.=.Edit
73a0 6f 72 53 74 79 6c 65 73 2e 6c 61 62 65 6c 2e 43 61 6c 63 53 69 7a 65 28 73 5f 52 65 71 75 69 72 orStyles.label.CalcSize(s_Requir
73c0 65 6d 65 6e 74 73 4c 61 62 65 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 ementsLabel);..................E
73e0 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 4c 61 62 65 6c 46 69 65 6c 64 28 73 5f 43 6f 6e 74 ditorGUILayout.LabelField(s_Cont
7400 72 6f 6c 53 63 68 65 6d 65 4e 61 6d 65 4c 61 62 65 6c 2c 20 47 55 49 4c 61 79 6f 75 74 2e 57 69 rolSchemeNameLabel,.GUILayout.Wi
7420 64 74 68 28 6c 61 62 65 6c 53 69 7a 65 2e 78 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 dth(labelSize.x));..............
7440 20 20 20 20 20 20 47 55 49 2e 53 65 74 4e 65 78 74 43 6f 6e 74 72 6f 6c 4e 61 6d 65 28 22 43 6f ......GUI.SetNextControlName("Co
7460 6e 74 72 6f 6c 53 63 68 65 6d 65 4e 61 6d 65 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ntrolSchemeName");..............
7480 20 20 20 20 2f 2f 2f 2f 46 49 58 4d 45 3a 20 54 68 69 73 20 73 68 6f 75 6c 64 20 62 65 20 61 20 ....////FIXME:.This.should.be.a.
74a0 44 65 6c 61 79 65 64 54 65 78 74 46 69 65 6c 64 20 62 75 74 20 66 6f 72 20 73 6f 6d 65 20 72 65 DelayedTextField.but.for.some.re
74c0 61 73 6f 6e 20 28 6d 61 79 62 65 20 62 65 63 61 75 73 65 20 69 74 27 73 20 69 6e 20 61 20 70 6f ason.(maybe.because.it's.in.a.po
74e0 70 75 70 3f 29 2c 20 74 68 69 73 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f pup?),.this..................///
7500 2f 20 20 20 20 20 20 20 77 69 6c 6c 20 6c 65 61 64 20 74 6f 20 74 68 65 20 74 65 78 74 20 66 69 /.......will.lead.to.the.text.fi
7520 65 6c 64 20 6e 6f 74 20 77 6f 72 6b 69 6e 67 20 63 6f 72 72 65 63 74 6c 79 2e 20 48 69 74 74 69 eld.not.working.correctly..Hitti
7540 6e 67 20 65 6e 74 65 72 20 6f 6e 20 74 68 65 20 6b 65 79 62 6f 61 72 64 20 77 69 6c 6c 20 61 70 ng.enter.on.the.keyboard.will.ap
7560 70 6c 79 20 74 68 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 20 20 20 ply.the..................////...
7580 20 20 20 20 63 68 61 6e 67 65 20 61 73 20 65 78 70 65 63 74 65 64 20 62 75 74 20 6c 6f 73 69 6e ....change.as.expected.but.losin
75a0 67 20 66 6f 63 75 73 20 77 69 6c 6c 20 2a 4e 4f 54 2a 2e 20 49 6e 20 6d 6f 73 74 20 63 61 73 65 g.focus.will.*NOT*..In.most.case
75c0 73 2c 20 74 68 69 73 20 6d 61 6b 65 73 20 74 68 65 20 74 65 78 74 20 66 69 65 6c 64 20 73 65 65 s,.this.makes.the.text.field.see
75e0 6d 20 6e 6f 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 20 20 20 20 20 m.not..................////.....
7600 20 20 74 6f 20 77 6f 72 6b 20 61 74 20 61 6c 6c 20 73 6f 20 69 6e 73 74 65 61 64 20 77 65 20 75 ..to.work.at.all.so.instead.we.u
7620 73 65 20 61 20 6e 6f 72 6d 61 6c 20 74 65 78 74 20 66 69 65 6c 64 20 68 65 72 65 20 61 6e 64 20 se.a.normal.text.field.here.and.
7640 74 68 65 6e 20 61 70 70 6c 79 20 74 68 65 20 6e 61 6d 65 20 63 68 61 6e 67 65 20 61 73 20 70 61 then.apply.the.name.change.as.pa
7660 72 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 20 20 20 20 20 20 20 6f rt..................////.......o
7680 66 20 61 70 70 6c 79 20 74 68 65 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 20 63 68 61 6e 67 f.apply.the.control.scheme.chang
76a0 65 73 20 61 73 20 61 20 77 68 6f 6c 65 2e 20 54 68 65 20 6f 6e 6c 79 20 72 65 61 6c 20 64 6f 77 es.as.a.whole..The.only.real.dow
76c0 6e 73 69 64 65 20 69 73 20 74 68 61 74 20 69 66 20 74 68 65 20 6e 61 6d 65 20 67 65 74 73 0d 0a nside.is.that.if.the.name.gets..
76e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 20 20 20 20 20 20 20 61 64 6a 75 73 ................////.......adjus
7700 74 65 64 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 62 65 63 61 75 73 65 20 6f 66 20 61 20 6e ted.automatically.because.of.a.n
7720 61 6d 69 6e 67 20 63 6f 6e 66 6c 69 63 74 2c 20 74 68 69 73 20 77 69 6c 6c 20 6f 6e 6c 79 20 62 aming.conflict,.this.will.only.b
7740 65 63 6f 6d 65 20 65 76 69 64 65 6e 74 20 2a 61 66 74 65 72 2a 20 68 69 74 74 69 6e 67 0d 0a 20 ecome.evident.*after*.hitting...
7760 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 20 20 20 20 20 20 20 74 68 65 20 22 53 ...............////.......the."S
7780 61 76 65 22 20 62 75 74 74 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f ave".button...................m_
77a0 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 2e 6d 5f 4e 61 6d 65 20 3d 20 45 64 69 74 6f 72 47 55 49 ControlScheme.m_Name.=.EditorGUI
77c0 4c 61 79 6f 75 74 2e 54 65 78 74 46 69 65 6c 64 28 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 Layout.TextField(m_ControlScheme
77e0 2e 6d 5f 4e 61 6d 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 .m_Name);....................if.
7800 28 6d 5f 53 65 74 46 6f 63 75 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d (m_SetFocus)..................{.
7820 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 46 .....................EditorGUI.F
7840 6f 63 75 73 54 65 78 74 49 6e 43 6f 6e 74 72 6f 6c 28 22 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 ocusTextInControl("ControlScheme
7860 4e 61 6d 65 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 Name");......................m_S
7880 65 74 46 6f 63 75 73 20 3d 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 etFocus.=.false;................
78a0 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 ..}....................EditorGUI
78c0 4c 61 79 6f 75 74 2e 45 6e 64 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0d 0a 20 20 20 20 20 20 20 Layout.EndHorizontal();.........
78e0 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 66 6c .....}................private.fl
7900 6f 61 74 20 44 72 61 77 52 65 71 75 69 72 65 6d 65 6e 74 73 43 68 65 63 6b 62 6f 78 65 73 28 29 oat.DrawRequirementsCheckboxes()
7920 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 20 ..............{.................
7940 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 56 65 72 74 69 63 61 6c 28 29 .EditorGUILayout.BeginVertical()
7960 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f ;..................EditorGUILayo
7980 75 74 2e 4c 61 62 65 6c 46 69 65 6c 64 28 73 5f 52 65 71 75 69 72 65 6d 65 6e 74 73 4c 61 62 65 ut.LabelField(s_RequirementsLabe
79a0 6c 2c 20 47 55 49 4c 61 79 6f 75 74 2e 57 69 64 74 68 28 32 30 30 29 29 3b 0d 0a 20 20 20 20 20 l,.GUILayout.Width(200));.......
79c0 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 72 65 71 75 69 72 65 6d 65 6e 74 48 65 69 67 68 74 ...........var.requirementHeight
79e0 73 20 3d 20 47 55 49 4c 61 79 6f 75 74 55 74 69 6c 69 74 79 2e 47 65 74 4c 61 73 74 52 65 63 74 s.=.GUILayoutUtility.GetLastRect
7a00 28 29 2e 79 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 ().y;..................EditorGUI
7a20 2e 42 65 67 69 6e 44 69 73 61 62 6c 65 64 47 72 6f 75 70 28 6d 5f 44 65 76 69 63 65 56 69 65 77 .BeginDisabledGroup(m_DeviceView
7a40 2e 69 6e 64 65 78 20 3d 3d 20 2d 31 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .index.==.-1);..................
7a60 76 61 72 20 72 65 71 75 69 72 65 6d 65 6e 74 73 4f 70 74 69 6f 6e 20 3d 20 2d 31 3b 0d 0a 20 20 var.requirementsOption.=.-1;....
7a80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 44 65 76 69 63 65 56 69 65 77 2e 69 ..............if.(m_DeviceView.i
7aa0 6e 64 65 78 20 3e 3d 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 ndex.>=.0)..................{...
7ac0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 64 65 76 69 63 65 45 6e 74 ...................var.deviceEnt
7ae0 72 79 46 6f 72 4c 69 73 74 20 3d 20 28 44 65 76 69 63 65 45 6e 74 72 79 29 6d 5f 44 65 76 69 63 ryForList.=.(DeviceEntry)m_Devic
7b00 65 56 69 65 77 2e 6c 69 73 74 5b 6d 5f 44 65 76 69 63 65 56 69 65 77 2e 69 6e 64 65 78 5d 3b 0d eView.list[m_DeviceView.index];.
7b20 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 71 75 69 72 65 6d 65 6e 74 .....................requirement
7b40 73 4f 70 74 69 6f 6e 20 3d 20 64 65 76 69 63 65 45 6e 74 72 79 46 6f 72 4c 69 73 74 2e 64 65 76 sOption.=.deviceEntryForList.dev
7b60 69 63 65 52 65 71 75 69 72 65 6d 65 6e 74 2e 69 73 4f 70 74 69 6f 6e 61 6c 20 3f 20 30 20 3a 20 iceRequirement.isOptional.?.0.:.
7b80 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 1;..................}...........
7ba0 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 43 68 61 6e 67 65 43 68 65 63 .......EditorGUI.BeginChangeChec
7bc0 6b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 71 75 69 72 65 6d 65 6e k();..................requiremen
7be0 74 73 4f 70 74 69 6f 6e 20 3d 20 47 55 49 4c 61 79 6f 75 74 2e 53 65 6c 65 63 74 69 6f 6e 47 72 tsOption.=.GUILayout.SelectionGr
7c00 69 64 28 72 65 71 75 69 72 65 6d 65 6e 74 73 4f 70 74 69 6f 6e 2c 20 73 5f 52 65 71 75 69 72 65 id(requirementsOption,.s_Require
7c20 64 4f 70 74 69 6f 6e 61 6c 43 68 6f 69 63 65 73 2c 20 31 2c 20 45 64 69 74 6f 72 53 74 79 6c 65 dOptionalChoices,.1,.EditorStyle
7c40 73 2e 72 61 64 69 6f 42 75 74 74 6f 6e 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 s.radioButton);.................
7c60 20 72 65 71 75 69 72 65 6d 65 6e 74 48 65 69 67 68 74 73 20 2b 3d 20 47 55 49 4c 61 79 6f 75 74 .requirementHeights.+=.GUILayout
7c80 55 74 69 6c 69 74 79 2e 47 65 74 4c 61 73 74 52 65 63 74 28 29 2e 79 3b 0d 0a 20 20 20 20 20 20 Utility.GetLastRect().y;........
7ca0 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 64 69 74 6f 72 47 55 49 2e 45 6e 64 43 68 61 6e 67 ..........if.(EditorGUI.EndChang
7cc0 65 43 68 65 63 6b 28 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d eCheck())......................m
7ce0 5f 44 65 76 69 63 65 4c 69 73 74 5b 6d 5f 44 65 76 69 63 65 56 69 65 77 2e 69 6e 64 65 78 5d 2e _DeviceList[m_DeviceView.index].
7d00 64 65 76 69 63 65 52 65 71 75 69 72 65 6d 65 6e 74 2e 69 73 4f 70 74 69 6f 6e 61 6c 20 3d 20 72 deviceRequirement.isOptional.=.r
7d20 65 71 75 69 72 65 6d 65 6e 74 73 4f 70 74 69 6f 6e 20 3d 3d 20 30 3b 0d 0a 20 20 20 20 20 20 20 equirementsOption.==.0;.........
7d40 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 45 6e 64 44 69 73 61 62 6c 65 64 47 72 .........EditorGUI.EndDisabledGr
7d60 6f 75 70 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 oup();..................EditorGU
7d80 49 4c 61 79 6f 75 74 2e 45 6e 64 56 65 72 74 69 63 61 6c 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 ILayout.EndVertical();..........
7da0 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 72 65 71 75 69 72 65 6d 65 6e 74 48 65 69 67 68 74 ........return.requirementHeight
7dc0 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 s;..............}...............
7de0 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 41 64 64 44 65 76 69 63 65 52 65 71 75 69 72 65 6d 65 .private.void.AddDeviceRequireme
7e00 6e 74 28 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 2e 44 65 76 69 63 65 52 65 71 75 nt(InputControlScheme.DeviceRequ
7e20 69 72 65 6d 65 6e 74 20 72 65 71 75 69 72 65 6d 65 6e 74 29 0d 0a 20 20 20 20 20 20 20 20 20 20 irement.requirement)............
7e40 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 41 72 72 61 79 48 65 6c 70 65 72 ..{..................ArrayHelper
7e60 73 2e 41 70 70 65 6e 64 28 72 65 66 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 2e 6d 5f 44 s.Append(ref.m_ControlScheme.m_D
7e80 65 76 69 63 65 52 65 71 75 69 72 65 6d 65 6e 74 73 2c 20 72 65 71 75 69 72 65 6d 65 6e 74 29 3b eviceRequirements,.requirement);
7ea0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 44 65 76 69 63 65 4c 69 73 74 2e 41 ..................m_DeviceList.A
7ec0 64 64 28 6e 65 77 20 44 65 76 69 63 65 45 6e 74 72 79 28 72 65 71 75 69 72 65 6d 65 6e 74 29 29 dd(new.DeviceEntry(requirement))
7ee0 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 44 65 76 69 63 65 56 69 65 77 2e ;..................m_DeviceView.
7f00 69 6e 64 65 78 20 3d 20 6d 5f 44 65 76 69 63 65 56 69 65 77 2e 6c 69 73 74 2e 43 6f 75 6e 74 20 index.=.m_DeviceView.list.Count.
7f20 2d 20 31 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 64 69 74 6f 72 57 69 -.1;....................editorWi
7f40 6e 64 6f 77 2e 52 65 70 61 69 6e 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a ndow.Repaint();..............}..
7f60 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 ..............///.<summary>.....
7f80 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 20 .........///.The.control.scheme.
7fa0 65 64 69 74 65 64 20 62 79 20 74 68 65 20 70 6f 70 75 70 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 edited.by.the.popup.............
7fc0 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 20 20 20 20 70 75 ..///.</summary>..............pu
7fe0 62 6c 69 63 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 20 63 6f 6e 74 72 6f 6c 53 blic.InputControlScheme.controlS
8000 63 68 65 6d 65 20 3d 3e 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 3b 0d 0a 0d 0a 20 20 20 cheme.=>.m_ControlScheme;.......
8020 20 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 69 6e 74 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 .........private.int.m_ControlSc
8040 68 65 6d 65 49 6e 64 65 78 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 hemeIndex;..............private.
8060 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 InputControlScheme.m_ControlSche
8080 6d 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 41 63 74 69 6f 6e 3c me;..............private.Action<
80a0 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 2c 20 69 6e 74 3e 20 6d 5f 4f 6e 41 70 70 InputControlScheme,.int>.m_OnApp
80c0 6c 79 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 52 65 6f 72 64 ly;................private.Reord
80e0 65 72 61 62 6c 65 4c 69 73 74 20 6d 5f 44 65 76 69 63 65 56 69 65 77 3b 0d 0a 20 20 20 20 20 20 erableList.m_DeviceView;........
8100 20 20 20 20 20 20 70 72 69 76 61 74 65 20 4c 69 73 74 3c 44 65 76 69 63 65 45 6e 74 72 79 3e 20 ......private.List<DeviceEntry>.
8120 6d 5f 44 65 76 69 63 65 4c 69 73 74 20 3d 20 6e 65 77 20 4c 69 73 74 3c 44 65 76 69 63 65 45 6e m_DeviceList.=.new.List<DeviceEn
8140 74 72 79 3e 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 69 6e 74 try>();..............private.int
8160 20 6d 5f 52 65 71 75 69 72 65 6d 65 6e 74 73 4f 70 74 69 6f 6e 73 43 68 6f 69 63 65 3b 0d 0a 0d .m_RequirementsOptionsChoice;...
8180 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 62 6f 6f 6c 20 6d 5f 53 65 74 46 .............private.bool.m_SetF
81a0 6f 63 75 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 66 6c 6f 61 74 ocus;..............private.float
81c0 20 6d 5f 42 75 74 74 6f 6e 73 41 6e 64 4c 61 62 65 6c 73 48 65 69 67 68 74 73 3b 0d 0a 0d 0a 20 .m_ButtonsAndLabelsHeights;.....
81e0 20 20 20 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 56 65 63 74 6f 72 ...........private.static.Vector
8200 32 20 73 5f 44 65 66 61 75 6c 74 53 69 7a 65 20 3d 3e 20 6e 65 77 20 56 65 63 74 6f 72 32 28 33 2.s_DefaultSize.=>.new.Vector2(3
8220 30 30 2c 20 32 30 30 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 00,.200);..............private.s
8240 74 61 74 69 63 20 72 65 61 64 6f 6e 6c 79 20 47 55 49 43 6f 6e 74 65 6e 74 20 73 5f 52 65 71 75 tatic.readonly.GUIContent.s_Requ
8260 69 72 65 6d 65 6e 74 73 4c 61 62 65 6c 20 3d 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 irementsLabel.=.EditorGUIUtility
8280 2e 54 72 54 65 78 74 43 6f 6e 74 65 6e 74 28 22 52 65 71 75 69 72 65 6d 65 6e 74 73 3a 22 29 3b .TrTextContent("Requirements:");
82a0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 72 65 61 ..............private.static.rea
82c0 64 6f 6e 6c 79 20 47 55 49 43 6f 6e 74 65 6e 74 20 73 5f 41 64 64 43 6f 6e 74 72 6f 6c 53 63 68 donly.GUIContent.s_AddControlSch
82e0 65 6d 65 4c 61 62 65 6c 20 3d 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 54 72 54 65 emeLabel.=.EditorGUIUtility.TrTe
8300 78 74 43 6f 6e 74 65 6e 74 28 22 41 64 64 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 22 29 3b xtContent("Add.control.scheme");
8320 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 72 65 61 ..............private.static.rea
8340 64 6f 6e 6c 79 20 47 55 49 43 6f 6e 74 65 6e 74 20 73 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 donly.GUIContent.s_ControlScheme
8360 4e 61 6d 65 4c 61 62 65 6c 20 3d 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 54 72 54 NameLabel.=.EditorGUIUtility.TrT
8380 65 78 74 43 6f 6e 74 65 6e 74 28 22 53 63 68 65 6d 65 20 4e 61 6d 65 22 29 3b 0d 0a 20 20 20 20 extContent("Scheme.Name");......
83a0 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 72 65 61 64 6f 6e 6c 79 20 ........private.static.readonly.
83c0 73 74 72 69 6e 67 5b 5d 20 73 5f 52 65 71 75 69 72 65 64 4f 70 74 69 6f 6e 61 6c 43 68 6f 69 63 string[].s_RequiredOptionalChoic
83e0 65 73 20 3d 20 7b 20 22 4f 70 74 69 6f 6e 61 6c 22 2c 20 22 52 65 71 75 69 72 65 64 22 20 7d 3b es.=.{."Optional",."Required".};
8400 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 63 ................private.static.c
8420 6c 61 73 73 20 53 74 79 6c 65 73 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 lass.Styles..............{......
8440 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 72 65 61 64 6f 6e ............public.static.readon
8460 6c 79 20 47 55 49 53 74 79 6c 65 20 68 65 61 64 65 72 4c 61 62 65 6c 20 3d 20 6e 65 77 20 47 55 ly.GUIStyle.headerLabel.=.new.GU
8480 49 53 74 79 6c 65 28 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 74 6f 6f 6c 62 61 72 29 0d 0a 20 20 IStyle(EditorStyles.toolbar)....
84a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2e 57 69 74 68 41 6c 69 67 6e 6d 65 6e 74 ...................WithAlignment
84c0 28 54 65 78 74 41 6e 63 68 6f 72 2e 4d 69 64 64 6c 65 43 65 6e 74 65 72 29 0d 0a 20 20 20 20 20 (TextAnchor.MiddleCenter).......
84e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2e 57 69 74 68 46 6f 6e 74 53 74 79 6c 65 28 46 6f ................WithFontStyle(Fo
8500 6e 74 53 74 79 6c 65 2e 42 6f 6c 64 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ntStyle.Bold)...................
8520 20 20 20 2e 57 69 74 68 50 61 64 64 69 6e 67 28 6e 65 77 20 52 65 63 74 4f 66 66 73 65 74 28 31 ....WithPadding(new.RectOffset(1
8540 30 2c 20 36 2c 20 30 2c 20 30 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 0,.6,.0,.0));..............}....
8560 20 20 20 20 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 63 6c 61 73 73 20 44 65 76 69 63 65 ............private.class.Device
8580 45 6e 74 72 79 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 Entry..............{............
85a0 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 72 69 6e 67 20 64 69 73 70 6c 61 79 54 65 78 74 3b ......public.string.displayText;
85c0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 6e 70 75 74 43 6f ..................public.InputCo
85e0 6e 74 72 6f 6c 53 63 68 65 6d 65 2e 44 65 76 69 63 65 52 65 71 75 69 72 65 6d 65 6e 74 20 64 65 ntrolScheme.DeviceRequirement.de
8600 76 69 63 65 52 65 71 75 69 72 65 6d 65 6e 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 viceRequirement;................
8620 20 20 20 20 70 75 62 6c 69 63 20 44 65 76 69 63 65 45 6e 74 72 79 28 49 6e 70 75 74 43 6f 6e 74 ....public.DeviceEntry(InputCont
8640 72 6f 6c 53 63 68 65 6d 65 2e 44 65 76 69 63 65 52 65 71 75 69 72 65 6d 65 6e 74 20 72 65 71 75 rolScheme.DeviceRequirement.requ
8660 69 72 65 6d 65 6e 74 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 irement)..................{.....
8680 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 69 73 70 6c 61 79 54 65 78 74 20 3d 20 44 .................displayText.=.D
86a0 65 76 69 63 65 52 65 71 75 69 72 65 6d 65 6e 74 54 6f 44 69 73 70 6c 61 79 53 74 72 69 6e 67 28 eviceRequirementToDisplayString(
86c0 72 65 71 75 69 72 65 6d 65 6e 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 requirement);...................
86e0 20 20 20 64 65 76 69 63 65 52 65 71 75 69 72 65 6d 65 6e 74 20 3d 20 72 65 71 75 69 72 65 6d 65 ...deviceRequirement.=.requireme
8700 6e 74 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 nt;..................}..........
8720 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 73 74 72 69 6e 67 ..........public.override.string
8740 20 54 6f 53 74 72 69 6e 67 28 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a .ToString()..................{..
8760 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 64 69 73 70 6c ....................return.displ
8780 61 79 54 65 78 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 ayText;..................}......
87a0 20 20 20 20 20 20 20 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 ........}..........}......}..}..
87c0 23 65 6e 64 69 66 20 2f 2f 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0d 0a 00 00 00 00 00 00 00 00 #endif.//.UNITY_EDITOR..........
87e0 00 00 00 00 00 00 00 00 00 00 00 00 18 00 00 00 49 6e 70 75 74 41 63 74 69 6f 6e 45 64 69 74 6f ................InputActionEdito
8800 72 54 6f 6f 6c 62 61 72 1e 00 00 00 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 6e 70 75 74 53 79 73 rToolbar....UnityEngine.InputSys
8820 74 65 6d 2e 45 64 69 74 6f 72 00 00 tem.Editor..