summaryrefslogtreecommitdiff
path: root/Library/Artifacts/b0/b0c3f0284a3ce266c4050b9af44e13f8
blob: 7d0188be0c87384e8224f450b85058dbc4e528cb (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 8b 28 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 c8 7a 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 .z..............................
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 07 00 00 00 47 61 6d 65 70 61 64 00 52 7a 00 00 75 73 69 6e 67 20 53 79 ............Gamepad.Rz..using.Sy
10a0 73 74 65 6d 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 43 6f 6d 70 6f 6e 65 6e 74 4d 6f 64 stem;..using.System.ComponentMod
10c0 65 6c 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 52 75 6e 74 69 6d 65 2e 49 6e 74 65 72 6f el;..using.System.Runtime.Intero
10e0 70 53 65 72 76 69 63 65 73 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 6e pServices;..using.UnityEngine.In
1100 70 75 74 53 79 73 74 65 6d 2e 43 6f 6e 74 72 6f 6c 73 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 putSystem.Controls;..using.Unity
1120 45 6e 67 69 6e 65 2e 49 6e 70 75 74 53 79 73 74 65 6d 2e 48 61 70 74 69 63 73 3b 0d 0a 75 73 69 Engine.InputSystem.Haptics;..usi
1140 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 6e 70 75 74 53 79 73 74 65 6d 2e 4c 61 79 6f 75 ng.UnityEngine.InputSystem.Layou
1160 74 73 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 6e 70 75 74 53 79 73 74 ts;..using.UnityEngine.InputSyst
1180 65 6d 2e 4c 6f 77 4c 65 76 65 6c 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e em.LowLevel;..using.UnityEngine.
11a0 49 6e 70 75 74 53 79 73 74 65 6d 2e 55 74 69 6c 69 74 69 65 73 3b 0d 0a 75 73 69 6e 67 20 55 6e InputSystem.Utilities;..using.Un
11c0 69 74 79 45 6e 67 69 6e 65 2e 53 63 72 69 70 74 69 6e 67 3b 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 4f ityEngine.Scripting;....////TODO
11e0 3a 20 63 6f 6d 65 20 75 70 20 77 69 74 68 20 63 6f 6e 73 69 73 74 65 6e 74 20 6e 61 6d 69 6e 67 :.come.up.with.consistent.naming
1200 20 66 6f 72 20 62 75 74 74 6f 6e 73 3b 20 28 78 78 78 42 75 74 74 6f 6e 3f 20 78 78 78 3f 29 0d .for.buttons;.(xxxButton?.xxx?).
1220 0a 0d 0a 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 73 68 6f 75 6c 64 20 77 65 20 61 64 64 20 61 20 67 ...////REVIEW:.should.we.add.a.g
1240 79 72 6f 20 61 73 20 61 20 73 74 61 6e 64 61 72 64 20 66 65 61 74 75 72 65 20 6f 66 20 67 61 6d yro.as.a.standard.feature.of.gam
1260 65 70 61 64 73 3f 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 61 6c 6c 6f 77 20 74 6f 20 62 65 20 epads?....////TODO:.allow.to.be.
1280 75 73 65 64 20 66 6f 72 20 6d 6f 75 73 65 20 73 69 6d 75 6c 61 74 69 6f 6e 0d 0a 0d 0a 6e 61 6d used.for.mouse.simulation....nam
12a0 65 73 70 61 63 65 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 6e 70 75 74 53 79 73 74 65 6d 2e 4c espace.UnityEngine.InputSystem.L
12c0 6f 77 4c 65 76 65 6c 0d 0a 7b 0d 0a 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 owLevel..{......///.<summary>...
12e0 20 20 20 2f 2f 2f 20 44 65 66 61 75 6c 74 20 73 74 61 74 65 20 6c 61 79 6f 75 74 20 66 6f 72 20 ...///.Default.state.layout.for.
1300 67 61 6d 65 70 61 64 73 2e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 gamepads.......///.</summary>...
1320 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 2f 2f 2f 20 42 65 20 61 77 61 ...///.<remarks>......///.Be.awa
1340 72 65 20 74 68 61 74 20 75 6e 6c 69 6b 65 20 73 6f 6d 65 20 6f 74 68 65 72 20 64 65 76 69 63 65 re.that.unlike.some.other.device
1360 73 20 73 75 63 68 20 61 73 20 3c 73 65 65 20 63 72 65 66 3d 22 4d 6f 75 73 65 22 2f 3e 20 6f 72 s.such.as.<see.cref="Mouse"/>.or
1380 20 3c 73 65 65 20 63 72 65 66 3d 22 54 6f 75 63 68 73 63 72 65 65 6e 22 2f 3e 2c 0d 0a 20 20 20 .<see.cref="Touchscreen"/>,.....
13a0 20 2f 2f 2f 20 67 61 6d 65 70 61 64 20 64 65 76 69 63 65 73 20 74 65 6e 64 20 74 6f 20 68 61 76 .///.gamepad.devices.tend.to.hav
13c0 65 20 77 69 6c 64 6c 79 20 76 61 72 79 69 6e 67 20 73 74 61 74 65 20 66 6f 72 6d 61 74 73 2c 20 e.wildly.varying.state.formats,.
13e0 69 2e 65 2e 20 66 6f 72 6d 73 20 69 6e 20 77 68 69 63 68 20 74 68 65 79 20 69 6e 74 65 72 6e 61 i.e..forms.in.which.they.interna
1400 6c 6c 79 0d 0a 20 20 20 20 2f 2f 2f 20 73 74 6f 72 65 20 74 68 65 69 72 20 69 6e 70 75 74 20 64 lly......///.store.their.input.d
1420 61 74 61 2e 20 49 6e 20 70 72 61 63 74 69 63 65 2c 20 65 76 65 6e 20 6f 6e 20 74 68 65 20 73 61 ata..In.practice,.even.on.the.sa
1440 6d 65 20 70 6c 61 74 66 6f 72 6d 20 67 61 6d 65 70 61 64 73 20 77 69 6c 6c 20 6f 66 74 65 6e 20 me.platform.gamepads.will.often.
1460 73 74 6f 72 65 0d 0a 20 20 20 20 2f 2f 2f 20 74 68 65 69 72 20 64 61 74 61 20 69 6e 20 64 69 66 store......///.their.data.in.dif
1480 66 65 72 65 6e 74 20 66 6f 72 6d 61 74 73 2e 20 54 68 69 73 20 6d 65 61 6e 73 20 74 68 61 74 20 ferent.formats..This.means.that.
14a0 3c 73 65 65 20 63 72 65 66 3d 22 47 61 6d 65 70 61 64 53 74 61 74 65 22 2f 3e 20 77 69 6c 6c 20 <see.cref="GamepadState"/>.will.
14c0 6f 66 74 65 6e 20 3c 65 6d 3e 6e 6f 74 3c 2f 65 6d 3e 0d 0a 20 20 20 20 2f 2f 2f 20 62 65 20 74 often.<em>not</em>......///.be.t
14e0 68 65 20 66 6f 72 6d 61 74 20 69 6e 20 77 68 69 63 68 20 61 20 70 61 72 74 69 63 75 6c 61 72 20 he.format.in.which.a.particular.
1500 67 61 6d 65 70 61 64 20 28 73 75 63 68 20 61 73 20 3c 73 65 65 20 63 72 65 66 3d 22 58 49 6e 70 gamepad.(such.as.<see.cref="XInp
1520 75 74 2e 58 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 6c 65 72 22 2f 3e 2c 0d 0a 20 20 20 20 2f 2f 2f ut.XInputController"/>,......///
1540 20 66 6f 72 20 65 78 61 6d 70 6c 65 29 20 73 74 6f 72 65 73 20 69 74 73 20 64 61 74 61 2e 0d 0a .for.example).stores.its.data...
1560 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 73 65 65 ....///.</remarks>......///.<see
1580 61 6c 73 6f 20 63 72 65 66 3d 22 47 61 6d 65 70 61 64 22 2f 3e 0d 0a 20 20 20 20 2f 2f 20 4e 4f also.cref="Gamepad"/>......//.NO
15a0 54 45 3a 20 4d 75 73 74 20 6d 61 74 63 68 20 47 61 6d 65 70 61 64 49 6e 70 75 74 53 74 61 74 65 TE:.Must.match.GamepadInputState
15c0 20 69 6e 20 6e 61 74 69 76 65 2e 0d 0a 20 20 20 20 5b 53 74 72 75 63 74 4c 61 79 6f 75 74 28 4c .in.native.......[StructLayout(L
15e0 61 79 6f 75 74 4b 69 6e 64 2e 45 78 70 6c 69 63 69 74 2c 20 53 69 7a 65 20 3d 20 32 38 29 5d 0d ayoutKind.Explicit,.Size.=.28)].
1600 0a 20 20 20 20 70 75 62 6c 69 63 20 73 74 72 75 63 74 20 47 61 6d 65 70 61 64 53 74 61 74 65 20 .....public.struct.GamepadState.
1620 3a 20 49 49 6e 70 75 74 53 74 61 74 65 54 79 70 65 49 6e 66 6f 0d 0a 20 20 20 20 7b 0d 0a 20 20 :.IInputStateTypeInfo......{....
1640 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 46 6f 75 72 43 43 20 46 6f 72 6d 61 ......public.static.FourCC.Forma
1660 74 20 3d 3e 20 6e 65 77 20 46 6f 75 72 43 43 28 27 47 27 2c 20 27 50 27 2c 20 27 41 27 2c 20 27 t.=>.new.FourCC('G',.'P',.'A',.'
1680 44 27 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 4f 6e 20 63 6f 6e 73 6f 6c 65 73 2c 20 D');............//.On.consoles,.
16a0 77 65 20 75 73 65 20 74 68 65 20 70 6c 61 74 66 6f 72 6d 20 64 65 66 61 75 6c 74 73 20 61 73 20 we.use.the.platform.defaults.as.
16c0 74 68 65 20 67 61 6d 65 70 61 64 2d 77 69 64 65 20 64 65 66 61 75 6c 74 20 6e 61 6d 65 73 2e 0d the.gamepad-wide.default.names..
16e0 0a 20 20 20 20 20 20 20 20 23 69 66 20 55 4e 49 54 59 5f 58 42 4f 58 5f 4f 4e 45 20 7c 7c 20 55 .........#if.UNITY_XBOX_ONE.||.U
1700 4e 49 54 59 5f 53 57 49 54 43 48 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 63 6f NITY_SWITCH..........internal.co
1720 6e 73 74 20 73 74 72 69 6e 67 20 42 75 74 74 6f 6e 53 6f 75 74 68 44 69 73 70 6c 61 79 4e 61 6d nst.string.ButtonSouthDisplayNam
1740 65 20 3d 20 22 41 22 3b 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 63 6f 6e 73 74 e.=."A";..........internal.const
1760 20 73 74 72 69 6e 67 20 42 75 74 74 6f 6e 4e 6f 72 74 68 44 69 73 70 6c 61 79 4e 61 6d 65 20 3d .string.ButtonNorthDisplayName.=
1780 20 22 59 22 3b 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 63 6f 6e 73 74 20 73 74 ."Y";..........internal.const.st
17a0 72 69 6e 67 20 42 75 74 74 6f 6e 57 65 73 74 44 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 22 42 22 ring.ButtonWestDisplayName.=."B"
17c0 3b 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 63 6f 6e 73 74 20 73 74 72 69 6e 67 ;..........internal.const.string
17e0 20 42 75 74 74 6f 6e 45 61 73 74 44 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 22 58 22 3b 0d 0a 0d .ButtonEastDisplayName.=."X";...
1800 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 63 6f 6e 73 74 20 73 74 72 69 6e 67 20 42 .........internal.const.string.B
1820 75 74 74 6f 6e 53 6f 75 74 68 53 68 6f 72 74 44 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 22 41 22 uttonSouthShortDisplayName.=."A"
1840 3b 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 63 6f 6e 73 74 20 73 74 72 69 6e 67 ;..........internal.const.string
1860 20 42 75 74 74 6f 6e 4e 6f 72 74 68 53 68 6f 72 74 44 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 22 .ButtonNorthShortDisplayName.=."
1880 59 22 3b 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 63 6f 6e 73 74 20 73 74 72 69 Y";..........internal.const.stri
18a0 6e 67 20 42 75 74 74 6f 6e 57 65 73 74 53 68 6f 72 74 44 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 ng.ButtonWestShortDisplayName.=.
18c0 22 58 22 3b 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 63 6f 6e 73 74 20 73 74 72 "X";..........internal.const.str
18e0 69 6e 67 20 42 75 74 74 6f 6e 45 61 73 74 53 68 6f 72 74 44 69 73 70 6c 61 79 4e 61 6d 65 20 3d ing.ButtonEastShortDisplayName.=
1900 20 22 42 22 3b 0d 0a 20 20 20 20 20 20 20 20 23 65 6c 69 66 20 55 4e 49 54 59 5f 50 53 34 0d 0a ."B";..........#elif.UNITY_PS4..
1920 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 63 6f 6e 73 74 20 73 74 72 69 6e 67 20 42 75 ........internal.const.string.Bu
1940 74 74 6f 6e 53 6f 75 74 68 44 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 22 43 72 6f 73 73 22 3b 0d ttonSouthDisplayName.=."Cross";.
1960 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 63 6f 6e 73 74 20 73 74 72 69 6e 67 20 42 .........internal.const.string.B
1980 75 74 74 6f 6e 4e 6f 72 74 68 44 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 22 54 72 69 61 6e 67 6c uttonNorthDisplayName.=."Triangl
19a0 65 22 3b 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 63 6f 6e 73 74 20 73 74 72 69 e";..........internal.const.stri
19c0 6e 67 20 42 75 74 74 6f 6e 57 65 73 74 44 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 22 53 71 75 61 ng.ButtonWestDisplayName.=."Squa
19e0 72 65 22 3b 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 63 6f 6e 73 74 20 73 74 72 re";..........internal.const.str
1a00 69 6e 67 20 42 75 74 74 6f 6e 45 61 73 74 44 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 22 43 69 72 ing.ButtonEastDisplayName.=."Cir
1a20 63 6c 65 22 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 63 6f 6e 73 74 20 cle";............internal.const.
1a40 73 74 72 69 6e 67 20 42 75 74 74 6f 6e 53 6f 75 74 68 53 68 6f 72 74 44 69 73 70 6c 61 79 4e 61 string.ButtonSouthShortDisplayNa
1a60 6d 65 20 3d 20 22 43 72 6f 73 73 22 3b 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 me.=."Cross";..........internal.
1a80 63 6f 6e 73 74 20 73 74 72 69 6e 67 20 42 75 74 74 6f 6e 4e 6f 72 74 68 53 68 6f 72 74 44 69 73 const.string.ButtonNorthShortDis
1aa0 70 6c 61 79 4e 61 6d 65 20 3d 20 22 54 72 69 61 6e 67 6c 65 22 3b 0d 0a 20 20 20 20 20 20 20 20 playName.=."Triangle";..........
1ac0 69 6e 74 65 72 6e 61 6c 20 63 6f 6e 73 74 20 73 74 72 69 6e 67 20 42 75 74 74 6f 6e 57 65 73 74 internal.const.string.ButtonWest
1ae0 53 68 6f 72 74 44 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 22 53 71 75 61 72 65 22 3b 0d 0a 20 20 ShortDisplayName.=."Square";....
1b00 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 63 6f 6e 73 74 20 73 74 72 69 6e 67 20 42 75 74 74 ......internal.const.string.Butt
1b20 6f 6e 45 61 73 74 53 68 6f 72 74 44 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 22 45 61 73 74 22 3b onEastShortDisplayName.=."East";
1b40 0d 0a 20 20 20 20 20 20 20 20 23 65 6c 73 65 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 ..........#else..........interna
1b60 6c 20 63 6f 6e 73 74 20 73 74 72 69 6e 67 20 42 75 74 74 6f 6e 53 6f 75 74 68 44 69 73 70 6c 61 l.const.string.ButtonSouthDispla
1b80 79 4e 61 6d 65 20 3d 20 22 42 75 74 74 6f 6e 20 53 6f 75 74 68 22 3b 0d 0a 20 20 20 20 20 20 20 yName.=."Button.South";.........
1ba0 20 69 6e 74 65 72 6e 61 6c 20 63 6f 6e 73 74 20 73 74 72 69 6e 67 20 42 75 74 74 6f 6e 4e 6f 72 .internal.const.string.ButtonNor
1bc0 74 68 44 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 22 42 75 74 74 6f 6e 20 4e 6f 72 74 68 22 3b 0d thDisplayName.=."Button.North";.
1be0 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 63 6f 6e 73 74 20 73 74 72 69 6e 67 20 42 .........internal.const.string.B
1c00 75 74 74 6f 6e 57 65 73 74 44 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 22 42 75 74 74 6f 6e 20 57 uttonWestDisplayName.=."Button.W
1c20 65 73 74 22 3b 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 63 6f 6e 73 74 20 73 74 est";..........internal.const.st
1c40 72 69 6e 67 20 42 75 74 74 6f 6e 45 61 73 74 44 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 22 42 75 ring.ButtonEastDisplayName.=."Bu
1c60 74 74 6f 6e 20 45 61 73 74 22 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 tton.East";............internal.
1c80 63 6f 6e 73 74 20 73 74 72 69 6e 67 20 42 75 74 74 6f 6e 53 6f 75 74 68 53 68 6f 72 74 44 69 73 const.string.ButtonSouthShortDis
1ca0 70 6c 61 79 4e 61 6d 65 20 3d 20 22 41 22 3b 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 playName.=."A";..........interna
1cc0 6c 20 63 6f 6e 73 74 20 73 74 72 69 6e 67 20 42 75 74 74 6f 6e 4e 6f 72 74 68 53 68 6f 72 74 44 l.const.string.ButtonNorthShortD
1ce0 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 22 59 22 3b 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 isplayName.=."Y";..........inter
1d00 6e 61 6c 20 63 6f 6e 73 74 20 73 74 72 69 6e 67 20 42 75 74 74 6f 6e 57 65 73 74 53 68 6f 72 74 nal.const.string.ButtonWestShort
1d20 44 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 22 58 22 3b 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 DisplayName.=."X";..........inte
1d40 72 6e 61 6c 20 63 6f 6e 73 74 20 73 74 72 69 6e 67 20 42 75 74 74 6f 6e 45 61 73 74 53 68 6f 72 rnal.const.string.ButtonEastShor
1d60 74 44 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 22 42 22 3b 0d 0a 20 20 20 20 20 20 20 20 23 65 6e tDisplayName.=."B";..........#en
1d80 64 69 66 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 dif............///.<summary>....
1da0 20 20 20 20 20 20 2f 2f 2f 20 42 75 74 74 6f 6e 20 62 69 74 20 6d 61 73 6b 2e 0d 0a 20 20 20 20 ......///.Button.bit.mask.......
1dc0 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 ....///.</summary>..........///.
1de0 3c 76 61 6c 75 65 3e 42 75 74 74 6f 6e 20 62 69 74 20 6d 61 73 6b 2e 3c 2f 76 61 6c 75 65 3e 0d <value>Button.bit.mask.</value>.
1e00 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 47 61 6d 65 .........///.<seealso.cref="Game
1e20 70 61 64 42 75 74 74 6f 6e 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c padButton"/>..........///.<seeal
1e40 73 6f 20 63 72 65 66 3d 22 47 61 6d 65 70 61 64 2e 62 75 74 74 6f 6e 53 6f 75 74 68 22 2f 3e 0d so.cref="Gamepad.buttonSouth"/>.
1e60 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 47 61 6d 65 .........///.<seealso.cref="Game
1e80 70 61 64 2e 62 75 74 74 6f 6e 4e 6f 72 74 68 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 pad.buttonNorth"/>..........///.
1ea0 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 47 61 6d 65 70 61 64 2e 62 75 74 74 6f 6e 57 65 73 <seealso.cref="Gamepad.buttonWes
1ec0 74 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d t"/>..........///.<seealso.cref=
1ee0 22 47 61 6d 65 70 61 64 2e 62 75 74 74 6f 6e 53 6f 75 74 68 22 2f 3e 0d 0a 20 20 20 20 20 20 20 "Gamepad.buttonSouth"/>.........
1f00 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 47 61 6d 65 70 61 64 2e 6c 65 66 74 .///.<seealso.cref="Gamepad.left
1f20 53 68 6f 75 6c 64 65 72 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 Shoulder"/>..........///.<seeals
1f40 6f 20 63 72 65 66 3d 22 47 61 6d 65 70 61 64 2e 72 69 67 68 74 53 68 6f 75 6c 64 65 72 22 2f 3e o.cref="Gamepad.rightShoulder"/>
1f60 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 47 61 6d ..........///.<seealso.cref="Gam
1f80 65 70 61 64 2e 73 74 61 72 74 42 75 74 74 6f 6e 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f epad.startButton"/>..........///
1fa0 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 47 61 6d 65 70 61 64 2e 73 65 6c 65 63 74 42 75 .<seealso.cref="Gamepad.selectBu
1fc0 74 74 6f 6e 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 tton"/>..........///.<seealso.cr
1fe0 65 66 3d 22 47 61 6d 65 70 61 64 2e 6c 65 66 74 53 74 69 63 6b 42 75 74 74 6f 6e 22 2f 3e 0d 0a ef="Gamepad.leftStickButton"/>..
2000 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 47 61 6d 65 70 ........///.<seealso.cref="Gamep
2020 61 64 2e 72 69 67 68 74 53 74 69 63 6b 42 75 74 74 6f 6e 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 ad.rightStickButton"/>..........
2040 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 64 6f 20 77 65 20 77 61 6e 74 20 74 68 65 20 6e 61 6d 65 20 ////REVIEW:.do.we.want.the.name.
2060 74 6f 20 63 6f 72 72 65 73 70 6f 6e 64 20 74 6f 20 77 68 61 74 27 73 20 61 63 74 75 61 6c 6c 79 to.correspond.to.what's.actually
2080 20 6f 6e 20 74 68 65 20 64 65 76 69 63 65 3f 0d 0a 20 20 20 20 20 20 20 20 5b 49 6e 70 75 74 43 .on.the.device?..........[InputC
20a0 6f 6e 74 72 6f 6c 28 6e 61 6d 65 20 3d 20 22 64 70 61 64 22 2c 20 6c 61 79 6f 75 74 20 3d 20 22 ontrol(name.=."dpad",.layout.=."
20c0 44 70 61 64 22 2c 20 75 73 61 67 65 20 3d 20 22 48 61 74 73 77 69 74 63 68 22 2c 20 64 69 73 70 Dpad",.usage.=."Hatswitch",.disp
20e0 6c 61 79 4e 61 6d 65 20 3d 20 22 44 2d 50 61 64 22 2c 20 66 6f 72 6d 61 74 20 3d 20 22 42 49 54 layName.=."D-Pad",.format.=."BIT
2100 22 2c 20 73 69 7a 65 49 6e 42 69 74 73 20 3d 20 34 2c 20 62 69 74 20 3d 20 30 29 5d 0d 0a 20 20 ",.sizeInBits.=.4,.bit.=.0)]....
2120 20 20 20 20 20 20 5b 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 28 6e 61 6d 65 20 3d 20 22 62 75 74 74 ......[InputControl(name.=."butt
2140 6f 6e 53 6f 75 74 68 22 2c 20 6c 61 79 6f 75 74 20 3d 20 22 42 75 74 74 6f 6e 22 2c 20 62 69 74 onSouth",.layout.=."Button",.bit
2160 20 3d 20 28 75 69 6e 74 29 47 61 6d 65 70 61 64 42 75 74 74 6f 6e 2e 53 6f 75 74 68 2c 20 75 73 .=.(uint)GamepadButton.South,.us
2180 61 67 65 73 20 3d 20 6e 65 77 5b 5d 20 7b 20 22 50 72 69 6d 61 72 79 41 63 74 69 6f 6e 22 2c 20 ages.=.new[].{."PrimaryAction",.
21a0 22 53 75 62 6d 69 74 22 20 7d 2c 20 61 6c 69 61 73 65 73 20 3d 20 6e 65 77 5b 5d 20 7b 20 22 61 "Submit".},.aliases.=.new[].{."a
21c0 22 2c 20 22 63 72 6f 73 73 22 20 7d 2c 20 64 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 42 75 74 74 ",."cross".},.displayName.=.Butt
21e0 6f 6e 53 6f 75 74 68 44 69 73 70 6c 61 79 4e 61 6d 65 2c 20 73 68 6f 72 74 44 69 73 70 6c 61 79 onSouthDisplayName,.shortDisplay
2200 4e 61 6d 65 20 3d 20 42 75 74 74 6f 6e 53 6f 75 74 68 53 68 6f 72 74 44 69 73 70 6c 61 79 4e 61 Name.=.ButtonSouthShortDisplayNa
2220 6d 65 29 5d 0d 0a 20 20 20 20 20 20 20 20 5b 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 28 6e 61 6d 65 me)]..........[InputControl(name
2240 20 3d 20 22 62 75 74 74 6f 6e 57 65 73 74 22 2c 20 6c 61 79 6f 75 74 20 3d 20 22 42 75 74 74 6f .=."buttonWest",.layout.=."Butto
2260 6e 22 2c 20 62 69 74 20 3d 20 28 75 69 6e 74 29 47 61 6d 65 70 61 64 42 75 74 74 6f 6e 2e 57 65 n",.bit.=.(uint)GamepadButton.We
2280 73 74 2c 20 75 73 61 67 65 20 3d 20 22 53 65 63 6f 6e 64 61 72 79 41 63 74 69 6f 6e 22 2c 20 61 st,.usage.=."SecondaryAction",.a
22a0 6c 69 61 73 65 73 20 3d 20 6e 65 77 5b 5d 20 7b 20 22 78 22 2c 20 22 73 71 75 61 72 65 22 20 7d liases.=.new[].{."x",."square".}
22c0 2c 20 64 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 42 75 74 74 6f 6e 57 65 73 74 44 69 73 70 6c 61 ,.displayName.=.ButtonWestDispla
22e0 79 4e 61 6d 65 2c 20 73 68 6f 72 74 44 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 42 75 74 74 6f 6e yName,.shortDisplayName.=.Button
2300 57 65 73 74 53 68 6f 72 74 44 69 73 70 6c 61 79 4e 61 6d 65 29 5d 0d 0a 20 20 20 20 20 20 20 20 WestShortDisplayName)]..........
2320 5b 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 28 6e 61 6d 65 20 3d 20 22 62 75 74 74 6f 6e 4e 6f 72 74 [InputControl(name.=."buttonNort
2340 68 22 2c 20 6c 61 79 6f 75 74 20 3d 20 22 42 75 74 74 6f 6e 22 2c 20 62 69 74 20 3d 20 28 75 69 h",.layout.=."Button",.bit.=.(ui
2360 6e 74 29 47 61 6d 65 70 61 64 42 75 74 74 6f 6e 2e 4e 6f 72 74 68 2c 20 61 6c 69 61 73 65 73 20 nt)GamepadButton.North,.aliases.
2380 3d 20 6e 65 77 5b 5d 20 7b 20 22 79 22 2c 20 22 74 72 69 61 6e 67 6c 65 22 20 7d 2c 20 64 69 73 =.new[].{."y",."triangle".},.dis
23a0 70 6c 61 79 4e 61 6d 65 20 3d 20 42 75 74 74 6f 6e 4e 6f 72 74 68 44 69 73 70 6c 61 79 4e 61 6d playName.=.ButtonNorthDisplayNam
23c0 65 2c 20 73 68 6f 72 74 44 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 42 75 74 74 6f 6e 4e 6f 72 74 e,.shortDisplayName.=.ButtonNort
23e0 68 53 68 6f 72 74 44 69 73 70 6c 61 79 4e 61 6d 65 29 5d 0d 0a 20 20 20 20 20 20 20 20 5b 49 6e hShortDisplayName)]..........[In
2400 70 75 74 43 6f 6e 74 72 6f 6c 28 6e 61 6d 65 20 3d 20 22 62 75 74 74 6f 6e 45 61 73 74 22 2c 20 putControl(name.=."buttonEast",.
2420 6c 61 79 6f 75 74 20 3d 20 22 42 75 74 74 6f 6e 22 2c 20 62 69 74 20 3d 20 28 75 69 6e 74 29 47 layout.=."Button",.bit.=.(uint)G
2440 61 6d 65 70 61 64 42 75 74 74 6f 6e 2e 45 61 73 74 2c 20 75 73 61 67 65 73 20 3d 20 6e 65 77 5b amepadButton.East,.usages.=.new[
2460 5d 20 7b 20 22 42 61 63 6b 22 2c 20 22 43 61 6e 63 65 6c 22 20 7d 2c 20 61 6c 69 61 73 65 73 20 ].{."Back",."Cancel".},.aliases.
2480 3d 20 6e 65 77 5b 5d 20 7b 20 22 62 22 2c 20 22 63 69 72 63 6c 65 22 20 7d 2c 20 64 69 73 70 6c =.new[].{."b",."circle".},.displ
24a0 61 79 4e 61 6d 65 20 3d 20 42 75 74 74 6f 6e 45 61 73 74 44 69 73 70 6c 61 79 4e 61 6d 65 2c 20 ayName.=.ButtonEastDisplayName,.
24c0 73 68 6f 72 74 44 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 42 75 74 74 6f 6e 45 61 73 74 53 68 6f shortDisplayName.=.ButtonEastSho
24e0 72 74 44 69 73 70 6c 61 79 4e 61 6d 65 29 5d 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 2f 46 49 58 rtDisplayName)]..........////FIX
2500 4d 45 3a 20 27 50 72 65 73 73 27 20 6e 61 6d 69 6e 67 20 69 73 20 69 6e 63 6f 6e 73 69 73 74 65 ME:.'Press'.naming.is.inconsiste
2520 6e 74 20 77 69 74 68 20 27 42 75 74 74 6f 6e 27 20 6e 61 6d 69 6e 67 0d 0a 20 20 20 20 20 20 20 nt.with.'Button'.naming.........
2540 20 5b 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 28 6e 61 6d 65 20 3d 20 22 6c 65 66 74 53 74 69 63 6b .[InputControl(name.=."leftStick
2560 50 72 65 73 73 22 2c 20 6c 61 79 6f 75 74 20 3d 20 22 42 75 74 74 6f 6e 22 2c 20 62 69 74 20 3d Press",.layout.=."Button",.bit.=
2580 20 28 75 69 6e 74 29 47 61 6d 65 70 61 64 42 75 74 74 6f 6e 2e 4c 65 66 74 53 74 69 63 6b 2c 20 .(uint)GamepadButton.LeftStick,.
25a0 64 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 22 4c 65 66 74 20 53 74 69 63 6b 20 50 72 65 73 73 22 displayName.=."Left.Stick.Press"
25c0 29 5d 0d 0a 20 20 20 20 20 20 20 20 5b 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 28 6e 61 6d 65 20 3d )]..........[InputControl(name.=
25e0 20 22 72 69 67 68 74 53 74 69 63 6b 50 72 65 73 73 22 2c 20 6c 61 79 6f 75 74 20 3d 20 22 42 75 ."rightStickPress",.layout.=."Bu
2600 74 74 6f 6e 22 2c 20 62 69 74 20 3d 20 28 75 69 6e 74 29 47 61 6d 65 70 61 64 42 75 74 74 6f 6e tton",.bit.=.(uint)GamepadButton
2620 2e 52 69 67 68 74 53 74 69 63 6b 2c 20 64 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 22 52 69 67 68 .RightStick,.displayName.=."Righ
2640 74 20 53 74 69 63 6b 20 50 72 65 73 73 22 29 5d 0d 0a 20 20 20 20 20 20 20 20 5b 49 6e 70 75 74 t.Stick.Press")]..........[Input
2660 43 6f 6e 74 72 6f 6c 28 6e 61 6d 65 20 3d 20 22 6c 65 66 74 53 68 6f 75 6c 64 65 72 22 2c 20 6c Control(name.=."leftShoulder",.l
2680 61 79 6f 75 74 20 3d 20 22 42 75 74 74 6f 6e 22 2c 20 62 69 74 20 3d 20 28 75 69 6e 74 29 47 61 ayout.=."Button",.bit.=.(uint)Ga
26a0 6d 65 70 61 64 42 75 74 74 6f 6e 2e 4c 65 66 74 53 68 6f 75 6c 64 65 72 2c 20 64 69 73 70 6c 61 mepadButton.LeftShoulder,.displa
26c0 79 4e 61 6d 65 20 3d 20 22 4c 65 66 74 20 53 68 6f 75 6c 64 65 72 22 2c 20 73 68 6f 72 74 44 69 yName.=."Left.Shoulder",.shortDi
26e0 73 70 6c 61 79 4e 61 6d 65 20 3d 20 22 4c 42 22 29 5d 0d 0a 20 20 20 20 20 20 20 20 5b 49 6e 70 splayName.=."LB")]..........[Inp
2700 75 74 43 6f 6e 74 72 6f 6c 28 6e 61 6d 65 20 3d 20 22 72 69 67 68 74 53 68 6f 75 6c 64 65 72 22 utControl(name.=."rightShoulder"
2720 2c 20 6c 61 79 6f 75 74 20 3d 20 22 42 75 74 74 6f 6e 22 2c 20 62 69 74 20 3d 20 28 75 69 6e 74 ,.layout.=."Button",.bit.=.(uint
2740 29 47 61 6d 65 70 61 64 42 75 74 74 6f 6e 2e 52 69 67 68 74 53 68 6f 75 6c 64 65 72 2c 20 64 69 )GamepadButton.RightShoulder,.di
2760 73 70 6c 61 79 4e 61 6d 65 20 3d 20 22 52 69 67 68 74 20 53 68 6f 75 6c 64 65 72 22 2c 20 73 68 splayName.=."Right.Shoulder",.sh
2780 6f 72 74 44 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 22 52 42 22 29 5d 0d 0a 20 20 20 20 20 20 20 ortDisplayName.=."RB")].........
27a0 20 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 73 65 65 6d 73 20 6c 69 6b 65 20 74 68 65 73 65 20 74 77 .////REVIEW:.seems.like.these.tw
27c0 6f 20 73 68 6f 75 6c 64 20 67 65 74 20 6c 65 73 73 20 61 6d 62 69 67 75 6f 75 73 20 6e 61 6d 65 o.should.get.less.ambiguous.name
27e0 73 20 61 73 20 77 65 6c 6c 0d 0a 20 20 20 20 20 20 20 20 5b 49 6e 70 75 74 43 6f 6e 74 72 6f 6c s.as.well..........[InputControl
2800 28 6e 61 6d 65 20 3d 20 22 73 74 61 72 74 22 2c 20 6c 61 79 6f 75 74 20 3d 20 22 42 75 74 74 6f (name.=."start",.layout.=."Butto
2820 6e 22 2c 20 62 69 74 20 3d 20 28 75 69 6e 74 29 47 61 6d 65 70 61 64 42 75 74 74 6f 6e 2e 53 74 n",.bit.=.(uint)GamepadButton.St
2840 61 72 74 2c 20 75 73 61 67 65 20 3d 20 22 4d 65 6e 75 22 2c 20 64 69 73 70 6c 61 79 4e 61 6d 65 art,.usage.=."Menu",.displayName
2860 20 3d 20 22 53 74 61 72 74 22 29 5d 0d 0a 20 20 20 20 20 20 20 20 5b 49 6e 70 75 74 43 6f 6e 74 .=."Start")]..........[InputCont
2880 72 6f 6c 28 6e 61 6d 65 20 3d 20 22 73 65 6c 65 63 74 22 2c 20 6c 61 79 6f 75 74 20 3d 20 22 42 rol(name.=."select",.layout.=."B
28a0 75 74 74 6f 6e 22 2c 20 62 69 74 20 3d 20 28 75 69 6e 74 29 47 61 6d 65 70 61 64 42 75 74 74 6f utton",.bit.=.(uint)GamepadButto
28c0 6e 2e 53 65 6c 65 63 74 2c 20 64 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 22 53 65 6c 65 63 74 22 n.Select,.displayName.=."Select"
28e0 29 5d 0d 0a 20 20 20 20 20 20 20 20 5b 46 69 65 6c 64 4f 66 66 73 65 74 28 30 29 5d 0d 0a 20 20 )]..........[FieldOffset(0)]....
2900 20 20 20 20 20 20 70 75 62 6c 69 63 20 75 69 6e 74 20 62 75 74 74 6f 6e 73 3b 0d 0a 0d 0a 20 20 ......public.uint.buttons;......
2920 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f ......///.<summary>..........///
2940 20 4c 65 66 74 20 73 74 69 63 6b 20 70 6f 73 69 74 69 6f 6e 2e 20 45 61 63 68 20 61 78 69 73 20 .Left.stick.position..Each.axis.
2960 67 6f 65 73 20 66 72 6f 6d 20 2d 31 20 74 6f 20 31 20 77 69 74 68 0d 0a 20 20 20 20 20 20 20 20 goes.from.-1.to.1.with..........
2980 2f 2f 2f 20 30 20 62 65 69 6e 67 20 63 65 6e 74 65 72 20 70 6f 73 69 74 69 6f 6e 2e 0d 0a 20 20 ///.0.being.center.position.....
29a0 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f ......///.</summary>..........//
29c0 2f 20 3c 76 61 6c 75 65 3e 4c 65 66 74 20 73 74 69 63 6b 20 70 6f 73 69 74 69 6f 6e 2e 3c 2f 76 /.<value>Left.stick.position.</v
29e0 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 alue>..........///.<seealso.cref
2a00 3d 22 47 61 6d 65 70 61 64 2e 6c 65 66 74 53 74 69 63 6b 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 ="Gamepad.leftStick"/>..........
2a20 5b 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 28 6c 61 79 6f 75 74 20 3d 20 22 53 74 69 63 6b 22 2c 20 [InputControl(layout.=."Stick",.
2a40 75 73 61 67 65 20 3d 20 22 50 72 69 6d 61 72 79 32 44 4d 6f 74 69 6f 6e 22 2c 20 70 72 6f 63 65 usage.=."Primary2DMotion",.proce
2a60 73 73 6f 72 73 20 3d 20 22 73 74 69 63 6b 44 65 61 64 7a 6f 6e 65 22 2c 20 64 69 73 70 6c 61 79 ssors.=."stickDeadzone",.display
2a80 4e 61 6d 65 20 3d 20 22 4c 65 66 74 20 53 74 69 63 6b 22 2c 20 73 68 6f 72 74 44 69 73 70 6c 61 Name.=."Left.Stick",.shortDispla
2aa0 79 4e 61 6d 65 20 3d 20 22 4c 53 22 29 5d 0d 0a 20 20 20 20 20 20 20 20 5b 46 69 65 6c 64 4f 66 yName.=."LS")]..........[FieldOf
2ac0 66 73 65 74 28 34 29 5d 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 56 65 63 74 6f 72 32 fset(4)]..........public.Vector2
2ae0 20 6c 65 66 74 53 74 69 63 6b 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d .leftStick;............///.<summ
2b00 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 52 69 67 68 74 20 73 74 69 63 6b 20 70 6f ary>..........///.Right.stick.po
2b20 73 69 74 69 6f 6e 2e 20 45 61 63 68 20 61 78 69 73 20 66 72 6f 6d 20 2d 31 20 74 6f 20 31 20 77 sition..Each.axis.from.-1.to.1.w
2b40 69 74 68 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 30 20 62 65 69 6e 67 20 63 65 6e 74 65 72 20 ith..........///.0.being.center.
2b60 70 6f 73 69 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 position...........///.</summary
2b80 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 52 69 67 68 74 20 73 74 69 63 >..........///.<value>Right.stic
2ba0 6b 20 70 6f 73 69 74 69 6f 6e 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f k.position.</value>..........///
2bc0 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 47 61 6d 65 70 61 64 2e 72 69 67 68 74 53 74 69 .<seealso.cref="Gamepad.rightSti
2be0 63 6b 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 5b 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 28 6c 61 79 ck"/>..........[InputControl(lay
2c00 6f 75 74 20 3d 20 22 53 74 69 63 6b 22 2c 20 75 73 61 67 65 20 3d 20 22 53 65 63 6f 6e 64 61 72 out.=."Stick",.usage.=."Secondar
2c20 79 32 44 4d 6f 74 69 6f 6e 22 2c 20 70 72 6f 63 65 73 73 6f 72 73 20 3d 20 22 73 74 69 63 6b 44 y2DMotion",.processors.=."stickD
2c40 65 61 64 7a 6f 6e 65 22 2c 20 64 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 22 52 69 67 68 74 20 53 eadzone",.displayName.=."Right.S
2c60 74 69 63 6b 22 2c 20 73 68 6f 72 74 44 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 22 52 53 22 29 5d tick",.shortDisplayName.=."RS")]
2c80 0d 0a 20 20 20 20 20 20 20 20 5b 46 69 65 6c 64 4f 66 66 73 65 74 28 31 32 29 5d 0d 0a 20 20 20 ..........[FieldOffset(12)].....
2ca0 20 20 20 20 20 70 75 62 6c 69 63 20 56 65 63 74 6f 72 32 20 72 69 67 68 74 53 74 69 63 6b 3b 0d .....public.Vector2.rightStick;.
2cc0 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 73 68 6f 75 6c 64 20 6c 65 ...........////REVIEW:.should.le
2ce0 66 74 20 61 6e 64 20 72 69 67 68 74 20 74 72 69 67 67 65 72 20 67 65 74 20 64 65 61 64 7a 6f 6e ft.and.right.trigger.get.deadzon
2d00 65 73 3f 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 es?............///.<summary>....
2d20 20 20 20 20 20 20 2f 2f 2f 20 50 6f 73 69 74 69 6f 6e 20 6f 66 20 74 68 65 20 6c 65 66 74 20 74 ......///.Position.of.the.left.t
2d40 72 69 67 67 65 72 2e 20 47 6f 65 73 20 66 72 6f 6d 20 30 20 28 6e 6f 74 20 70 72 65 73 73 65 64 rigger..Goes.from.0.(not.pressed
2d60 29 20 74 6f 20 31 20 28 66 75 6c 6c 79 20 70 72 65 73 73 65 64 29 2e 0d 0a 20 20 20 20 20 20 20 ).to.1.(fully.pressed)..........
2d80 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 .///.</summary>..........///.<va
2da0 6c 75 65 3e 50 6f 73 69 74 69 6f 6e 20 6f 66 20 6c 65 66 74 20 74 72 69 67 67 65 72 2e 3c 2f 76 lue>Position.of.left.trigger.</v
2dc0 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 alue>..........///.<seealso.cref
2de0 3d 22 47 61 6d 65 70 61 64 2e 6c 65 66 74 54 72 69 67 67 65 72 22 2f 3e 0d 0a 20 20 20 20 20 20 ="Gamepad.leftTrigger"/>........
2e00 20 20 5b 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 28 6c 61 79 6f 75 74 20 3d 20 22 42 75 74 74 6f 6e ..[InputControl(layout.=."Button
2e20 22 2c 20 66 6f 72 6d 61 74 20 3d 20 22 46 4c 54 22 2c 20 75 73 61 67 65 20 3d 20 22 53 65 63 6f ",.format.=."FLT",.usage.=."Seco
2e40 6e 64 61 72 79 54 72 69 67 67 65 72 22 2c 20 64 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 22 4c 65 ndaryTrigger",.displayName.=."Le
2e60 66 74 20 54 72 69 67 67 65 72 22 2c 20 73 68 6f 72 74 44 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 ft.Trigger",.shortDisplayName.=.
2e80 22 4c 54 22 29 5d 0d 0a 20 20 20 20 20 20 20 20 5b 46 69 65 6c 64 4f 66 66 73 65 74 28 32 30 29 "LT")]..........[FieldOffset(20)
2ea0 5d 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 66 6c 6f 61 74 20 6c 65 66 74 54 72 69 67 ]..........public.float.leftTrig
2ec0 67 65 72 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 ger;............///.<summary>...
2ee0 20 20 20 20 20 20 20 2f 2f 2f 20 50 6f 73 69 74 69 6f 6e 20 6f 66 20 74 68 65 20 72 69 67 68 74 .......///.Position.of.the.right
2f00 20 74 72 69 67 67 65 72 2e 20 47 6f 65 73 20 66 72 6f 6d 20 30 20 28 6e 6f 74 20 70 72 65 73 73 .trigger..Goes.from.0.(not.press
2f20 65 64 29 20 74 6f 20 31 20 28 66 75 6c 6c 79 20 70 72 65 73 73 65 64 29 2e 0d 0a 20 20 20 20 20 ed).to.1.(fully.pressed)........
2f40 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c ...///.</summary>..........///.<
2f60 76 61 6c 75 65 3e 50 6f 73 69 74 69 6f 6e 20 6f 66 20 72 69 67 68 74 20 74 72 69 67 67 65 72 2e value>Position.of.right.trigger.
2f80 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 </value>..........///.<seealso.c
2fa0 72 65 66 3d 22 47 61 6d 65 70 61 64 2e 72 69 67 68 74 54 72 69 67 67 65 72 22 2f 3e 0d 0a 20 20 ref="Gamepad.rightTrigger"/>....
2fc0 20 20 20 20 20 20 5b 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 28 6c 61 79 6f 75 74 20 3d 20 22 42 75 ......[InputControl(layout.=."Bu
2fe0 74 74 6f 6e 22 2c 20 66 6f 72 6d 61 74 20 3d 20 22 46 4c 54 22 2c 20 75 73 61 67 65 20 3d 20 22 tton",.format.=."FLT",.usage.=."
3000 53 65 63 6f 6e 64 61 72 79 54 72 69 67 67 65 72 22 2c 20 64 69 73 70 6c 61 79 4e 61 6d 65 20 3d SecondaryTrigger",.displayName.=
3020 20 22 52 69 67 68 74 20 54 72 69 67 67 65 72 22 2c 20 73 68 6f 72 74 44 69 73 70 6c 61 79 4e 61 ."Right.Trigger",.shortDisplayNa
3040 6d 65 20 3d 20 22 52 54 22 29 5d 0d 0a 20 20 20 20 20 20 20 20 5b 46 69 65 6c 64 4f 66 66 73 65 me.=."RT")]..........[FieldOffse
3060 74 28 32 34 29 5d 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 66 6c 6f 61 74 20 72 69 67 t(24)]..........public.float.rig
3080 68 74 54 72 69 67 67 65 72 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 htTrigger;............///.<summa
30a0 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 53 74 61 74 65 20 66 6f 72 6d 61 74 20 74 61 ry>..........///.State.format.ta
30c0 67 20 66 6f 72 20 47 61 6d 65 70 61 64 53 74 61 74 65 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f g.for.GamepadState...........///
30e0 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e .</summary>..........///.<value>
3100 52 65 74 75 72 6e 73 20 22 47 50 41 44 22 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 Returns."GPAD".</value>.........
3120 20 70 75 62 6c 69 63 20 46 6f 75 72 43 43 20 66 6f 72 6d 61 74 20 3d 3e 20 46 6f 72 6d 61 74 3b .public.FourCC.format.=>.Format;
3140 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 ............///.<summary>.......
3160 20 20 20 2f 2f 2f 20 43 72 65 61 74 65 20 61 20 67 61 6d 65 70 61 64 20 73 74 61 74 65 20 77 69 ...///.Create.a.gamepad.state.wi
3180 74 68 20 74 68 65 20 67 69 76 65 6e 20 62 75 74 74 6f 6e 73 20 62 65 69 6e 67 20 70 72 65 73 73 th.the.given.buttons.being.press
31a0 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 3e 0d 0a 20 20 20 ed...........///.</summary>.....
31c0 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 62 75 74 74 6f 6e 73 22 3e 42 .....///.<param.name="buttons">B
31e0 75 74 74 6f 6e 73 20 74 6f 20 70 75 74 20 69 6e 74 6f 20 70 72 65 73 73 65 64 20 73 74 61 74 65 uttons.to.put.into.pressed.state
3200 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 65 78 63 65 70 74 69 6f .</param>..........///.<exceptio
3220 6e 20 63 72 65 66 3d 22 41 72 67 75 6d 65 6e 74 4e 75 6c 6c 45 78 63 65 70 74 69 6f 6e 22 3e 3c n.cref="ArgumentNullException"><
3240 70 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d 22 62 75 74 74 6f 6e 73 22 2f 3e 20 69 73 20 3c 63 3e paramref.name="buttons"/>.is.<c>
3260 6e 75 6c 6c 3c 2f 63 3e 2e 3c 2f 65 78 63 65 70 74 69 6f 6e 3e 0d 0a 20 20 20 20 20 20 20 20 70 null</c>.</exception>..........p
3280 75 62 6c 69 63 20 47 61 6d 65 70 61 64 53 74 61 74 65 28 70 61 72 61 6d 73 20 47 61 6d 65 70 61 ublic.GamepadState(params.Gamepa
32a0 64 42 75 74 74 6f 6e 5b 5d 20 62 75 74 74 6f 6e 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 dButton[].buttons)..............
32c0 3a 20 74 68 69 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 :.this()..........{.............
32e0 20 69 66 20 28 62 75 74 74 6f 6e 73 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 .if.(buttons.==.null)...........
3300 20 20 20 20 20 20 20 74 68 72 6f 77 20 6e 65 77 20 41 72 67 75 6d 65 6e 74 4e 75 6c 6c 45 78 63 .......throw.new.ArgumentNullExc
3320 65 70 74 69 6f 6e 28 6e 61 6d 65 6f 66 28 62 75 74 74 6f 6e 73 29 29 3b 0d 0a 0d 0a 20 20 20 20 eption(nameof(buttons));........
3340 20 20 20 20 20 20 20 20 66 6f 72 65 61 63 68 20 28 76 61 72 20 62 75 74 74 6f 6e 20 69 6e 20 62 ........foreach.(var.button.in.b
3360 75 74 74 6f 6e 73 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 uttons)..............{..........
3380 20 20 20 20 20 20 20 20 76 61 72 20 62 69 74 20 3d 20 28 75 69 6e 74 29 31 20 3c 3c 20 28 69 6e ........var.bit.=.(uint)1.<<.(in
33a0 74 29 62 75 74 74 6f 6e 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e t)button;..................this.
33c0 62 75 74 74 6f 6e 73 20 7c 3d 20 62 69 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a buttons.|=.bit;..............}..
33e0 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 ........}............///.<summar
3400 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 53 65 74 20 74 68 65 20 73 70 65 63 69 66 69 63 y>..........///.Set.the.specific
3420 20 62 75 74 74 6f 6e 73 20 74 6f 20 62 65 20 70 72 65 73 73 65 64 20 6f 72 20 75 6e 70 72 65 73 .buttons.to.be.pressed.or.unpres
3440 73 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 3e 0d 0a 20 20 sed...........///.</summary>....
3460 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 62 75 74 74 6f 6e 22 3e 41 ......///.<param.name="button">A
3480 20 67 61 6d 65 70 61 64 20 62 75 74 74 6f 6e 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 .gamepad.button.</param>........
34a0 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 76 61 6c 75 65 22 3e 57 68 65 74 68 65 ..///.<param.name="value">Whethe
34c0 72 20 74 6f 20 73 65 74 20 3c 70 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d 22 62 75 74 74 6f 6e 22 r.to.set.<paramref.name="button"
34e0 2f 3e 20 74 6f 20 62 65 20 70 72 65 73 73 65 64 20 6f 72 20 6e 6f 74 20 70 72 65 73 73 65 64 20 />.to.be.pressed.or.not.pressed.
3500 69 6e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 20 63 72 65 66 3d 22 62 75 74 74 6f in..........///.<see.cref="butto
3520 6e 73 22 2f 3e 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 74 ns"/>.</param>..........///.<ret
3540 75 72 6e 73 3e 47 61 6d 65 70 61 64 53 74 61 74 65 20 77 69 74 68 20 61 20 6d 6f 64 69 66 69 65 urns>GamepadState.with.a.modifie
3560 64 20 3c 73 65 65 20 63 72 65 66 3d 22 62 75 74 74 6f 6e 73 22 2f 3e 20 6d 61 73 6b 2e 3c 2f 72 d.<see.cref="buttons"/>.mask.</r
3580 65 74 75 72 6e 73 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 47 61 6d 65 70 61 64 53 eturns>..........public.GamepadS
35a0 74 61 74 65 20 57 69 74 68 42 75 74 74 6f 6e 28 47 61 6d 65 70 61 64 42 75 74 74 6f 6e 20 62 75 tate.WithButton(GamepadButton.bu
35c0 74 74 6f 6e 2c 20 62 6f 6f 6c 20 76 61 6c 75 65 20 3d 20 74 72 75 65 29 0d 0a 20 20 20 20 20 20 tton,.bool.value.=.true)........
35e0 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 62 69 74 20 3d 20 28 75 69 6e 74 ..{..............var.bit.=.(uint
3600 29 31 20 3c 3c 20 28 69 6e 74 29 62 75 74 74 6f 6e 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 )1.<<.(int)button;..............
3620 69 66 20 28 76 61 6c 75 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 75 74 74 if.(value)..................butt
3640 6f 6e 73 20 7c 3d 20 62 69 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0d 0a 20 ons.|=.bit;..............else...
3660 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 75 74 74 6f 6e 73 20 26 3d 20 7e 62 69 74 3b 0d ...............buttons.&=.~bit;.
3680 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 74 68 69 73 3b 0d 0a 20 20 20 20 20 .............return.this;.......
36a0 20 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 2f 2f 2f 2f 4e 4f 54 45 3a 20 54 68 65 ...}......}........////NOTE:.The
36c0 20 62 69 74 20 70 6f 73 69 74 69 6f 6e 73 20 68 65 72 65 20 62 61 73 65 64 20 6f 6e 20 74 68 65 .bit.positions.here.based.on.the
36e0 20 65 6e 75 6d 20 76 61 6c 75 65 20 61 72 65 20 61 6c 73 6f 20 75 73 65 64 20 69 6e 20 6e 61 74 .enum.value.are.also.used.in.nat
3700 69 76 65 2e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 2f 2f 2f ive.......///.<summary>......///
3720 20 45 6e 75 6d 20 6f 66 20 63 6f 6d 6d 6f 6e 20 67 61 6d 65 70 61 64 20 62 75 74 74 6f 6e 73 2e .Enum.of.common.gamepad.buttons.
3740 0d 0a 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 72 ......///.</summary>......///.<r
3760 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 2f 2f 2f 20 43 61 6e 20 62 65 20 75 73 65 64 20 61 73 20 emarks>......///.Can.be.used.as.
3780 61 6e 20 61 72 72 61 79 20 69 6e 64 65 78 65 72 20 6f 6e 20 74 68 65 20 3c 73 65 65 20 63 72 65 an.array.indexer.on.the.<see.cre
37a0 66 3d 22 47 61 6d 65 70 61 64 22 2f 3e 20 63 6c 61 73 73 20 74 6f 20 67 65 74 20 69 6e 64 69 76 f="Gamepad"/>.class.to.get.indiv
37c0 69 64 75 61 6c 20 62 75 74 74 6f 6e 20 63 6f 6e 74 72 6f 6c 73 2e 0d 0a 20 20 20 20 2f 2f 2f 20 idual.button.controls.......///.
37e0 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 65 6e 75 6d 20 47 61 6d 65 </remarks>......public.enum.Game
3800 70 61 64 42 75 74 74 6f 6e 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 44 70 61 padButton......{..........//.Dpa
3820 64 20 62 75 74 74 6f 6e 73 2e 20 49 6d 70 6f 72 74 61 6e 74 20 74 6f 20 62 65 20 66 69 72 73 74 d.buttons..Important.to.be.first
3840 20 69 6e 20 74 68 65 20 62 69 74 66 69 65 6c 64 20 61 73 20 77 65 27 6c 6c 0d 0a 20 20 20 20 20 .in.the.bitfield.as.we'll.......
3860 20 20 20 2f 2f 20 70 6f 69 6e 74 20 74 68 65 20 44 70 61 64 43 6f 6e 74 72 6f 6c 20 74 6f 20 69 ...//.point.the.DpadControl.to.i
3880 74 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 49 4d 50 4f 52 54 41 4e 54 3a 20 4f 72 64 65 72 20 t...........//.IMPORTANT:.Order.
38a0 68 61 73 20 74 6f 20 6d 61 74 63 68 20 77 68 61 74 20 69 73 20 65 78 70 65 63 74 65 64 20 62 79 has.to.match.what.is.expected.by
38c0 20 44 70 61 64 43 6f 6e 74 72 6f 6c 2e 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 .DpadControl.............///.<su
38e0 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 75 70 20 62 75 74 74 6f mmary>..........///.The.up.butto
3900 6e 20 6f 6e 20 61 20 67 61 6d 65 70 61 64 27 73 20 64 70 61 64 2e 0d 0a 20 20 20 20 20 20 20 20 n.on.a.gamepad's.dpad...........
3920 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 44 70 61 64 55 70 20 3d ///.</summary>..........DpadUp.=
3940 20 30 2c 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 .0,............///.<summary>....
3960 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 64 6f 77 6e 20 62 75 74 74 6f 6e 20 6f 6e 20 61 20 67 ......///.The.down.button.on.a.g
3980 61 6d 65 70 61 64 27 73 20 64 70 61 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 amepad's.dpad...........///.</su
39a0 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 44 70 61 64 44 6f 77 6e 20 3d 20 31 2c 0d 0a 0d mmary>..........DpadDown.=.1,...
39c0 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>..........
39e0 2f 2f 2f 20 54 68 65 20 6c 65 66 74 20 62 75 74 74 6f 6e 20 6f 6e 20 61 20 67 61 6d 65 70 61 64 ///.The.left.button.on.a.gamepad
3a00 27 73 20 64 70 61 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 's.dpad...........///.</summary>
3a20 0d 0a 20 20 20 20 20 20 20 20 44 70 61 64 4c 65 66 74 20 3d 20 32 2c 0d 0a 0d 0a 20 20 20 20 20 ..........DpadLeft.=.2,.........
3a40 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 ...///.<summary>..........///.Th
3a60 65 20 72 69 67 68 74 20 62 75 74 74 6f 6e 20 6f 6e 20 61 20 67 61 6d 65 70 61 64 27 73 20 64 70 e.right.button.on.a.gamepad's.dp
3a80 61 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 ad...........///.</summary>.....
3aa0 20 20 20 20 20 44 70 61 64 52 69 67 68 74 20 3d 20 33 2c 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f .....DpadRight.=.3,............/
3ac0 2f 20 46 61 63 65 20 62 75 74 74 6f 6e 73 2e 20 57 65 20 67 6f 20 77 69 74 68 20 61 20 6e 6f 72 /.Face.buttons..We.go.with.a.nor
3ae0 74 68 2f 73 6f 75 74 68 2f 65 61 73 74 2f 77 65 73 74 20 6e 61 6d 69 6e 67 20 61 73 20 74 68 61 th/south/east/west.naming.as.tha
3b00 74 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 63 6c 65 61 72 6c 79 20 64 69 73 61 6d 62 69 67 75 61 t..........//.clearly.disambigua
3b20 74 65 73 20 77 68 65 72 65 20 77 65 20 65 78 70 65 63 74 20 74 68 65 20 72 65 73 70 65 63 74 69 tes.where.we.expect.the.respecti
3b40 76 65 20 62 75 74 74 6f 6e 20 74 6f 20 62 65 2e 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 ve.button.to.be.............///.
3b60 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 75 70 70 65 72 <summary>..........///.The.upper
3b80 20 61 63 74 69 6f 6e 20 62 75 74 74 6f 6e 20 6f 6e 20 61 20 67 61 6d 65 70 61 64 2e 0d 0a 20 20 .action.button.on.a.gamepad.....
3ba0 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f ......///.</summary>..........//
3bc0 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 64 65 6e 74 69 63 /.<remarks>..........///.Identic
3be0 61 6c 20 74 6f 20 3c 73 65 65 20 63 72 65 66 3d 22 59 22 2f 3e 20 61 6e 64 20 3c 73 65 65 20 63 al.to.<see.cref="Y"/>.and.<see.c
3c00 72 65 66 3d 22 54 72 69 61 6e 67 6c 65 22 2f 3e 20 77 68 69 63 68 20 61 72 65 20 74 68 65 20 58 ref="Triangle"/>.which.are.the.X
3c20 62 6f 78 20 61 6e 64 20 50 6c 61 79 53 74 61 74 69 6f 6e 20 63 6f 6e 74 72 6f 6c 6c 65 72 20 6e box.and.PlayStation.controller.n
3c40 61 6d 65 73 20 66 6f 72 20 74 68 69 73 20 62 75 74 74 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f ames.for.this.button.........../
3c60 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 4e 6f 72 74 68 20 3d 20 34 //.</remarks>..........North.=.4
3c80 2c 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 ,............///.<summary>......
3ca0 20 20 20 20 2f 2f 2f 20 54 68 65 20 72 69 67 68 74 20 61 63 74 69 6f 6e 20 62 75 74 74 6f 6e 20 ....///.The.right.action.button.
3cc0 6f 6e 20 61 20 67 61 6d 65 70 61 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d on.a.gamepad...........///.</sum
3ce0 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 mary>..........///.<remarks>....
3d00 20 20 20 20 20 20 2f 2f 2f 20 49 64 65 6e 74 69 63 61 6c 20 74 6f 20 3c 73 65 65 20 63 72 65 66 ......///.Identical.to.<see.cref
3d20 3d 22 42 22 2f 3e 20 61 6e 64 20 3c 73 65 65 20 63 72 65 66 3d 22 43 69 72 63 6c 65 22 2f 3e 20 ="B"/>.and.<see.cref="Circle"/>.
3d40 77 68 69 63 68 20 61 72 65 20 74 68 65 20 58 62 6f 78 20 61 6e 64 20 50 6c 61 79 53 74 61 74 69 which.are.the.Xbox.and.PlayStati
3d60 6f 6e 20 63 6f 6e 74 72 6f 6c 6c 65 72 20 6e 61 6d 65 73 20 66 6f 72 20 74 68 69 73 20 62 75 74 on.controller.names.for.this.but
3d80 74 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 ton...........///.</remarks>....
3da0 20 20 20 20 20 20 45 61 73 74 20 3d 20 35 2c 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c ......East.=.5,............///.<
3dc0 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 6c 6f 77 65 72 20 summary>..........///.The.lower.
3de0 61 63 74 69 6f 6e 20 62 75 74 74 6f 6e 20 6f 6e 20 61 20 67 61 6d 65 70 61 64 2e 0d 0a 20 20 20 action.button.on.a.gamepad......
3e00 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f .....///.</summary>..........///
3e20 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 64 65 6e 74 69 63 61 .<remarks>..........///.Identica
3e40 6c 20 74 6f 20 3c 73 65 65 20 63 72 65 66 3d 22 41 22 2f 3e 20 61 6e 64 20 3c 73 65 65 20 63 72 l.to.<see.cref="A"/>.and.<see.cr
3e60 65 66 3d 22 43 72 6f 73 73 22 2f 3e 20 77 68 69 63 68 20 61 72 65 20 74 68 65 20 58 62 6f 78 20 ef="Cross"/>.which.are.the.Xbox.
3e80 61 6e 64 20 50 6c 61 79 53 74 61 74 69 6f 6e 20 63 6f 6e 74 72 6f 6c 6c 65 72 20 6e 61 6d 65 73 and.PlayStation.controller.names
3ea0 20 66 6f 72 20 74 68 69 73 20 62 75 74 74 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c .for.this.button...........///.<
3ec0 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 53 6f 75 74 68 20 3d 20 36 2c 0d 0a 0d /remarks>..........South.=.6,...
3ee0 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>..........
3f00 2f 2f 2f 20 54 68 65 20 6c 65 66 74 20 61 63 74 69 6f 6e 20 62 75 74 74 6f 6e 20 6f 6e 20 61 20 ///.The.left.action.button.on.a.
3f20 67 61 6d 65 70 61 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e gamepad...........///.</summary>
3f40 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 ..........///.<remarks>.........
3f60 20 2f 2f 2f 20 49 64 65 6e 74 69 63 61 6c 20 74 6f 20 3c 73 65 65 20 63 72 65 66 3d 22 58 22 2f .///.Identical.to.<see.cref="X"/
3f80 3e 20 61 6e 64 20 3c 73 65 65 20 63 72 65 66 3d 22 53 71 75 61 72 65 22 2f 3e 20 77 68 69 63 68 >.and.<see.cref="Square"/>.which
3fa0 20 61 72 65 20 74 68 65 20 58 62 6f 78 20 61 6e 64 20 50 6c 61 79 53 74 61 74 69 6f 6e 20 63 6f .are.the.Xbox.and.PlayStation.co
3fc0 6e 74 72 6f 6c 6c 65 72 20 6e 61 6d 65 73 20 66 6f 72 20 74 68 69 73 20 62 75 74 74 6f 6e 2e 0d ntroller.names.for.this.button..
3fe0 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 .........///.</remarks>.........
4000 20 57 65 73 74 20 3d 20 37 2c 0d 0a 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d .West.=.7,..............///.<sum
4020 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 62 75 74 74 6f 6e 20 70 72 mary>..........///.The.button.pr
4040 65 73 73 65 64 20 62 79 20 70 72 65 73 73 69 6e 67 20 64 6f 77 6e 20 74 68 65 20 6c 65 66 74 20 essed.by.pressing.down.the.left.
4060 73 74 69 63 6b 20 6f 6e 20 61 20 67 61 6d 65 70 61 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f stick.on.a.gamepad...........///
4080 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 4c 65 66 74 53 74 69 63 6b 20 3d .</summary>..........LeftStick.=
40a0 20 38 2c 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 .8,............///.<summary>....
40c0 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 62 75 74 74 6f 6e 20 70 72 65 73 73 65 64 20 62 79 20 ......///.The.button.pressed.by.
40e0 70 72 65 73 73 69 6e 67 20 64 6f 77 6e 20 74 68 65 20 72 69 67 68 74 20 73 74 69 63 6b 20 6f 6e pressing.down.the.right.stick.on
4100 20 61 20 67 61 6d 65 70 61 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 .a.gamepad...........///.</summa
4120 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 52 69 67 68 74 53 74 69 63 6b 20 3d 20 39 2c 0d 0a 0d 0a ry>..........RightStick.=.9,....
4140 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f ........///.<summary>........../
4160 2f 2f 20 54 68 65 20 6c 65 66 74 20 73 68 6f 75 6c 64 65 72 20 62 75 74 74 6f 6e 20 6f 6e 20 61 //.The.left.shoulder.button.on.a
4180 20 67 61 6d 65 70 61 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 .gamepad...........///.</summary
41a0 3e 0d 0a 20 20 20 20 20 20 20 20 4c 65 66 74 53 68 6f 75 6c 64 65 72 20 3d 20 31 30 2c 0d 0a 0d >..........LeftShoulder.=.10,...
41c0 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>..........
41e0 2f 2f 2f 20 54 68 65 20 72 69 67 68 74 20 73 68 6f 75 6c 64 65 72 20 62 75 74 74 6f 6e 20 6f 6e ///.The.right.shoulder.button.on
4200 20 61 20 67 61 6d 65 70 61 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 .a.gamepad...........///.</summa
4220 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 52 69 67 68 74 53 68 6f 75 6c 64 65 72 20 3d 20 31 31 2c ry>..........RightShoulder.=.11,
4240 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 ............///.<summary>.......
4260 20 20 20 2f 2f 2f 20 54 68 65 20 73 74 61 72 74 20 62 75 74 74 6f 6e 2e 0d 0a 20 20 20 20 20 20 ...///.The.start.button.........
4280 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 53 74 61 72 74 20 ..///.</summary>..........Start.
42a0 3d 20 31 32 2c 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a =.12,............///.<summary>..
42c0 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 73 65 6c 65 63 74 20 62 75 74 74 6f 6e 2e 0d 0a ........///.The.select.button...
42e0 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 ........///.</summary>..........
4300 53 65 6c 65 63 74 20 3d 20 31 33 2c 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 46 6f 72 20 76 Select.=.13,............//.For.v
4320 61 6c 75 65 73 20 74 68 61 74 20 61 72 65 20 6e 6f 74 20 70 61 72 74 20 6f 66 20 74 68 65 20 62 alues.that.are.not.part.of.the.b
4340 75 74 74 6f 6e 73 20 62 69 74 6d 61 73 6b 20 69 6e 20 47 61 6d 65 70 61 64 53 74 61 74 65 2c 20 uttons.bitmask.in.GamepadState,.
4360 61 73 73 69 67 6e 20 6c 61 72 67 65 20 76 61 6c 75 65 73 20 74 68 61 74 20 61 72 65 20 6f 75 74 assign.large.values.that.are.out
4380 73 69 64 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 74 68 65 20 33 32 62 69 74 20 62 69 74 20 72 side..........//.the.32bit.bit.r
43a0 61 6e 67 65 2e 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a ange.............///.<summary>..
43c0 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 6c 65 66 74 20 74 72 69 67 67 65 72 20 62 75 74 ........///.The.left.trigger.but
43e0 74 6f 6e 20 6f 6e 20 61 20 67 61 6d 65 70 61 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c ton.on.a.gamepad...........///.<
4400 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 4c 65 66 74 54 72 69 67 67 65 72 20 3d /summary>..........LeftTrigger.=
4420 20 33 32 2c 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 .32,............///.<summary>...
4440 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 72 69 67 68 74 20 74 72 69 67 67 65 72 20 62 75 74 .......///.The.right.trigger.but
4460 74 6f 6e 20 6f 6e 20 61 20 67 61 6d 65 70 61 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c ton.on.a.gamepad...........///.<
4480 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 52 69 67 68 74 54 72 69 67 67 65 72 20 /summary>..........RightTrigger.
44a0 3d 20 33 33 2c 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a =.33,............///.<summary>..
44c0 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 58 20 62 75 74 74 6f 6e 20 6f 6e 20 61 6e 20 58 ........///.The.X.button.on.an.X
44e0 62 6f 78 20 63 6f 6e 74 72 6f 6c 6c 65 72 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 box.controller...........///.</s
4500 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a ummary>..........///.<remarks>..
4520 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 64 65 6e 74 69 63 61 6c 20 74 6f 20 3c 73 65 65 20 63 72 ........///.Identical.to.<see.cr
4540 65 66 3d 22 57 65 73 74 22 2f 3e 2c 20 77 68 69 63 68 20 69 73 20 74 68 65 20 67 65 6e 65 72 69 ef="West"/>,.which.is.the.generi
4560 63 20 6e 61 6d 65 20 6f 66 20 74 68 69 73 20 62 75 74 74 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 c.name.of.this.button...........
4580 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 58 20 3d 20 57 65 73 74 ///.</remarks>..........X.=.West
45a0 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 ,..........///.<summary>........
45c0 20 20 2f 2f 2f 20 54 68 65 20 59 20 62 75 74 74 6f 6e 20 6f 6e 20 61 6e 20 58 62 6f 78 20 63 6f ..///.The.Y.button.on.an.Xbox.co
45e0 6e 74 72 6f 6c 6c 65 72 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 ntroller...........///.</summary
4600 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 >..........///.<remarks>........
4620 20 20 2f 2f 2f 20 49 64 65 6e 74 69 63 61 6c 20 74 6f 20 3c 73 65 65 20 63 72 65 66 3d 22 4e 6f ..///.Identical.to.<see.cref="No
4640 72 74 68 22 2f 3e 2c 20 77 68 69 63 68 20 69 73 20 74 68 65 20 67 65 6e 65 72 69 63 20 6e 61 6d rth"/>,.which.is.the.generic.nam
4660 65 20 6f 66 20 74 68 69 73 20 62 75 74 74 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c e.of.this.button...........///.<
4680 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 59 20 3d 20 4e 6f 72 74 68 2c 0d 0a 20 /remarks>..........Y.=.North,...
46a0 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f .......///.<summary>..........//
46c0 2f 20 54 68 65 20 41 20 62 75 74 74 6f 6e 20 6f 6e 20 61 6e 20 58 62 6f 78 20 63 6f 6e 74 72 6f /.The.A.button.on.an.Xbox.contro
46e0 6c 6c 65 72 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 ller...........///.</summary>...
4700 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f .......///.<remarks>..........//
4720 2f 20 49 64 65 6e 74 69 63 61 6c 20 74 6f 20 3c 73 65 65 20 63 72 65 66 3d 22 53 6f 75 74 68 22 /.Identical.to.<see.cref="South"
4740 2f 3e 2c 20 77 68 69 63 68 20 69 73 20 74 68 65 20 67 65 6e 65 72 69 63 20 6e 61 6d 65 20 6f 66 />,.which.is.the.generic.name.of
4760 20 74 68 69 73 20 62 75 74 74 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d .this.button...........///.</rem
4780 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 41 20 3d 20 53 6f 75 74 68 2c 0d 0a 20 20 20 20 20 arks>..........A.=.South,.......
47a0 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 ...///.<summary>..........///.Th
47c0 65 20 42 20 62 75 74 74 6f 6e 20 6f 6e 20 61 6e 20 58 62 6f 78 20 63 6f 6e 74 72 6f 6c 6c 65 72 e.B.button.on.an.Xbox.controller
47e0 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>.......
4800 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 64 ...///.<remarks>..........///.Id
4820 65 6e 74 69 63 61 6c 20 74 6f 20 3c 73 65 65 20 63 72 65 66 3d 22 45 61 73 74 22 2f 3e 2c 20 77 entical.to.<see.cref="East"/>,.w
4840 68 69 63 68 20 69 73 20 74 68 65 20 67 65 6e 65 72 69 63 20 6e 61 6d 65 20 6f 66 20 74 68 69 73 hich.is.the.generic.name.of.this
4860 20 62 75 74 74 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e .button...........///.</remarks>
4880 0d 0a 20 20 20 20 20 20 20 20 42 20 3d 20 45 61 73 74 2c 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f ..........B.=.East,............/
48a0 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 63 72 //.<summary>..........///.The.cr
48c0 6f 73 73 20 62 75 74 74 6f 6e 20 6f 6e 20 61 20 50 6c 61 79 53 74 61 74 69 6f 6e 20 63 6f 6e 74 oss.button.on.a.PlayStation.cont
48e0 72 6f 6c 6c 65 72 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d roller...........///.</summary>.
4900 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 .........///.<remarks>..........
4920 2f 2f 2f 20 49 64 65 6e 74 69 63 61 6c 20 74 6f 20 3c 73 65 65 20 63 72 65 66 3d 22 53 6f 75 74 ///.Identical.to.<see.cref="Sout
4940 68 22 2f 3e 2c 20 77 68 69 63 68 20 69 73 20 74 68 65 20 67 65 6e 65 72 69 63 20 6e 61 6d 65 20 h"/>,.which.is.the.generic.name.
4960 6f 66 20 74 68 69 73 20 62 75 74 74 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 of.this.button...........///.</r
4980 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 43 72 6f 73 73 20 3d 20 53 6f 75 74 68 2c 0d emarks>..........Cross.=.South,.
49a0 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>..........
49c0 2f 2f 2f 20 54 68 65 20 73 71 75 61 72 65 20 62 75 74 74 6f 6e 20 6f 6e 20 61 20 50 6c 61 79 53 ///.The.square.button.on.a.PlayS
49e0 74 61 74 69 6f 6e 20 63 6f 6e 74 72 6f 6c 6c 65 72 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 tation.controller...........///.
4a00 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 </summary>..........///.<remarks
4a20 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 64 65 6e 74 69 63 61 6c 20 74 6f 20 3c 73 65 65 >..........///.Identical.to.<see
4a40 20 63 72 65 66 3d 22 57 65 73 74 22 2f 3e 2c 20 77 68 69 63 68 20 69 73 20 74 68 65 20 67 65 6e .cref="West"/>,.which.is.the.gen
4a60 65 72 69 63 20 6e 61 6d 65 20 6f 66 20 74 68 69 73 20 62 75 74 74 6f 6e 2e 0d 0a 20 20 20 20 20 eric.name.of.this.button........
4a80 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 53 71 75 61 72 ...///.</remarks>..........Squar
4aa0 65 20 3d 20 57 65 73 74 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e e.=.West,..........///.<summary>
4ac0 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 74 72 69 61 6e 67 6c 65 20 62 75 74 74 6f ..........///.The.triangle.butto
4ae0 6e 20 6f 6e 20 61 20 50 6c 61 79 53 74 61 74 69 6f 6e 20 63 6f 6e 74 72 6f 6c 6c 65 72 2e 0d 0a n.on.a.PlayStation.controller...
4b00 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 ........///.</summary>..........
4b20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 64 65 6e 74 ///.<remarks>..........///.Ident
4b40 69 63 61 6c 20 74 6f 20 3c 73 65 65 20 63 72 65 66 3d 22 4e 6f 72 74 68 22 2f 3e 2c 20 77 68 69 ical.to.<see.cref="North"/>,.whi
4b60 63 68 20 69 73 20 74 68 65 20 67 65 6e 65 72 69 63 20 6e 61 6d 65 20 6f 66 20 74 68 69 73 20 62 ch.is.the.generic.name.of.this.b
4b80 75 74 74 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a utton...........///.</remarks>..
4ba0 20 20 20 20 20 20 20 20 54 72 69 61 6e 67 6c 65 20 3d 20 4e 6f 72 74 68 2c 0d 0a 20 20 20 20 20 ........Triangle.=.North,.......
4bc0 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 ...///.<summary>..........///.Th
4be0 65 20 63 69 72 63 6c 65 20 62 75 74 74 6f 6e 20 6f 6e 20 61 20 50 6c 61 79 53 74 61 74 69 6f 6e e.circle.button.on.a.PlayStation
4c00 20 63 6f 6e 74 72 6f 6c 6c 65 72 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d .controller...........///.</summ
4c20 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 ary>..........///.<remarks>.....
4c40 20 20 20 20 20 2f 2f 2f 20 49 64 65 6e 74 69 63 61 6c 20 74 6f 20 3c 73 65 65 20 63 72 65 66 3d .....///.Identical.to.<see.cref=
4c60 22 45 61 73 74 22 2f 3e 2c 20 77 68 69 63 68 20 69 73 20 74 68 65 20 67 65 6e 65 72 69 63 20 6e "East"/>,.which.is.the.generic.n
4c80 61 6d 65 20 6f 66 20 74 68 69 73 20 62 75 74 74 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f ame.of.this.button...........///
4ca0 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 43 69 72 63 6c 65 20 3d 20 45 61 .</remarks>..........Circle.=.Ea
4cc0 73 74 2c 0d 0a 20 20 20 20 7d 0d 0a 7d 0d 0a 0d 0a 6e 61 6d 65 73 70 61 63 65 20 55 6e 69 74 79 st,......}..}....namespace.Unity
4ce0 45 6e 67 69 6e 65 2e 49 6e 70 75 74 53 79 73 74 65 6d 0d 0a 7b 0d 0a 20 20 20 20 2f 2f 2f 20 3c Engine.InputSystem..{......///.<
4d00 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 2f 2f 2f 20 41 6e 20 58 62 6f 78 2d 73 74 79 6c 65 20 summary>......///.An.Xbox-style.
4d20 67 61 6d 65 70 61 64 20 77 69 74 68 20 74 77 6f 20 73 74 69 63 6b 73 2c 20 61 20 44 2d 50 61 64 gamepad.with.two.sticks,.a.D-Pad
4d40 2c 20 66 6f 75 72 20 66 61 63 65 20 62 75 74 74 6f 6e 73 2c 20 74 77 6f 20 74 72 69 67 67 65 72 ,.four.face.buttons,.two.trigger
4d60 73 2c 0d 0a 20 20 20 20 2f 2f 2f 20 74 77 6f 20 73 68 6f 75 6c 64 65 72 20 62 75 74 74 6f 6e 73 s,......///.two.shoulder.buttons
4d80 2c 20 61 6e 64 20 74 77 6f 20 6d 65 6e 75 20 62 75 74 74 6f 6e 73 20 74 68 61 74 20 75 73 75 61 ,.and.two.menu.buttons.that.usua
4da0 6c 6c 79 20 73 69 74 20 69 6e 20 74 68 65 20 6d 69 64 73 65 63 74 69 6f 6e 20 6f 66 20 74 68 65 lly.sit.in.the.midsection.of.the
4dc0 20 67 61 6d 65 70 61 64 2e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 .gamepad.......///.</summary>...
4de0 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 2f 2f 2f 20 54 68 65 20 47 61 ...///.<remarks>......///.The.Ga
4e00 6d 65 70 61 64 20 6c 61 79 6f 75 74 20 70 72 6f 76 69 64 65 73 20 61 20 73 74 61 6e 64 61 72 64 mepad.layout.provides.a.standard
4e20 69 7a 65 64 20 6c 61 79 6f 75 74 73 20 66 6f 72 20 67 61 6d 65 70 61 64 73 2e 20 47 65 6e 65 72 ized.layouts.for.gamepads..Gener
4e40 61 6c 6c 79 2c 20 69 66 20 61 20 73 70 65 63 69 66 69 63 0d 0a 20 20 20 20 2f 2f 2f 20 64 65 76 ally,.if.a.specific......///.dev
4e60 69 63 65 20 69 73 20 72 65 70 72 65 73 65 6e 74 65 64 20 61 73 20 61 20 47 61 6d 65 70 61 64 2c ice.is.represented.as.a.Gamepad,
4e80 20 74 68 65 20 63 6f 6e 74 72 6f 6c 73 2c 20 73 75 63 68 20 61 73 20 74 68 65 20 66 61 63 65 20 .the.controls,.such.as.the.face.
4ea0 62 75 74 74 6f 6e 73 2c 20 61 72 65 20 67 75 61 72 61 6e 74 65 65 64 0d 0a 20 20 20 20 2f 2f 2f buttons,.are.guaranteed......///
4ec0 20 74 6f 20 62 65 20 6d 61 70 70 65 64 20 63 6f 72 72 65 63 74 6c 79 20 61 6e 64 20 63 6f 6e 73 .to.be.mapped.correctly.and.cons
4ee0 69 73 74 65 6e 74 6c 79 2e 20 49 66 2c 20 62 61 73 65 64 20 6f 6e 20 74 68 65 20 73 65 74 20 6f istently..If,.based.on.the.set.o
4f00 66 20 73 75 70 70 6f 72 74 65 64 20 64 65 76 69 63 65 73 20 61 76 61 69 6c 61 62 6c 65 0d 0a 20 f.supported.devices.available...
4f20 20 20 20 2f 2f 2f 20 74 6f 20 74 68 65 20 69 6e 70 75 74 20 73 79 73 74 65 6d 2c 20 74 68 69 73 ...///.to.the.input.system,.this
4f40 20 63 61 6e 6e 6f 74 20 62 65 20 67 75 61 72 61 6e 74 65 65 64 2c 20 61 20 67 69 76 65 6e 20 64 .cannot.be.guaranteed,.a.given.d
4f60 65 76 69 63 65 20 69 73 20 75 73 75 61 6c 6c 79 20 72 65 70 72 65 73 65 6e 74 65 64 20 61 73 20 evice.is.usually.represented.as.
4f80 61 0d 0a 20 20 20 20 2f 2f 2f 20 67 65 6e 65 72 69 63 20 3c 73 65 65 20 63 72 65 66 3d 22 4a 6f a......///.generic.<see.cref="Jo
4fa0 79 73 74 69 63 6b 22 2f 3e 20 6f 72 20 61 73 20 6a 75 73 74 20 61 20 70 6c 61 69 6e 20 3c 73 65 ystick"/>.or.as.just.a.plain.<se
4fc0 65 20 63 72 65 66 3d 22 48 49 44 2e 48 49 44 22 2f 3e 20 69 6e 73 74 65 61 64 2e 0d 0a 20 20 20 e.cref="HID.HID"/>.instead......
4fe0 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 3c 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 2f 2f 2f .///......///.<example>......///
5000 20 3c 63 6f 64 65 3e 0d 0a 20 20 20 20 2f 2f 2f 20 2f 2f 20 53 68 6f 77 20 61 6c 6c 20 67 61 6d .<code>......///.//.Show.all.gam
5020 65 70 61 64 73 20 69 6e 20 74 68 65 20 73 79 73 74 65 6d 2e 0d 0a 20 20 20 20 2f 2f 2f 20 44 65 epads.in.the.system.......///.De
5040 62 75 67 2e 4c 6f 67 28 73 74 72 69 6e 67 2e 4a 6f 69 6e 28 22 5c 6e 22 2c 20 47 61 6d 65 70 61 bug.Log(string.Join("\n",.Gamepa
5060 64 2e 61 6c 6c 29 29 3b 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 2f 2f 20 43 68 d.all));......///......///.//.Ch
5080 65 63 6b 20 77 68 65 74 68 65 72 20 74 68 65 20 58 20 62 75 74 74 6f 6e 20 6f 6e 20 74 68 65 20 eck.whether.the.X.button.on.the.
50a0 63 75 72 72 65 6e 74 20 67 61 6d 65 70 61 64 20 69 73 20 70 72 65 73 73 65 64 2e 0d 0a 20 20 20 current.gamepad.is.pressed......
50c0 20 2f 2f 2f 20 69 66 20 28 47 61 6d 65 70 61 64 2e 63 75 72 72 65 6e 74 2e 78 42 75 74 74 6f 6e .///.if.(Gamepad.current.xButton
50e0 2e 77 61 73 50 72 65 73 73 65 64 54 68 69 73 46 72 61 6d 65 29 0d 0a 20 20 20 20 2f 2f 2f 20 20 .wasPressedThisFrame)......///..
5100 20 20 20 44 65 62 75 67 2e 4c 6f 67 28 22 50 72 65 73 73 65 64 22 29 3b 0d 0a 20 20 20 20 2f 2f ...Debug.Log("Pressed");......//
5120 2f 0d 0a 20 20 20 20 2f 2f 2f 20 2f 2f 20 52 75 6d 62 6c 65 20 74 68 65 20 6c 65 66 74 20 6d 6f /......///.//.Rumble.the.left.mo
5140 74 6f 72 20 6f 6e 20 74 68 65 20 63 75 72 72 65 6e 74 20 67 61 6d 65 70 61 64 20 73 6c 69 67 68 tor.on.the.current.gamepad.sligh
5160 74 6c 79 2e 0d 0a 20 20 20 20 2f 2f 2f 20 47 61 6d 65 70 61 64 2e 63 75 72 72 65 6e 74 2e 53 65 tly.......///.Gamepad.current.Se
5180 74 4d 6f 74 6f 72 53 70 65 65 64 73 28 30 2e 32 66 2c 20 30 2e 0d 0a 20 20 20 20 2f 2f 2f 20 3c tMotorSpeeds(0.2f,.0.......///.<
51a0 2f 63 6f 64 65 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 2f 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 /code>......///.</example>......
51c0 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 5b 49 6e 70 75 74 43 6f 6e 74 72 6f ///.</remarks>......[InputContro
51e0 6c 4c 61 79 6f 75 74 28 73 74 61 74 65 54 79 70 65 20 3d 20 74 79 70 65 6f 66 28 47 61 6d 65 70 lLayout(stateType.=.typeof(Gamep
5200 61 64 53 74 61 74 65 29 2c 20 69 73 47 65 6e 65 72 69 63 54 79 70 65 4f 66 44 65 76 69 63 65 20 adState),.isGenericTypeOfDevice.
5220 3d 20 74 72 75 65 29 5d 0d 0a 20 20 20 20 5b 50 72 65 73 65 72 76 65 5d 0d 0a 20 20 20 20 70 75 =.true)]......[Preserve]......pu
5240 62 6c 69 63 20 63 6c 61 73 73 20 47 61 6d 65 70 61 64 20 3a 20 49 6e 70 75 74 44 65 76 69 63 65 blic.class.Gamepad.:.InputDevice
5260 2c 20 49 44 75 61 6c 4d 6f 74 6f 72 52 75 6d 62 6c 65 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 ,.IDualMotorRumble......{.......
5280 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 ...///.<summary>..........///.Th
52a0 65 20 6c 65 66 74 20 66 61 63 65 20 62 75 74 74 6f 6e 20 6f 66 20 74 68 65 20 67 61 6d 65 70 61 e.left.face.button.of.the.gamepa
52c0 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 d...........///.</summary>......
52e0 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 43 6f 6e 74 72 6f 6c 20 72 65 70 72 65 73 65 6e 74 ....///.<value>Control.represent
5300 69 6e 67 20 74 68 65 20 58 2f 53 71 75 61 72 65 20 66 61 63 65 20 62 75 74 74 6f 6e 2e 3c 2f 76 ing.the.X/Square.face.button.</v
5320 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 alue>..........///.<remarks>....
5340 20 20 20 20 20 20 2f 2f 2f 20 4f 6e 20 61 6e 20 58 62 6f 78 20 63 6f 6e 74 72 6f 6c 6c 65 72 2c ......///.On.an.Xbox.controller,
5360 20 74 68 69 73 20 69 73 20 74 68 65 20 58 20 62 75 74 74 6f 6e 20 61 6e 64 20 6f 6e 20 74 68 65 .this.is.the.X.button.and.on.the
5380 20 50 53 34 20 63 6f 6e 74 72 6f 6c 6c 65 72 2c 20 74 68 69 73 20 69 73 20 74 68 65 0d 0a 20 20 .PS4.controller,.this.is.the....
53a0 20 20 20 20 20 20 2f 2f 2f 20 73 71 75 61 72 65 20 62 75 74 74 6f 6e 2e 0d 0a 20 20 20 20 20 20 ......///.square.button.........
53c0 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 ..///.</remarks>..........///.<s
53e0 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 78 42 75 74 74 6f 6e 22 2f 3e 0d 0a 20 20 20 20 20 20 20 eealso.cref="xButton"/>.........
5400 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 73 71 75 61 72 65 42 75 74 74 6f 6e .///.<seealso.cref="squareButton
5420 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 42 75 74 74 6f 6e 43 6f 6e 74 72 6f "/>..........public.ButtonContro
5440 6c 20 62 75 74 74 6f 6e 57 65 73 74 20 7b 20 67 65 74 3b 20 70 72 69 76 61 74 65 20 73 65 74 3b l.buttonWest.{.get;.private.set;
5460 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 .}............///.<summary>.....
5480 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 74 6f 70 20 66 61 63 65 20 62 75 74 74 6f 6e 20 6f 66 20 .....///.The.top.face.button.of.
54a0 74 68 65 20 67 61 6d 65 70 61 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d the.gamepad...........///.</summ
54c0 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 43 6f 6e 74 72 6f 6c ary>..........///.<value>Control
54e0 20 72 65 70 72 65 73 65 6e 74 69 6e 67 20 74 68 65 20 59 2f 54 72 69 61 6e 67 6c 65 20 66 61 63 .representing.the.Y/Triangle.fac
5500 65 20 62 75 74 74 6f 6e 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c e.button.</value>..........///.<
5520 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 4f 6e 20 61 6e 20 58 62 6f 78 remarks>..........///.On.an.Xbox
5540 20 63 6f 6e 74 72 6f 6c 6c 65 72 2c 20 74 68 69 73 20 69 73 20 74 68 65 20 59 20 62 75 74 74 6f .controller,.this.is.the.Y.butto
5560 6e 20 61 6e 64 20 6f 6e 20 74 68 65 20 50 53 34 20 63 6f 6e 74 72 6f 6c 6c 65 72 2c 20 74 68 69 n.and.on.the.PS4.controller,.thi
5580 73 20 69 73 20 74 68 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 72 69 61 6e 67 6c 65 20 62 s.is.the..........///.triangle.b
55a0 75 74 74 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a utton...........///.</remarks>..
55c0 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 79 42 75 74 74 ........///.<seealso.cref="yButt
55e0 6f 6e 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 on"/>..........///.<seealso.cref
5600 3d 22 74 72 69 61 6e 67 6c 65 42 75 74 74 6f 6e 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 ="triangleButton"/>..........pub
5620 6c 69 63 20 42 75 74 74 6f 6e 43 6f 6e 74 72 6f 6c 20 62 75 74 74 6f 6e 4e 6f 72 74 68 20 7b 20 lic.ButtonControl.buttonNorth.{.
5640 67 65 74 3b 20 70 72 69 76 61 74 65 20 73 65 74 3b 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f get;.private.set;.}............/
5660 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 62 6f //.<summary>..........///.The.bo
5680 74 74 6f 6d 20 66 61 63 65 20 62 75 74 74 6f 6e 20 6f 66 20 74 68 65 20 67 61 6d 65 70 61 64 2e ttom.face.button.of.the.gamepad.
56a0 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 ..........///.</summary>........
56c0 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 43 6f 6e 74 72 6f 6c 20 72 65 70 72 65 73 65 6e 74 69 6e ..///.<value>Control.representin
56e0 67 20 74 68 65 20 41 2f 43 72 6f 73 73 20 66 61 63 65 20 62 75 74 74 6f 6e 2e 3c 2f 76 61 6c 75 g.the.A/Cross.face.button.</valu
5700 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 e>..........///.<remarks>.......
5720 20 20 20 2f 2f 2f 20 4f 6e 20 61 6e 20 58 62 6f 78 20 63 6f 6e 74 72 6f 6c 6c 65 72 2c 20 74 68 ...///.On.an.Xbox.controller,.th
5740 69 73 20 69 73 20 74 68 65 20 41 20 62 75 74 74 6f 6e 20 61 6e 64 20 6f 6e 20 74 68 65 20 50 53 is.is.the.A.button.and.on.the.PS
5760 34 20 63 6f 6e 74 72 6f 6c 6c 65 72 2c 20 74 68 69 73 20 69 73 20 74 68 65 0d 0a 20 20 20 20 20 4.controller,.this.is.the.......
5780 20 20 20 2f 2f 2f 20 63 72 6f 73 73 20 62 75 74 74 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f ...///.cross.button...........//
57a0 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c /.</remarks>..........///.<seeal
57c0 73 6f 20 63 72 65 66 3d 22 61 42 75 74 74 6f 6e 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f so.cref="aButton"/>..........///
57e0 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 63 72 6f 73 73 42 75 74 74 6f 6e 22 2f 3e 0d 0a .<seealso.cref="crossButton"/>..
5800 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 42 75 74 74 6f 6e 43 6f 6e 74 72 6f 6c 20 62 75 74 ........public.ButtonControl.but
5820 74 6f 6e 53 6f 75 74 68 20 7b 20 67 65 74 3b 20 70 72 69 76 61 74 65 20 73 65 74 3b 20 7d 0d 0a tonSouth.{.get;.private.set;.}..
5840 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 ..........///.<summary>.........
5860 20 2f 2f 2f 20 54 68 65 20 72 69 67 68 74 20 66 61 63 65 20 62 75 74 74 6f 6e 20 6f 66 20 74 68 .///.The.right.face.button.of.th
5880 65 20 67 61 6d 65 70 61 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 e.gamepad...........///.</summar
58a0 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 43 6f 6e 74 72 6f 6c 20 72 y>..........///.<value>Control.r
58c0 65 70 72 65 73 65 6e 74 69 6e 67 20 74 68 65 20 42 2f 43 69 72 63 6c 65 20 66 61 63 65 20 62 75 epresenting.the.B/Circle.face.bu
58e0 74 74 6f 6e 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 tton.</value>..........///.<rema
5900 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 4f 6e 20 61 6e 20 58 62 6f 78 20 63 6f 6e rks>..........///.On.an.Xbox.con
5920 74 72 6f 6c 6c 65 72 2c 20 74 68 69 73 20 69 73 20 74 68 65 20 42 20 62 75 74 74 6f 6e 20 61 6e troller,.this.is.the.B.button.an
5940 64 20 6f 6e 20 74 68 65 20 50 53 34 20 63 6f 6e 74 72 6f 6c 6c 65 72 2c 20 74 68 69 73 20 69 73 d.on.the.PS4.controller,.this.is
5960 20 74 68 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 63 69 72 63 6c 65 20 62 75 74 74 6f 6e 2e .the..........///.circle.button.
5980 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 ..........///.</remarks>........
59a0 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 62 42 75 74 74 6f 6e 22 2f 3e 0d ..///.<seealso.cref="bButton"/>.
59c0 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 63 69 72 63 .........///.<seealso.cref="circ
59e0 6c 65 42 75 74 74 6f 6e 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 42 75 74 74 leButton"/>..........public.Butt
5a00 6f 6e 43 6f 6e 74 72 6f 6c 20 62 75 74 74 6f 6e 45 61 73 74 20 7b 20 67 65 74 3b 20 70 72 69 76 onControl.buttonEast.{.get;.priv
5a20 61 74 65 20 73 65 74 3b 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 ate.set;.}............///.<summa
5a40 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 62 75 74 74 6f 6e 20 74 68 61 74 ry>..........///.The.button.that
5a60 20 67 65 74 73 20 74 72 69 67 67 65 72 65 64 20 77 68 65 6e 20 3c 73 65 65 20 63 72 65 66 3d 22 .gets.triggered.when.<see.cref="
5a80 6c 65 66 74 53 74 69 63 6b 22 2f 3e 20 69 73 20 70 72 65 73 73 65 64 20 64 6f 77 6e 2e 0d 0a 20 leftStick"/>.is.pressed.down....
5aa0 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f .......///.</summary>........../
5ac0 2f 2f 20 3c 76 61 6c 75 65 3e 43 6f 6e 74 72 6f 6c 20 72 65 70 72 65 73 65 6e 74 69 6e 67 20 61 //.<value>Control.representing.a
5ae0 20 63 6c 69 63 6b 20 77 69 74 68 20 74 68 65 20 6c 65 66 74 20 73 74 69 63 6b 2e 3c 2f 76 61 6c .click.with.the.left.stick.</val
5b00 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 42 75 74 74 6f 6e 43 6f 6e 74 72 6f ue>..........public.ButtonContro
5b20 6c 20 6c 65 66 74 53 74 69 63 6b 42 75 74 74 6f 6e 20 7b 20 67 65 74 3b 20 70 72 69 76 61 74 65 l.leftStickButton.{.get;.private
5b40 20 73 65 74 3b 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e .set;.}............///.<summary>
5b60 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 62 75 74 74 6f 6e 20 74 68 61 74 20 67 65 ..........///.The.button.that.ge
5b80 74 73 20 74 72 69 67 67 65 72 65 64 20 77 68 65 6e 20 3c 73 65 65 20 63 72 65 66 3d 22 72 69 67 ts.triggered.when.<see.cref="rig
5ba0 68 74 53 74 69 63 6b 22 2f 3e 20 69 73 20 70 72 65 73 73 65 64 20 64 6f 77 6e 2e 0d 0a 20 20 20 htStick"/>.is.pressed.down......
5bc0 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f .....///.</summary>..........///
5be0 20 3c 76 61 6c 75 65 3e 43 6f 6e 74 72 6f 6c 20 72 65 70 72 65 73 65 6e 74 69 6e 67 20 61 20 63 .<value>Control.representing.a.c
5c00 6c 69 63 6b 20 77 69 74 68 20 74 68 65 20 72 69 67 68 74 20 73 74 69 63 6b 2e 3c 2f 76 61 6c 75 lick.with.the.right.stick.</valu
5c20 65 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 42 75 74 74 6f 6e 43 6f 6e 74 72 6f 6c e>..........public.ButtonControl
5c40 20 72 69 67 68 74 53 74 69 63 6b 42 75 74 74 6f 6e 20 7b 20 67 65 74 3b 20 70 72 69 76 61 74 65 .rightStickButton.{.get;.private
5c60 20 73 65 74 3b 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e .set;.}............///.<summary>
5c80 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 72 69 67 68 74 20 62 75 74 74 6f 6e 20 69 ..........///.The.right.button.i
5ca0 6e 20 74 68 65 20 6d 69 64 64 6c 65 20 73 65 63 74 69 6f 6e 20 6f 66 20 74 68 65 20 67 61 6d 65 n.the.middle.section.of.the.game
5cc0 70 61 64 20 28 63 61 6c 6c 65 64 20 22 6d 65 6e 75 22 20 6f 6e 20 58 62 6f 78 0d 0a 20 20 20 20 pad.(called."menu".on.Xbox......
5ce0 20 20 20 20 2f 2f 2f 20 63 6f 6e 74 72 6f 6c 6c 65 72 73 20 61 6e 64 20 22 6f 70 74 69 6f 6e 73 ....///.controllers.and."options
5d00 22 20 6f 6e 20 50 53 34 20 63 6f 6e 74 72 6f 6c 6c 65 72 73 29 2e 0d 0a 20 20 20 20 20 20 20 20 ".on.PS4.controllers)...........
5d20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c ///.</summary>..........///.<val
5d40 75 65 3e 43 6f 6e 74 72 6f 6c 20 72 65 70 72 65 73 65 6e 74 69 6e 67 20 74 68 65 20 72 69 67 68 ue>Control.representing.the.righ
5d60 74 20 62 75 74 74 6f 6e 20 69 6e 20 6d 69 64 73 65 63 74 69 6f 6e 2e 3c 2f 76 61 6c 75 65 3e 0d t.button.in.midsection.</value>.
5d80 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 42 75 74 74 6f 6e 43 6f 6e 74 72 6f 6c 20 73 74 .........public.ButtonControl.st
5da0 61 72 74 42 75 74 74 6f 6e 20 7b 20 67 65 74 3b 20 70 72 69 76 61 74 65 20 73 65 74 3b 20 7d 0d artButton.{.get;.private.set;.}.
5dc0 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 ...........///.<summary>........
5de0 20 20 2f 2f 2f 20 54 68 65 20 6c 65 66 74 20 62 75 74 74 6f 6e 20 69 6e 20 74 68 65 20 6d 69 64 ..///.The.left.button.in.the.mid
5e00 64 6c 65 20 73 65 63 74 69 6f 6e 20 6f 66 20 74 68 65 20 67 61 6d 65 70 61 64 20 28 63 61 6c 6c dle.section.of.the.gamepad.(call
5e20 65 64 20 22 76 69 65 77 22 20 6f 6e 20 58 62 6f 78 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 63 ed."view".on.Xbox..........///.c
5e40 6f 6e 74 72 6f 6c 6c 65 72 73 20 61 6e 64 20 22 73 68 61 72 65 22 20 6f 6e 20 50 53 34 20 63 6f ontrollers.and."share".on.PS4.co
5e60 6e 74 72 6f 6c 6c 65 72 73 29 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 ntrollers)...........///.</summa
5e80 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 43 6f 6e 74 72 6f 6c 20 ry>..........///.<value>Control.
5ea0 72 65 70 72 65 73 65 6e 74 69 6e 67 20 74 68 65 20 6c 65 66 74 20 62 75 74 74 6f 6e 20 69 6e 20 representing.the.left.button.in.
5ec0 6d 69 64 73 65 63 74 69 6f 6e 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 midsection.</value>..........pub
5ee0 6c 69 63 20 42 75 74 74 6f 6e 43 6f 6e 74 72 6f 6c 20 73 65 6c 65 63 74 42 75 74 74 6f 6e 20 7b lic.ButtonControl.selectButton.{
5f00 20 67 65 74 3b 20 70 72 69 76 61 74 65 20 73 65 74 3b 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 .get;.private.set;.}............
5f20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 34 ///.<summary>..........///.The.4
5f40 2d 77 61 79 20 64 69 72 65 63 74 69 6f 6e 61 6c 20 70 61 64 20 6f 6e 20 74 68 65 20 67 61 6d 65 -way.directional.pad.on.the.game
5f60 70 61 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 pad...........///.</summary>....
5f80 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 43 6f 6e 74 72 6f 6c 20 72 65 70 72 65 73 65 ......///.<value>Control.represe
5fa0 6e 74 69 6e 67 20 74 68 65 20 64 2d 70 61 64 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 nting.the.d-pad.</value>........
5fc0 20 20 70 75 62 6c 69 63 20 44 70 61 64 43 6f 6e 74 72 6f 6c 20 64 70 61 64 20 7b 20 67 65 74 3b ..public.DpadControl.dpad.{.get;
5fe0 20 70 72 69 76 61 74 65 20 73 65 74 3b 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c .private.set;.}............///.<
6000 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 6c 65 66 74 20 73 summary>..........///.The.left.s
6020 68 6f 75 6c 64 65 72 2f 62 75 6d 70 65 72 20 62 75 74 74 6f 6e 20 74 68 61 74 20 73 69 74 73 20 houlder/bumper.button.that.sits.
6040 6f 6e 20 74 6f 70 20 6f 66 20 3c 73 65 65 20 63 72 65 66 3d 22 6c 65 66 74 54 72 69 67 67 65 72 on.top.of.<see.cref="leftTrigger
6060 22 2f 3e 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 "/>...........///.</summary>....
6080 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 43 6f 6e 74 72 6f 6c 20 72 65 70 72 65 73 65 ......///.<value>Control.represe
60a0 6e 74 69 6e 67 20 74 68 65 20 6c 65 66 74 20 73 68 6f 75 6c 64 65 72 20 62 75 74 74 6f 6e 2e 3c nting.the.left.shoulder.button.<
60c0 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a /value>..........///.<remarks>..
60e0 20 20 20 20 20 20 20 20 2f 2f 2f 20 4f 6e 20 58 62 6f 78 20 63 6f 6e 74 72 6f 6c 6c 65 72 73 2c ........///.On.Xbox.controllers,
6100 20 74 68 69 73 20 69 73 20 75 73 75 61 6c 6c 79 20 63 61 6c 6c 65 64 20 22 6c 65 66 74 20 62 75 .this.is.usually.called."left.bu
6120 6d 70 65 72 22 20 77 68 65 72 65 61 73 20 6f 6e 20 50 53 34 0d 0a 20 20 20 20 20 20 20 20 2f 2f mper".whereas.on.PS4..........//
6140 2f 20 63 6f 6e 74 72 6f 6c 6c 65 72 73 2c 20 74 68 69 73 20 62 75 74 74 6f 6e 20 69 73 20 72 65 /.controllers,.this.button.is.re
6160 66 65 72 72 65 64 20 74 6f 20 61 73 20 22 4c 31 22 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 ferred.to.as."L1"...........///.
6180 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 42 75 74 74 6f </remarks>..........public.Butto
61a0 6e 43 6f 6e 74 72 6f 6c 20 6c 65 66 74 53 68 6f 75 6c 64 65 72 20 7b 20 67 65 74 3b 20 70 72 69 nControl.leftShoulder.{.get;.pri
61c0 76 61 74 65 20 73 65 74 3b 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d vate.set;.}............///.<summ
61e0 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 72 69 67 68 74 20 73 68 6f 75 ary>..........///.The.right.shou
6200 6c 64 65 72 2f 62 75 6d 70 65 72 20 62 75 74 74 6f 6e 20 74 68 61 74 20 73 69 74 73 20 6f 6e 20 lder/bumper.button.that.sits.on.
6220 74 6f 70 20 6f 66 20 3c 73 65 65 20 63 72 65 66 3d 22 72 69 67 68 74 54 72 69 67 67 65 72 22 2f top.of.<see.cref="rightTrigger"/
6240 3e 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 >...........///.</summary>......
6260 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 43 6f 6e 74 72 6f 6c 20 72 65 70 72 65 73 65 6e 74 ....///.<value>Control.represent
6280 69 6e 67 20 74 68 65 20 72 69 67 68 74 20 73 68 6f 75 6c 64 65 72 20 62 75 74 74 6f 6e 2e 3c 2f ing.the.right.shoulder.button.</
62a0 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 value>..........///.<remarks>...
62c0 20 20 20 20 20 20 20 2f 2f 2f 20 4f 6e 20 58 62 6f 78 20 63 6f 6e 74 72 6f 6c 6c 65 72 73 2c 20 .......///.On.Xbox.controllers,.
62e0 74 68 69 73 20 69 73 20 75 73 75 61 6c 6c 79 20 63 61 6c 6c 65 64 20 22 72 69 67 68 74 20 62 75 this.is.usually.called."right.bu
6300 6d 70 65 72 22 20 77 68 65 72 65 61 73 20 6f 6e 20 50 53 34 0d 0a 20 20 20 20 20 20 20 20 2f 2f mper".whereas.on.PS4..........//
6320 2f 20 63 6f 6e 74 72 6f 6c 6c 65 72 73 2c 20 74 68 69 73 20 62 75 74 74 6f 6e 20 69 73 20 72 65 /.controllers,.this.button.is.re
6340 66 65 72 72 65 64 20 74 6f 20 61 73 20 22 52 31 22 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 ferred.to.as."R1"...........///.
6360 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 42 75 74 74 6f </remarks>..........public.Butto
6380 6e 43 6f 6e 74 72 6f 6c 20 72 69 67 68 74 53 68 6f 75 6c 64 65 72 20 7b 20 67 65 74 3b 20 70 72 nControl.rightShoulder.{.get;.pr
63a0 69 76 61 74 65 20 73 65 74 3b 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d ivate.set;.}............///.<sum
63c0 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 6c 65 66 74 20 74 68 75 6d mary>..........///.The.left.thum
63e0 62 73 74 69 63 6b 20 6f 6e 20 74 68 65 20 67 61 6d 65 70 61 64 2e 0d 0a 20 20 20 20 20 20 20 20 bstick.on.the.gamepad...........
6400 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c ///.</summary>..........///.<val
6420 75 65 3e 43 6f 6e 74 72 6f 6c 20 72 65 70 72 65 73 65 6e 74 69 6e 67 20 74 68 65 20 6c 65 66 74 ue>Control.representing.the.left
6440 20 74 68 75 6d 62 73 74 69 63 6b 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 .thumbstick.</value>..........pu
6460 62 6c 69 63 20 53 74 69 63 6b 43 6f 6e 74 72 6f 6c 20 6c 65 66 74 53 74 69 63 6b 20 7b 20 67 65 blic.StickControl.leftStick.{.ge
6480 74 3b 20 70 72 69 76 61 74 65 20 73 65 74 3b 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f t;.private.set;.}............///
64a0 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 72 69 67 68 .<summary>..........///.The.righ
64c0 74 20 74 68 75 6d 62 73 74 69 63 6b 20 6f 6e 20 74 68 65 20 67 61 6d 65 70 61 64 2e 0d 0a 20 20 t.thumbstick.on.the.gamepad.....
64e0 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f ......///.</summary>..........//
6500 2f 20 3c 76 61 6c 75 65 3e 43 6f 6e 74 72 6f 6c 20 72 65 70 72 65 73 65 6e 74 69 6e 67 20 74 68 /.<value>Control.representing.th
6520 65 20 72 69 67 68 74 20 74 68 75 6d 62 73 74 69 63 6b 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 e.right.thumbstick.</value>.....
6540 20 20 20 20 20 70 75 62 6c 69 63 20 53 74 69 63 6b 43 6f 6e 74 72 6f 6c 20 72 69 67 68 74 53 74 .....public.StickControl.rightSt
6560 69 63 6b 20 7b 20 67 65 74 3b 20 70 72 69 76 61 74 65 20 73 65 74 3b 20 7d 0d 0a 0d 0a 20 20 20 ick.{.get;.private.set;.}.......
6580 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 .....///.<summary>..........///.
65a0 54 68 65 20 6c 65 66 74 20 74 72 69 67 67 65 72 20 62 75 74 74 6f 6e 20 73 69 74 74 69 6e 67 20 The.left.trigger.button.sitting.
65c0 62 65 6c 6f 77 20 3c 73 65 65 20 63 72 65 66 3d 22 6c 65 66 74 53 68 6f 75 6c 64 65 72 22 2f 3e below.<see.cref="leftShoulder"/>
65e0 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>.......
6600 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 43 6f 6e 74 72 6f 6c 20 72 65 70 72 65 73 65 6e 74 69 ...///.<value>Control.representi
6620 6e 67 20 74 68 65 20 6c 65 66 74 20 74 72 69 67 67 65 72 20 62 75 74 74 6f 6e 2e 3c 2f 76 61 6c ng.the.left.trigger.button.</val
6640 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 ue>..........///.<remarks>......
6660 20 20 20 20 2f 2f 2f 20 4f 6e 20 50 53 34 20 63 6f 6e 74 72 6f 6c 6c 65 72 73 2c 20 74 68 69 73 ....///.On.PS4.controllers,.this
6680 20 62 75 74 74 6f 6e 20 69 73 20 72 65 66 65 72 72 65 64 20 74 6f 20 61 73 20 22 4c 32 22 2e 0d .button.is.referred.to.as."L2"..
66a0 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 .........///.</remarks>.........
66c0 20 70 75 62 6c 69 63 20 42 75 74 74 6f 6e 43 6f 6e 74 72 6f 6c 20 6c 65 66 74 54 72 69 67 67 65 .public.ButtonControl.leftTrigge
66e0 72 20 7b 20 67 65 74 3b 20 70 72 69 76 61 74 65 20 73 65 74 3b 20 7d 0d 0a 0d 0a 20 20 20 20 20 r.{.get;.private.set;.}.........
6700 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 ...///.<summary>..........///.Th
6720 65 20 72 69 67 68 74 20 74 72 69 67 67 65 72 20 62 75 74 74 6f 6e 20 73 69 74 74 69 6e 67 20 62 e.right.trigger.button.sitting.b
6740 65 6c 6f 77 20 3c 73 65 65 20 63 72 65 66 3d 22 72 69 67 68 74 53 68 6f 75 6c 64 65 72 22 2f 3e elow.<see.cref="rightShoulder"/>
6760 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>.......
6780 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 43 6f 6e 74 72 6f 6c 20 72 65 70 72 65 73 65 6e 74 69 ...///.<value>Control.representi
67a0 6e 67 20 74 68 65 20 72 69 67 68 74 20 74 72 69 67 67 65 72 20 62 75 74 74 6f 6e 2e 3c 2f 76 61 ng.the.right.trigger.button.</va
67c0 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 lue>..........///.<remarks>.....
67e0 20 20 20 20 20 2f 2f 2f 20 4f 6e 20 50 53 34 20 63 6f 6e 74 72 6f 6c 6c 65 72 73 2c 20 74 68 69 .....///.On.PS4.controllers,.thi
6800 73 20 62 75 74 74 6f 6e 20 69 73 20 72 65 66 65 72 72 65 64 20 74 6f 20 61 73 20 22 52 32 22 2e s.button.is.referred.to.as."R2".
6820 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 ..........///.</remarks>........
6840 20 20 70 75 62 6c 69 63 20 42 75 74 74 6f 6e 43 6f 6e 74 72 6f 6c 20 72 69 67 68 74 54 72 69 67 ..public.ButtonControl.rightTrig
6860 67 65 72 20 7b 20 67 65 74 3b 20 70 72 69 76 61 74 65 20 73 65 74 3b 20 7d 0d 0a 0d 0a 20 20 20 ger.{.get;.private.set;.}.......
6880 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 .....///.<summary>..........///.
68a0 53 61 6d 65 20 61 73 20 3c 73 65 65 20 63 72 65 66 3d 22 62 75 74 74 6f 6e 53 6f 75 74 68 22 2f Same.as.<see.cref="buttonSouth"/
68c0 3e 2e 20 58 62 6f 78 2d 73 74 79 6c 65 20 61 6c 69 61 73 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f >..Xbox-style.alias...........//
68e0 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 /.</summary>..........///.<value
6900 3e 53 61 6d 65 20 61 73 20 3c 73 65 65 20 63 72 65 66 3d 22 62 75 74 74 6f 6e 53 6f 75 74 68 22 >Same.as.<see.cref="buttonSouth"
6920 2f 3e 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 42 75 74 74 />.</value>..........public.Butt
6940 6f 6e 43 6f 6e 74 72 6f 6c 20 61 42 75 74 74 6f 6e 20 3d 3e 20 62 75 74 74 6f 6e 53 6f 75 74 68 onControl.aButton.=>.buttonSouth
6960 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 ;............///.<summary>......
6980 20 20 20 20 2f 2f 2f 20 53 61 6d 65 20 61 73 20 3c 73 65 65 20 63 72 65 66 3d 22 62 75 74 74 6f ....///.Same.as.<see.cref="butto
69a0 6e 45 61 73 74 22 2f 3e 2e 20 58 62 6f 78 2d 73 74 79 6c 65 20 61 6c 69 61 73 2e 0d 0a 20 20 20 nEast"/>..Xbox-style.alias......
69c0 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f .....///.</summary>..........///
69e0 20 3c 76 61 6c 75 65 3e 53 61 6d 65 20 61 73 20 3c 73 65 65 20 63 72 65 66 3d 22 62 75 74 74 6f .<value>Same.as.<see.cref="butto
6a00 6e 45 61 73 74 22 2f 3e 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 nEast"/>.</value>..........publi
6a20 63 20 42 75 74 74 6f 6e 43 6f 6e 74 72 6f 6c 20 62 42 75 74 74 6f 6e 20 3d 3e 20 62 75 74 74 6f c.ButtonControl.bButton.=>.butto
6a40 6e 45 61 73 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d nEast;............///.<summary>.
6a60 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 53 61 6d 65 20 61 73 20 3c 73 65 65 20 63 72 65 66 3d 22 .........///.Same.as.<see.cref="
6a80 62 75 74 74 6f 6e 57 65 73 74 22 2f 3e 20 58 62 6f 78 2d 73 74 79 6c 65 20 61 6c 69 61 73 2e 0d buttonWest"/>.Xbox-style.alias..
6aa0 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 .........///.</summary>.........
6ac0 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 53 61 6d 65 20 61 73 20 3c 73 65 65 20 63 72 65 66 3d 22 62 .///.<value>Same.as.<see.cref="b
6ae0 75 74 74 6f 6e 57 65 73 74 22 2f 3e 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 70 uttonWest"/>.</value>..........p
6b00 75 62 6c 69 63 20 42 75 74 74 6f 6e 43 6f 6e 74 72 6f 6c 20 78 42 75 74 74 6f 6e 20 3d 3e 20 62 ublic.ButtonControl.xButton.=>.b
6b20 75 74 74 6f 6e 57 65 73 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 uttonWest;............///.<summa
6b40 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 53 61 6d 65 20 61 73 20 3c 73 65 65 20 63 72 ry>..........///.Same.as.<see.cr
6b60 65 66 3d 22 62 75 74 74 6f 6e 4e 6f 72 74 68 22 2f 3e 2e 20 58 62 6f 78 2d 73 74 79 6c 65 20 61 ef="buttonNorth"/>..Xbox-style.a
6b80 6c 69 61 73 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 lias...........///.</summary>...
6ba0 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 53 61 6d 65 20 61 73 20 3c 73 65 65 20 63 .......///.<value>Same.as.<see.c
6bc0 72 65 66 3d 22 62 75 74 74 6f 6e 4e 6f 72 74 68 22 2f 3e 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 ref="buttonNorth"/>.</value>....
6be0 20 20 20 20 20 20 70 75 62 6c 69 63 20 42 75 74 74 6f 6e 43 6f 6e 74 72 6f 6c 20 79 42 75 74 74 ......public.ButtonControl.yButt
6c00 6f 6e 20 3d 3e 20 62 75 74 74 6f 6e 4e 6f 72 74 68 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f on.=>.buttonNorth;............//
6c20 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 53 61 6d 65 20 61 73 /.<summary>..........///.Same.as
6c40 20 3c 73 65 65 20 63 72 65 66 3d 22 62 75 74 74 6f 6e 4e 6f 72 74 68 22 2f 3e 2e 20 50 53 34 2d .<see.cref="buttonNorth"/>..PS4-
6c60 73 74 79 6c 65 20 61 6c 69 61 73 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d style.alias...........///.</summ
6c80 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 53 61 6d 65 20 61 73 ary>..........///.<value>Same.as
6ca0 20 3c 73 65 65 20 63 72 65 66 3d 22 62 75 74 74 6f 6e 4e 6f 72 74 68 22 2f 3e 2e 3c 2f 76 61 6c .<see.cref="buttonNorth"/>.</val
6cc0 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 42 75 74 74 6f 6e 43 6f 6e 74 72 6f ue>..........public.ButtonContro
6ce0 6c 20 74 72 69 61 6e 67 6c 65 42 75 74 74 6f 6e 20 3d 3e 20 62 75 74 74 6f 6e 4e 6f 72 74 68 3b l.triangleButton.=>.buttonNorth;
6d00 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 ............///.<summary>.......
6d20 20 20 20 2f 2f 2f 20 53 61 6d 65 20 61 73 20 3c 73 65 65 20 63 72 65 66 3d 22 62 75 74 74 6f 6e ...///.Same.as.<see.cref="button
6d40 57 65 73 74 22 2f 3e 2e 20 50 53 34 2d 73 74 79 6c 65 20 61 6c 69 61 73 2e 0d 0a 20 20 20 20 20 West"/>..PS4-style.alias........
6d60 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c ...///.</summary>..........///.<
6d80 76 61 6c 75 65 3e 53 61 6d 65 20 61 73 20 3c 73 65 65 20 63 72 65 66 3d 22 62 75 74 74 6f 6e 57 value>Same.as.<see.cref="buttonW
6da0 65 73 74 22 2f 3e 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 est"/>.</value>..........public.
6dc0 42 75 74 74 6f 6e 43 6f 6e 74 72 6f 6c 20 73 71 75 61 72 65 42 75 74 74 6f 6e 20 3d 3e 20 62 75 ButtonControl.squareButton.=>.bu
6de0 74 74 6f 6e 57 65 73 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 ttonWest;............///.<summar
6e00 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 53 61 6d 65 20 61 73 20 3c 73 65 65 20 63 72 65 y>..........///.Same.as.<see.cre
6e20 66 3d 22 62 75 74 74 6f 6e 45 61 73 74 22 2f 3e 2e 20 50 53 34 2d 73 74 79 6c 65 20 61 6c 69 61 f="buttonEast"/>..PS4-style.alia
6e40 73 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 s...........///.</summary>......
6e60 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 53 61 6d 65 20 61 73 20 3c 73 65 65 20 63 72 65 66 ....///.<value>Same.as.<see.cref
6e80 3d 22 62 75 74 74 6f 6e 45 61 73 74 22 2f 3e 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 ="buttonEast"/>.</value>........
6ea0 20 20 70 75 62 6c 69 63 20 42 75 74 74 6f 6e 43 6f 6e 74 72 6f 6c 20 63 69 72 63 6c 65 42 75 74 ..public.ButtonControl.circleBut
6ec0 74 6f 6e 20 3d 3e 20 62 75 74 74 6f 6e 45 61 73 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f ton.=>.buttonEast;............//
6ee0 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 53 61 6d 65 20 61 73 /.<summary>..........///.Same.as
6f00 20 3c 73 65 65 20 63 72 65 66 3d 22 62 75 74 74 6f 6e 53 6f 75 74 68 22 2f 3e 2e 20 50 53 34 2d .<see.cref="buttonSouth"/>..PS4-
6f20 73 74 79 6c 65 20 61 6c 69 61 73 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d style.alias...........///.</summ
6f40 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 53 61 6d 65 20 61 73 ary>..........///.<value>Same.as
6f60 20 3c 73 65 65 20 63 72 65 66 3d 22 62 75 74 74 6f 6e 53 6f 75 74 68 22 2f 3e 2e 3c 2f 76 61 6c .<see.cref="buttonSouth"/>.</val
6f80 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 42 75 74 74 6f 6e 43 6f 6e 74 72 6f ue>..........public.ButtonContro
6fa0 6c 20 63 72 6f 73 73 42 75 74 74 6f 6e 20 3d 3e 20 62 75 74 74 6f 6e 53 6f 75 74 68 3b 0d 0a 0d l.crossButton.=>.buttonSouth;...
6fc0 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>..........
6fe0 2f 2f 2f 20 52 65 74 72 69 65 76 65 20 61 20 67 61 6d 65 70 61 64 20 62 75 74 74 6f 6e 20 62 79 ///.Retrieve.a.gamepad.button.by
7000 20 69 74 73 20 3c 73 65 65 20 63 72 65 66 3d 22 47 61 6d 65 70 61 64 42 75 74 74 6f 6e 22 2f 3e .its.<see.cref="GamepadButton"/>
7020 20 65 6e 75 6d 65 72 61 74 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 63 6f 6e 73 74 61 .enumeration..........///.consta
7040 6e 74 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 nt...........///.</summary>.....
7060 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 62 75 74 74 6f 6e 22 3e 42 75 .....///.<param.name="button">Bu
7080 74 74 6f 6e 20 74 6f 20 72 65 74 72 69 65 76 65 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 tton.to.retrieve.</param>.......
70a0 20 20 20 2f 2f 2f 20 3c 65 78 63 65 70 74 69 6f 6e 20 63 72 65 66 3d 22 49 6e 76 61 6c 69 64 45 ...///.<exception.cref="InvalidE
70c0 6e 75 6d 41 72 67 75 6d 65 6e 74 45 78 63 65 70 74 69 6f 6e 22 3e 3c 70 61 72 61 6d 72 65 66 20 numArgumentException"><paramref.
70e0 6e 61 6d 65 3d 22 62 75 74 74 6f 6e 22 2f 3e 20 69 73 20 6e 6f 74 20 61 20 76 61 6c 69 64 20 67 name="button"/>.is.not.a.valid.g
7100 61 6d 65 70 61 64 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 62 75 74 74 6f 6e 20 76 61 6c 75 65 amepad..........///.button.value
7120 2e 3c 2f 65 78 63 65 70 74 69 6f 6e 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 42 75 .</exception>..........public.Bu
7140 74 74 6f 6e 43 6f 6e 74 72 6f 6c 20 74 68 69 73 5b 47 61 6d 65 70 61 64 42 75 74 74 6f 6e 20 62 ttonControl.this[GamepadButton.b
7160 75 74 74 6f 6e 5d 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 utton]..........{..............g
7180 65 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 et..............{...............
71a0 20 20 20 73 77 69 74 63 68 20 28 62 75 74 74 6f 6e 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ...switch.(button)..............
71c0 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 63 61 73 65 20 ....{......................case.
71e0 47 61 6d 65 70 61 64 42 75 74 74 6f 6e 2e 4e 6f 72 74 68 3a 20 72 65 74 75 72 6e 20 62 75 74 74 GamepadButton.North:.return.butt
7200 6f 6e 4e 6f 72 74 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 onNorth;......................ca
7220 73 65 20 47 61 6d 65 70 61 64 42 75 74 74 6f 6e 2e 53 6f 75 74 68 3a 20 72 65 74 75 72 6e 20 62 se.GamepadButton.South:.return.b
7240 75 74 74 6f 6e 53 6f 75 74 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 uttonSouth;.....................
7260 20 63 61 73 65 20 47 61 6d 65 70 61 64 42 75 74 74 6f 6e 2e 45 61 73 74 3a 20 72 65 74 75 72 6e .case.GamepadButton.East:.return
7280 20 62 75 74 74 6f 6e 45 61 73 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .buttonEast;....................
72a0 20 20 63 61 73 65 20 47 61 6d 65 70 61 64 42 75 74 74 6f 6e 2e 57 65 73 74 3a 20 72 65 74 75 72 ..case.GamepadButton.West:.retur
72c0 6e 20 62 75 74 74 6f 6e 57 65 73 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 n.buttonWest;...................
72e0 20 20 20 63 61 73 65 20 47 61 6d 65 70 61 64 42 75 74 74 6f 6e 2e 53 74 61 72 74 3a 20 72 65 74 ...case.GamepadButton.Start:.ret
7300 75 72 6e 20 73 74 61 72 74 42 75 74 74 6f 6e 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 urn.startButton;................
7320 20 20 20 20 20 20 63 61 73 65 20 47 61 6d 65 70 61 64 42 75 74 74 6f 6e 2e 53 65 6c 65 63 74 3a ......case.GamepadButton.Select:
7340 20 72 65 74 75 72 6e 20 73 65 6c 65 63 74 42 75 74 74 6f 6e 3b 0d 0a 20 20 20 20 20 20 20 20 20 .return.selectButton;...........
7360 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 47 61 6d 65 70 61 64 42 75 74 74 6f 6e 2e 4c 65 ...........case.GamepadButton.Le
7380 66 74 53 68 6f 75 6c 64 65 72 3a 20 72 65 74 75 72 6e 20 6c 65 66 74 53 68 6f 75 6c 64 65 72 3b ftShoulder:.return.leftShoulder;
73a0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 47 61 6d 65 70 ......................case.Gamep
73c0 61 64 42 75 74 74 6f 6e 2e 52 69 67 68 74 53 68 6f 75 6c 64 65 72 3a 20 72 65 74 75 72 6e 20 72 adButton.RightShoulder:.return.r
73e0 69 67 68 74 53 68 6f 75 6c 64 65 72 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ightShoulder;...................
7400 20 20 20 63 61 73 65 20 47 61 6d 65 70 61 64 42 75 74 74 6f 6e 2e 4c 65 66 74 54 72 69 67 67 65 ...case.GamepadButton.LeftTrigge
7420 72 3a 20 72 65 74 75 72 6e 20 6c 65 66 74 54 72 69 67 67 65 72 3b 0d 0a 20 20 20 20 20 20 20 20 r:.return.leftTrigger;..........
7440 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 47 61 6d 65 70 61 64 42 75 74 74 6f 6e 2e 52 ............case.GamepadButton.R
7460 69 67 68 74 54 72 69 67 67 65 72 3a 20 72 65 74 75 72 6e 20 72 69 67 68 74 54 72 69 67 67 65 72 ightTrigger:.return.rightTrigger
7480 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 47 61 6d 65 ;......................case.Game
74a0 70 61 64 42 75 74 74 6f 6e 2e 4c 65 66 74 53 74 69 63 6b 3a 20 72 65 74 75 72 6e 20 6c 65 66 74 padButton.LeftStick:.return.left
74c0 53 74 69 63 6b 42 75 74 74 6f 6e 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 StickButton;....................
74e0 20 20 63 61 73 65 20 47 61 6d 65 70 61 64 42 75 74 74 6f 6e 2e 52 69 67 68 74 53 74 69 63 6b 3a ..case.GamepadButton.RightStick:
7500 20 72 65 74 75 72 6e 20 72 69 67 68 74 53 74 69 63 6b 42 75 74 74 6f 6e 3b 0d 0a 20 20 20 20 20 .return.rightStickButton;.......
7520 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 47 61 6d 65 70 61 64 42 75 74 74 6f ...............case.GamepadButto
7540 6e 2e 44 70 61 64 55 70 3a 20 72 65 74 75 72 6e 20 64 70 61 64 2e 75 70 3b 0d 0a 20 20 20 20 20 n.DpadUp:.return.dpad.up;.......
7560 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 47 61 6d 65 70 61 64 42 75 74 74 6f ...............case.GamepadButto
7580 6e 2e 44 70 61 64 44 6f 77 6e 3a 20 72 65 74 75 72 6e 20 64 70 61 64 2e 64 6f 77 6e 3b 0d 0a 20 n.DpadDown:.return.dpad.down;...
75a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 47 61 6d 65 70 61 64 42 ...................case.GamepadB
75c0 75 74 74 6f 6e 2e 44 70 61 64 4c 65 66 74 3a 20 72 65 74 75 72 6e 20 64 70 61 64 2e 6c 65 66 74 utton.DpadLeft:.return.dpad.left
75e0 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 47 61 6d 65 ;......................case.Game
7600 70 61 64 42 75 74 74 6f 6e 2e 44 70 61 64 52 69 67 68 74 3a 20 72 65 74 75 72 6e 20 64 70 61 64 padButton.DpadRight:.return.dpad
7620 2e 72 69 67 68 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 65 66 .right;......................def
7640 61 75 6c 74 3a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 ault:..........................t
7660 68 72 6f 77 20 6e 65 77 20 49 6e 76 61 6c 69 64 45 6e 75 6d 41 72 67 75 6d 65 6e 74 45 78 63 65 hrow.new.InvalidEnumArgumentExce
7680 70 74 69 6f 6e 28 6e 61 6d 65 6f 66 28 62 75 74 74 6f 6e 29 2c 20 28 69 6e 74 29 62 75 74 74 6f ption(nameof(button),.(int)butto
76a0 6e 2c 20 74 79 70 65 6f 66 28 47 61 6d 65 70 61 64 42 75 74 74 6f 6e 29 29 3b 0d 0a 20 20 20 20 n,.typeof(GamepadButton));......
76c0 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 ............}..............}....
76e0 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e ......}............///.<summary>
7700 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 67 61 6d 65 70 61 64 20 6c 61 73 74 20 75 ..........///.The.gamepad.last.u
7720 73 65 64 2f 63 6f 6e 6e 65 63 74 65 64 20 62 79 20 74 68 65 20 70 6c 61 79 65 72 20 6f 72 20 3c sed/connected.by.the.player.or.<
7740 63 3e 6e 75 6c 6c 3c 2f 63 3e 20 69 66 20 74 68 65 72 65 20 69 73 20 6e 6f 20 67 61 6d 65 70 61 c>null</c>.if.there.is.no.gamepa
7760 64 20 63 6f 6e 6e 65 63 74 65 64 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 6f 20 74 68 65 20 d.connected..........///.to.the.
7780 73 79 73 74 65 6d 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d system...........///.</summary>.
77a0 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 .........///.<seealso.cref="Inpu
77c0 74 53 65 74 74 69 6e 67 73 2e 66 69 6c 74 65 72 4e 6f 69 73 65 4f 6e 43 75 72 72 65 6e 74 22 2f tSettings.filterNoiseOnCurrent"/
77e0 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e >..........///.<seealso.cref="In
7800 70 75 74 44 65 76 69 63 65 2e 4d 61 6b 65 43 75 72 72 65 6e 74 22 2f 3e 0d 0a 20 20 20 20 20 20 putDevice.MakeCurrent"/>........
7820 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 61 6c 6c 22 2f 3e 0d 0a 20 20 20 ..///.<seealso.cref="all"/>.....
7840 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 47 61 6d 65 70 61 64 20 63 75 72 72 65 .....public.static.Gamepad.curre
7860 6e 74 20 7b 20 67 65 74 3b 20 70 72 69 76 61 74 65 20 73 65 74 3b 20 7d 0d 0a 0d 0a 20 20 20 20 nt.{.get;.private.set;.}........
7880 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 41 ....///.<summary>..........///.A
78a0 20 6c 69 73 74 20 6f 66 20 67 61 6d 65 70 61 64 73 20 63 75 72 72 65 6e 74 6c 79 20 63 6f 6e 6e .list.of.gamepads.currently.conn
78c0 65 63 74 65 64 20 74 6f 20 74 68 65 20 73 79 73 74 65 6d 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f ected.to.the.system...........//
78e0 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 /.</summary>..........///.<value
7900 3e 41 6c 6c 20 63 75 72 72 65 6e 74 6c 79 20 63 6f 6e 6e 65 63 74 65 64 20 67 61 6d 65 70 61 64 >All.currently.connected.gamepad
7920 73 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 s.</value>..........///.<remarks
7940 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 44 6f 65 73 20 6e 6f 74 20 63 61 75 73 65 20 47 43 >..........///.Does.not.cause.GC
7960 20 61 6c 6c 6f 63 61 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 .allocation...........///.......
7980 20 20 20 2f 2f 2f 20 44 6f 20 3c 65 6d 3e 6e 6f 74 3c 2f 65 6d 3e 20 68 6f 6c 64 20 6f 6e 20 74 ...///.Do.<em>not</em>.hold.on.t
79a0 6f 20 74 68 65 20 76 61 6c 75 65 20 72 65 74 75 72 6e 65 64 20 62 79 20 74 68 69 73 20 67 65 74 o.the.value.returned.by.this.get
79c0 74 65 72 20 62 75 74 20 72 61 74 68 65 72 20 71 75 65 72 79 20 69 74 20 77 68 65 6e 65 76 65 72 ter.but.rather.query.it.whenever
79e0 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 79 6f 75 20 6e 65 65 64 20 69 74 2e 20 57 68 65 6e 65 ..........///.you.need.it..Whene
7a00 76 65 72 20 74 68 65 20 67 61 6d 65 70 61 64 20 73 65 74 75 70 20 63 68 61 6e 67 65 73 2c 20 74 ver.the.gamepad.setup.changes,.t
7a20 68 65 20 76 61 6c 75 65 20 72 65 74 75 72 6e 65 64 20 62 79 20 74 68 69 73 20 67 65 74 74 65 72 he.value.returned.by.this.getter
7a40 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 69 73 20 69 6e 76 61 6c 69 64 61 74 65 64 2e 0d 0a 20 ..........///.is.invalidated....
7a60 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f .......///.</remarks>........../
7a80 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 63 75 72 72 65 6e 74 22 2f 3e 0d 0a 20 20 //.<seealso.cref="current"/>....
7aa0 20 20 20 20 20 20 70 75 62 6c 69 63 20 6e 65 77 20 73 74 61 74 69 63 20 52 65 61 64 4f 6e 6c 79 ......public.new.static.ReadOnly
7ac0 41 72 72 61 79 3c 47 61 6d 65 70 61 64 3e 20 61 6c 6c 20 3d 3e 20 6e 65 77 20 52 65 61 64 4f 6e Array<Gamepad>.all.=>.new.ReadOn
7ae0 6c 79 41 72 72 61 79 3c 47 61 6d 65 70 61 64 3e 28 73 5f 47 61 6d 65 70 61 64 73 2c 20 30 2c 20 lyArray<Gamepad>(s_Gamepads,.0,.
7b00 73 5f 47 61 6d 65 70 61 64 43 6f 75 6e 74 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 s_GamepadCount);............///.
7b20 3c 69 6e 68 65 72 69 74 64 6f 63 20 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 <inheritdoc./>..........protecte
7b40 64 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 46 69 6e 69 73 68 53 65 74 75 70 28 29 0d 0a 20 d.override.void.FinishSetup()...
7b60 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 52 45 56 49 45 57 .......{..............////REVIEW
7b80 3a 20 77 68 61 74 27 73 20 61 63 74 75 61 6c 6c 79 20 66 61 73 74 65 72 2f 62 65 74 74 65 72 2e :.what's.actually.faster/better.
7ba0 2e 2e 20 73 74 6f 72 69 6e 67 20 74 68 65 73 65 20 69 6e 20 70 72 6f 70 65 72 74 69 65 73 20 6f ...storing.these.in.properties.o
7bc0 72 20 64 6f 69 6e 67 20 74 68 65 20 6c 6f 6f 6b 75 70 20 6f 6e 20 74 68 65 20 66 6c 79 3f 0d 0a r.doing.the.lookup.on.the.fly?..
7be0 20 20 20 20 20 20 20 20 20 20 20 20 62 75 74 74 6f 6e 57 65 73 74 20 3d 20 47 65 74 43 68 69 6c ............buttonWest.=.GetChil
7c00 64 43 6f 6e 74 72 6f 6c 3c 42 75 74 74 6f 6e 43 6f 6e 74 72 6f 6c 3e 28 22 62 75 74 74 6f 6e 57 dControl<ButtonControl>("buttonW
7c20 65 73 74 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 62 75 74 74 6f 6e 4e 6f 72 74 68 20 est");..............buttonNorth.
7c40 3d 20 47 65 74 43 68 69 6c 64 43 6f 6e 74 72 6f 6c 3c 42 75 74 74 6f 6e 43 6f 6e 74 72 6f 6c 3e =.GetChildControl<ButtonControl>
7c60 28 22 62 75 74 74 6f 6e 4e 6f 72 74 68 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 62 75 ("buttonNorth");..............bu
7c80 74 74 6f 6e 53 6f 75 74 68 20 3d 20 47 65 74 43 68 69 6c 64 43 6f 6e 74 72 6f 6c 3c 42 75 74 74 ttonSouth.=.GetChildControl<Butt
7ca0 6f 6e 43 6f 6e 74 72 6f 6c 3e 28 22 62 75 74 74 6f 6e 53 6f 75 74 68 22 29 3b 0d 0a 20 20 20 20 onControl>("buttonSouth");......
7cc0 20 20 20 20 20 20 20 20 62 75 74 74 6f 6e 45 61 73 74 20 3d 20 47 65 74 43 68 69 6c 64 43 6f 6e ........buttonEast.=.GetChildCon
7ce0 74 72 6f 6c 3c 42 75 74 74 6f 6e 43 6f 6e 74 72 6f 6c 3e 28 22 62 75 74 74 6f 6e 45 61 73 74 22 trol<ButtonControl>("buttonEast"
7d00 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 74 61 72 74 42 75 74 74 6f 6e 20 3d 20 );................startButton.=.
7d20 47 65 74 43 68 69 6c 64 43 6f 6e 74 72 6f 6c 3c 42 75 74 74 6f 6e 43 6f 6e 74 72 6f 6c 3e 28 22 GetChildControl<ButtonControl>("
7d40 73 74 61 72 74 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 42 75 74 74 start");..............selectButt
7d60 6f 6e 20 3d 20 47 65 74 43 68 69 6c 64 43 6f 6e 74 72 6f 6c 3c 42 75 74 74 6f 6e 43 6f 6e 74 72 on.=.GetChildControl<ButtonContr
7d80 6f 6c 3e 28 22 73 65 6c 65 63 74 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6c 65 ol>("select");................le
7da0 66 74 53 74 69 63 6b 42 75 74 74 6f 6e 20 3d 20 47 65 74 43 68 69 6c 64 43 6f 6e 74 72 6f 6c 3c ftStickButton.=.GetChildControl<
7dc0 42 75 74 74 6f 6e 43 6f 6e 74 72 6f 6c 3e 28 22 6c 65 66 74 53 74 69 63 6b 50 72 65 73 73 22 29 ButtonControl>("leftStickPress")
7de0 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 69 67 68 74 53 74 69 63 6b 42 75 74 74 6f 6e 20 ;..............rightStickButton.
7e00 3d 20 47 65 74 43 68 69 6c 64 43 6f 6e 74 72 6f 6c 3c 42 75 74 74 6f 6e 43 6f 6e 74 72 6f 6c 3e =.GetChildControl<ButtonControl>
7e20 28 22 72 69 67 68 74 53 74 69 63 6b 50 72 65 73 73 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 ("rightStickPress");............
7e40 20 20 20 20 64 70 61 64 20 3d 20 47 65 74 43 68 69 6c 64 43 6f 6e 74 72 6f 6c 3c 44 70 61 64 43 ....dpad.=.GetChildControl<DpadC
7e60 6f 6e 74 72 6f 6c 3e 28 22 64 70 61 64 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ontrol>("dpad");................
7e80 6c 65 66 74 53 68 6f 75 6c 64 65 72 20 3d 20 47 65 74 43 68 69 6c 64 43 6f 6e 74 72 6f 6c 3c 42 leftShoulder.=.GetChildControl<B
7ea0 75 74 74 6f 6e 43 6f 6e 74 72 6f 6c 3e 28 22 6c 65 66 74 53 68 6f 75 6c 64 65 72 22 29 3b 0d 0a uttonControl>("leftShoulder");..
7ec0 20 20 20 20 20 20 20 20 20 20 20 20 72 69 67 68 74 53 68 6f 75 6c 64 65 72 20 3d 20 47 65 74 43 ............rightShoulder.=.GetC
7ee0 68 69 6c 64 43 6f 6e 74 72 6f 6c 3c 42 75 74 74 6f 6e 43 6f 6e 74 72 6f 6c 3e 28 22 72 69 67 68 hildControl<ButtonControl>("righ
7f00 74 53 68 6f 75 6c 64 65 72 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6c 65 66 74 tShoulder");................left
7f20 53 74 69 63 6b 20 3d 20 47 65 74 43 68 69 6c 64 43 6f 6e 74 72 6f 6c 3c 53 74 69 63 6b 43 6f 6e Stick.=.GetChildControl<StickCon
7f40 74 72 6f 6c 3e 28 22 6c 65 66 74 53 74 69 63 6b 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 trol>("leftStick");.............
7f60 20 72 69 67 68 74 53 74 69 63 6b 20 3d 20 47 65 74 43 68 69 6c 64 43 6f 6e 74 72 6f 6c 3c 53 74 .rightStick.=.GetChildControl<St
7f80 69 63 6b 43 6f 6e 74 72 6f 6c 3e 28 22 72 69 67 68 74 53 74 69 63 6b 22 29 3b 0d 0a 0d 0a 20 20 ickControl>("rightStick");......
7fa0 20 20 20 20 20 20 20 20 20 20 6c 65 66 74 54 72 69 67 67 65 72 20 3d 20 47 65 74 43 68 69 6c 64 ..........leftTrigger.=.GetChild
7fc0 43 6f 6e 74 72 6f 6c 3c 42 75 74 74 6f 6e 43 6f 6e 74 72 6f 6c 3e 28 22 6c 65 66 74 54 72 69 67 Control<ButtonControl>("leftTrig
7fe0 67 65 72 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 69 67 68 74 54 72 69 67 67 65 72 ger");..............rightTrigger
8000 20 3d 20 47 65 74 43 68 69 6c 64 43 6f 6e 74 72 6f 6c 3c 42 75 74 74 6f 6e 43 6f 6e 74 72 6f 6c .=.GetChildControl<ButtonControl
8020 3e 28 22 72 69 67 68 74 54 72 69 67 67 65 72 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 >("rightTrigger");..............
8040 20 20 62 61 73 65 2e 46 69 6e 69 73 68 53 65 74 75 70 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d ..base.FinishSetup();..........}
8060 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 ............///.<summary>.......
8080 20 20 20 2f 2f 2f 20 4d 61 6b 65 20 74 68 65 20 67 61 6d 65 70 61 64 20 74 68 65 20 3c 73 65 65 ...///.Make.the.gamepad.the.<see
80a0 20 63 72 65 66 3d 22 63 75 72 72 65 6e 74 22 2f 3e 20 67 61 6d 65 70 61 64 2e 0d 0a 20 20 20 20 .cref="current"/>.gamepad.......
80c0 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 ....///.</summary>..........///.
80e0 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 69 73 20 69 73 20 63 <remarks>..........///.This.is.c
8100 61 6c 6c 65 64 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 62 79 20 74 68 65 20 73 79 73 74 65 alled.automatically.by.the.syste
8120 6d 20 77 68 65 6e 20 74 68 65 72 65 20 69 73 20 69 6e 70 75 74 20 6f 6e 20 61 20 67 61 6d 65 70 m.when.there.is.input.on.a.gamep
8140 61 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 ad...........///.</remarks>.....
8160 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 4d 61 6b 65 43 75 .....public.override.void.MakeCu
8180 72 72 65 6e 74 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 rrent()..........{..............
81a0 62 61 73 65 2e 4d 61 6b 65 43 75 72 72 65 6e 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 base.MakeCurrent();.............
81c0 20 63 75 72 72 65 6e 74 20 3d 20 74 68 69 73 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 .current.=.this;..........}.....
81e0 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f .......///.<summary>..........//
8200 2f 20 43 61 6c 6c 65 64 20 77 68 65 6e 20 74 68 65 20 67 61 6d 65 70 61 64 20 69 73 20 61 64 64 /.Called.when.the.gamepad.is.add
8220 65 64 20 74 6f 20 74 68 65 20 73 79 73 74 65 6d 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c ed.to.the.system...........///.<
8240 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 6f 76 65 /summary>..........protected.ove
8260 72 72 69 64 65 20 76 6f 69 64 20 4f 6e 41 64 64 65 64 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d rride.void.OnAdded()..........{.
8280 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 72 72 61 79 48 65 6c 70 65 72 73 2e 41 70 70 65 6e 64 .............ArrayHelpers.Append
82a0 57 69 74 68 43 61 70 61 63 69 74 79 28 72 65 66 20 73 5f 47 61 6d 65 70 61 64 73 2c 20 72 65 66 WithCapacity(ref.s_Gamepads,.ref
82c0 20 73 5f 47 61 6d 65 70 61 64 43 6f 75 6e 74 2c 20 74 68 69 73 29 3b 0d 0a 20 20 20 20 20 20 20 .s_GamepadCount,.this);.........
82e0 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 .}............///.<summary>.....
8300 20 20 20 20 20 2f 2f 2f 20 43 61 6c 6c 65 64 20 77 68 65 6e 20 74 68 65 20 67 61 6d 65 70 61 64 .....///.Called.when.the.gamepad
8320 20 69 73 20 72 65 6d 6f 76 65 64 20 66 72 6f 6d 20 74 68 65 20 73 79 73 74 65 6d 2e 0d 0a 20 20 .is.removed.from.the.system.....
8340 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 70 72 ......///.</summary>..........pr
8360 6f 74 65 63 74 65 64 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 4f 6e 52 65 6d 6f 76 65 64 28 otected.override.void.OnRemoved(
8380 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 75 )..........{..............if.(cu
83a0 72 72 65 6e 74 20 3d 3d 20 74 68 69 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 rrent.==.this)..................
83c0 63 75 72 72 65 6e 74 20 3d 20 6e 75 6c 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f current.=.null;................/
83e0 2f 20 52 65 6d 6f 76 65 20 66 72 6f 6d 20 60 61 6c 6c 60 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 /.Remove.from.`all`.............
8400 20 20 76 61 72 20 69 6e 64 65 78 20 3d 20 41 72 72 61 79 48 65 6c 70 65 72 73 2e 49 6e 64 65 78 ..var.index.=.ArrayHelpers.Index
8420 4f 66 52 65 66 65 72 65 6e 63 65 28 73 5f 47 61 6d 65 70 61 64 73 2c 20 74 68 69 73 2c 20 73 5f OfReference(s_Gamepads,.this,.s_
8440 47 61 6d 65 70 61 64 43 6f 75 6e 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 GamepadCount);..............if.(
8460 69 6e 64 65 78 20 21 3d 20 2d 31 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 41 72 index.!=.-1)..................Ar
8480 72 61 79 48 65 6c 70 65 72 73 2e 45 72 61 73 65 41 74 57 69 74 68 43 61 70 61 63 69 74 79 28 73 rayHelpers.EraseAtWithCapacity(s
84a0 5f 47 61 6d 65 70 61 64 73 2c 20 72 65 66 20 73 5f 47 61 6d 65 70 61 64 43 6f 75 6e 74 2c 20 69 _Gamepads,.ref.s_GamepadCount,.i
84c0 6e 64 65 78 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0d 0a 20 20 20 20 20 20 ndex);..............else........
84e0 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 44 65 62 75 67 2e 41 ......{..................Debug.A
8500 73 73 65 72 74 28 66 61 6c 73 65 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ssert(false,....................
8520 20 20 24 22 47 61 6d 65 70 61 64 20 7b 74 68 69 73 7d 20 73 65 65 6d 73 20 74 6f 20 6e 6f 74 20 ..$"Gamepad.{this}.seems.to.not.
8540 68 61 76 65 20 62 65 65 6e 20 61 64 64 65 64 20 62 75 74 20 69 73 20 62 65 69 6e 67 20 72 65 6d have.been.added.but.is.being.rem
8560 6f 76 65 64 20 28 67 61 6d 65 70 61 64 20 6c 69 73 74 3a 20 7b 73 74 72 69 6e 67 2e 4a 6f 69 6e oved.(gamepad.list:.{string.Join
8580 28 22 2c 20 22 2c 20 61 6c 6c 29 7d 29 22 29 3b 20 2f 2f 20 50 75 74 20 69 6e 20 65 6c 73 65 20 (",.",.all)})");.//.Put.in.else.
85a0 74 6f 20 6e 6f 74 20 61 6c 6c 6f 63 61 74 65 20 6f 6e 20 6e 6f 72 6d 61 6c 20 70 61 74 68 2e 0d to.not.allocate.on.normal.path..
85c0 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 .............}..........}.......
85e0 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 .....///.<summary>..........///.
8600 50 61 75 73 65 20 72 75 6d 62 6c 65 20 65 66 66 65 63 74 73 20 6f 6e 20 74 68 65 20 67 61 6d 65 Pause.rumble.effects.on.the.game
8620 70 61 64 2e 20 52 65 73 75 6d 65 20 77 69 74 68 20 3c 73 65 65 20 63 72 65 66 3d 22 52 65 73 75 pad..Resume.with.<see.cref="Resu
8640 6d 65 48 61 70 74 69 63 73 22 2f 3e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d meHaptics"/>...........///.</sum
8660 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 mary>..........///.<seealso.cref
8680 3d 22 49 44 75 61 6c 4d 6f 74 6f 72 52 75 6d 62 6c 65 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 ="IDualMotorRumble"/>..........p
86a0 75 62 6c 69 63 20 76 69 72 74 75 61 6c 20 76 6f 69 64 20 50 61 75 73 65 48 61 70 74 69 63 73 28 ublic.virtual.void.PauseHaptics(
86c0 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 5f 52 75 6d 62 )..........{..............m_Rumb
86e0 6c 65 2e 50 61 75 73 65 48 61 70 74 69 63 73 28 74 68 69 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 le.PauseHaptics(this);..........
8700 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 }............///.<summary>......
8720 20 20 20 20 2f 2f 2f 20 52 65 73 75 6d 65 20 72 75 6d 62 6c 65 20 61 66 66 65 63 74 73 20 6f 6e ....///.Resume.rumble.affects.on
8740 20 74 68 65 20 67 61 6d 65 70 61 64 20 74 68 61 74 20 68 61 76 65 20 62 65 65 6e 20 70 61 75 73 .the.gamepad.that.have.been.paus
8760 65 64 20 77 69 74 68 20 3c 73 65 65 20 63 72 65 66 3d 22 50 61 75 73 65 48 61 70 74 69 63 73 22 ed.with.<see.cref="PauseHaptics"
8780 2f 3e 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 />...........///.</summary>.....
87a0 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 44 75 61 6c 4d 6f 74 .....///.<seealso.cref="IDualMot
87c0 6f 72 52 75 6d 62 6c 65 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 69 72 74 orRumble"/>..........public.virt
87e0 75 61 6c 20 76 6f 69 64 20 52 65 73 75 6d 65 48 61 70 74 69 63 73 28 29 0d 0a 20 20 20 20 20 20 ual.void.ResumeHaptics()........
8800 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 52 75 6d 62 6c 65 2e 52 65 73 75 6d 65 ..{..............m_Rumble.Resume
8820 48 61 70 74 69 63 73 28 74 68 69 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 Haptics(this);..........}.......
8840 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 .....///.<summary>..........///.
8860 52 65 73 65 74 20 72 75 6d 62 6c 65 20 65 66 66 65 63 74 73 20 6f 6e 20 74 68 65 20 67 61 6d 65 Reset.rumble.effects.on.the.game
8880 70 61 64 2e 20 50 75 74 73 20 74 68 65 20 67 61 6d 65 70 61 64 20 72 75 6d 62 6c 65 20 6d 6f 74 pad..Puts.the.gamepad.rumble.mot
88a0 6f 72 73 20 62 61 63 6b 20 69 6e 74 6f 20 74 68 65 69 72 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f ors.back.into.their..........///
88c0 20 64 65 66 61 75 6c 74 20 73 74 61 74 65 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 .default.state...........///.</s
88e0 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 ummary>..........///.<seealso.cr
8900 65 66 3d 22 49 44 75 61 6c 4d 6f 74 6f 72 52 75 6d 62 6c 65 22 2f 3e 0d 0a 20 20 20 20 20 20 20 ef="IDualMotorRumble"/>.........
8920 20 70 75 62 6c 69 63 20 76 69 72 74 75 61 6c 20 76 6f 69 64 20 52 65 73 65 74 48 61 70 74 69 63 .public.virtual.void.ResetHaptic
8940 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 5f 52 75 s()..........{..............m_Ru
8960 6d 62 6c 65 2e 52 65 73 65 74 48 61 70 74 69 63 73 28 74 68 69 73 29 3b 0d 0a 20 20 20 20 20 20 mble.ResetHaptics(this);........
8980 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 69 6e 68 65 72 69 74 64 6f 63 20 2f ..}............///.<inheritdoc./
89a0 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 69 72 74 75 61 6c 20 76 6f 69 64 20 53 >..........public.virtual.void.S
89c0 65 74 4d 6f 74 6f 72 53 70 65 65 64 73 28 66 6c 6f 61 74 20 6c 6f 77 46 72 65 71 75 65 6e 63 79 etMotorSpeeds(float.lowFrequency
89e0 2c 20 66 6c 6f 61 74 20 68 69 67 68 46 72 65 71 75 65 6e 63 79 29 0d 0a 20 20 20 20 20 20 20 20 ,.float.highFrequency)..........
8a00 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 52 75 6d 62 6c 65 2e 53 65 74 4d 6f 74 6f 72 {..............m_Rumble.SetMotor
8a20 53 70 65 65 64 73 28 74 68 69 73 2c 20 6c 6f 77 46 72 65 71 75 65 6e 63 79 2c 20 68 69 67 68 46 Speeds(this,.lowFrequency,.highF
8a40 72 65 71 75 65 6e 63 79 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 requency);..........}...........
8a60 20 70 72 69 76 61 74 65 20 44 75 61 6c 4d 6f 74 6f 72 52 75 6d 62 6c 65 20 6d 5f 52 75 6d 62 6c .private.DualMotorRumble.m_Rumbl
8a80 65 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 63 20 69 6e 74 e;............private.static.int
8aa0 20 73 5f 47 61 6d 65 70 61 64 43 6f 75 6e 74 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 .s_GamepadCount;..........privat
8ac0 65 20 73 74 61 74 69 63 20 47 61 6d 65 70 61 64 5b 5d 20 73 5f 47 61 6d 65 70 61 64 73 3b 0d 0a e.static.Gamepad[].s_Gamepads;..
8ae0 20 20 20 20 7d 0d 0a 7d 0d 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ....}..}........................
8b00 07 00 00 00 47 61 6d 65 70 61 64 00 17 00 00 00 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 6e 70 75 ....Gamepad.....UnityEngine.Inpu
8b20 74 53 79 73 74 65 6d 00 tSystem.