Line 23... |
Line 23... |
23 |
Switch3Pos selSwitch = new Switch3Pos(null, 2, 3);
|
23 |
Switch3Pos selSwitch = new Switch3Pos(null, 2, 3);
|
24 |
|
24 |
|
25 |
// Row 1
|
25 |
// Row 1
|
26 |
Dictionary<uint, Command> pad01 = new Dictionary<uint, Command>();
|
26 |
Dictionary<uint, Command> pad01 = new Dictionary<uint, Command>();
|
27 |
pad01.Add(0, new CommandDCS("UFC_1"));
|
27 |
pad01.Add(0, new CommandDCS("UFC_1"));
|
28 |
pad01.Add(1, new CommandVKey(VirtualKeyCode.F1));
|
28 |
pad01.Add(1, new CommandVKey(OSInput.VirtualKeyCodes.VK_F1));
|
29 |
this.addControl(new Switch2Pos(new CommandIf(selSwitch, pad01), 7));
|
29 |
this.addControl(new Switch2Pos(new CommandIf(selSwitch, pad01), 7));
|
30 |
|
30 |
|
31 |
Dictionary<uint, Command> pad02 = new Dictionary<uint, Command>();
|
31 |
Dictionary<uint, Command> pad02 = new Dictionary<uint, Command>();
|
32 |
pad02.Add(0, new CommandDCS("UFC_2"));
|
32 |
pad02.Add(0, new CommandDCS("UFC_2"));
|
33 |
pad02.Add(1, new CommandVKey(VirtualKeyCode.F2));
|
33 |
pad02.Add(1, new CommandVKey(OSInput.VirtualKeyCodes.VK_F2));
|
34 |
pad02.Add(2, new CommandTrackIRKey(VirtualKeyCode.F7));
|
34 |
pad02.Add(2, new CommandTrackIRKey(OSInput.VirtualKeyCodes.VK_F7));
|
35 |
this.addControl(new Switch2Pos(new CommandIf(selSwitch, pad02), 6));
|
35 |
this.addControl(new Switch2Pos(new CommandIf(selSwitch, pad02), 6));
|
36 |
|
36 |
|
37 |
Dictionary<uint, Command> pad03 = new Dictionary<uint, Command>();
|
37 |
Dictionary<uint, Command> pad03 = new Dictionary<uint, Command>();
|
38 |
pad03.Add(0, new CommandDCS("UFC_3"));
|
38 |
pad03.Add(0, new CommandDCS("UFC_3"));
|
39 |
pad03.Add(1, new CommandVKey(VirtualKeyCode.F3));
|
39 |
pad03.Add(1, new CommandVKey(OSInput.VirtualKeyCodes.VK_F3));
|
40 |
pad03.Add(2, new CommandTrackIRKey(VirtualKeyCode.F11));
|
40 |
pad03.Add(2, new CommandTrackIRKey(OSInput.VirtualKeyCodes.VK_F11));
|
41 |
this.addControl(new Switch2Pos(new CommandIf(selSwitch, pad03), 5));
|
41 |
this.addControl(new Switch2Pos(new CommandIf(selSwitch, pad03), 5));
|
42 |
|
42 |
|
43 |
Dictionary<uint, Command> pad04 = new Dictionary<uint,Command>();
|
43 |
Dictionary<uint, Command> pad04 = new Dictionary<uint,Command>();
|
44 |
pad04.Add(0, new CommandDCS("UFC_ENT"));
|
44 |
pad04.Add(0, new CommandDCS("UFC_ENT"));
|
45 |
pad04.Add(1, new CommandVKey(VirtualKeyCode.F4));
|
45 |
pad04.Add(1, new CommandVKey(OSInput.VirtualKeyCodes.VK_F4));
|
46 |
pad04.Add(2, new CommandTrackIRKey(VirtualKeyCode.F9));
|
46 |
pad04.Add(2, new CommandTrackIRKey(OSInput.VirtualKeyCodes.VK_F9));
|
47 |
this.addControl(new Switch2Pos(new CommandIf(selSwitch, pad04), 4));
|
47 |
this.addControl(new Switch2Pos(new CommandIf(selSwitch, pad04), 4));
|
48 |
|
48 |
|
49 |
// Row 2
|
49 |
// Row 2
|
50 |
Dictionary<uint, Command> pad05 = new Dictionary<uint, Command>();
|
50 |
Dictionary<uint, Command> pad05 = new Dictionary<uint, Command>();
|
51 |
pad05.Add(0, new CommandDCS("UFC_4"));
|
51 |
pad05.Add(0, new CommandDCS("UFC_4"));
|
52 |
pad05.Add(1, new CommandVKey(VirtualKeyCode.F5));
|
52 |
pad05.Add(1, new CommandVKey(OSInput.VirtualKeyCodes.VK_F5));
|
53 |
this.addControl(new Switch2Pos(new CommandIf(selSwitch, pad05), 11));
|
53 |
this.addControl(new Switch2Pos(new CommandIf(selSwitch, pad05), 11));
|
54 |
|
54 |
|
55 |
Dictionary<uint, Command> pad06 = new Dictionary<uint, Command>();
|
55 |
Dictionary<uint, Command> pad06 = new Dictionary<uint, Command>();
|
56 |
pad06.Add(0, new CommandDCS("UFC_5"));
|
56 |
pad06.Add(0, new CommandDCS("UFC_5"));
|
57 |
pad06.Add(1, new CommandVKey(VirtualKeyCode.F6));
|
57 |
pad06.Add(1, new CommandVKey(OSInput.VirtualKeyCodes.VK_F6));
|
58 |
this.addControl(new Switch2Pos(new CommandIf(selSwitch, pad06), 10));
|
58 |
this.addControl(new Switch2Pos(new CommandIf(selSwitch, pad06), 10));
|
59 |
|
59 |
|
60 |
Dictionary<uint, Command> pad07 = new Dictionary<uint, Command>();
|
60 |
Dictionary<uint, Command> pad07 = new Dictionary<uint, Command>();
|
61 |
pad07.Add(0, new CommandDCS("UFC_6"));
|
61 |
pad07.Add(0, new CommandDCS("UFC_6"));
|
62 |
pad07.Add(1, new CommandVKey(VirtualKeyCode.F7));
|
62 |
pad07.Add(1, new CommandVKey(OSInput.VirtualKeyCodes.VK_F7));
|
63 |
this.addControl(new Switch2Pos(new CommandIf(selSwitch, pad07), 9));
|
63 |
this.addControl(new Switch2Pos(new CommandIf(selSwitch, pad07), 9));
|
64 |
|
64 |
|
65 |
Dictionary<uint, Command> pad08 = new Dictionary<uint, Command>();
|
65 |
Dictionary<uint, Command> pad08 = new Dictionary<uint, Command>();
|
66 |
pad08.Add(0, new CommandDCS("UFC_10"));
|
66 |
pad08.Add(0, new CommandDCS("UFC_10"));
|
67 |
pad08.Add(1, new CommandVKey(VirtualKeyCode.F8));
|
67 |
pad08.Add(1, new CommandVKey(OSInput.VirtualKeyCodes.VK_F8));
|
68 |
this.addControl(new Switch2Pos(new CommandIf(selSwitch, pad08), 8));
|
68 |
this.addControl(new Switch2Pos(new CommandIf(selSwitch, pad08), 8));
|
69 |
|
69 |
|
70 |
// Row 3
|
70 |
// Row 3
|
71 |
Dictionary<uint, Command> pad09 = new Dictionary<uint, Command>();
|
71 |
Dictionary<uint, Command> pad09 = new Dictionary<uint, Command>();
|
72 |
pad09.Add(0, new CommandDCS("UFC_7"));
|
72 |
pad09.Add(0, new CommandDCS("UFC_7"));
|
73 |
pad09.Add(1, new CommandVKey(VirtualKeyCode.F9));
|
73 |
pad09.Add(1, new CommandVKey(OSInput.VirtualKeyCodes.VK_F9));
|
74 |
this.addControl(new Switch2Pos(new CommandIf(selSwitch, pad09), 15));
|
74 |
this.addControl(new Switch2Pos(new CommandIf(selSwitch, pad09), 15));
|
75 |
|
75 |
|
76 |
Dictionary<uint, Command> pad10 = new Dictionary<uint, Command>();
|
76 |
Dictionary<uint, Command> pad10 = new Dictionary<uint, Command>();
|
77 |
pad10.Add(0, new CommandDCS("UFC_8"));
|
77 |
pad10.Add(0, new CommandDCS("UFC_8"));
|
78 |
pad10.Add(1, new CommandVKey(VirtualKeyCode.F10));
|
78 |
pad10.Add(1, new CommandVKey(OSInput.VirtualKeyCodes.VK_F10));
|
79 |
this.addControl(new Switch2Pos(new CommandIf(selSwitch, pad10), 14));
|
79 |
this.addControl(new Switch2Pos(new CommandIf(selSwitch, pad10), 14));
|
80 |
|
80 |
|
81 |
Dictionary<uint, Command> pad11 = new Dictionary<uint, Command>();
|
81 |
Dictionary<uint, Command> pad11 = new Dictionary<uint, Command>();
|
82 |
pad11.Add(0, new CommandDCS("UFC_9"));
|
82 |
pad11.Add(0, new CommandDCS("UFC_9"));
|
83 |
pad11.Add(1, new CommandVKey(VirtualKeyCode.F11));
|
83 |
pad11.Add(1, new CommandVKey(OSInput.VirtualKeyCodes.VK_F11));
|
84 |
this.addControl(new Switch2Pos(new CommandIf(selSwitch, pad11), 13));
|
84 |
this.addControl(new Switch2Pos(new CommandIf(selSwitch, pad11), 13));
|
85 |
|
85 |
|
86 |
Dictionary<uint, Command> pad12 = new Dictionary<uint, Command>();
|
86 |
Dictionary<uint, Command> pad12 = new Dictionary<uint, Command>();
|
87 |
pad12.Add(0, new CommandDCS("UFC_CLR"));
|
87 |
pad12.Add(0, new CommandDCS("UFC_CLR"));
|
88 |
pad12.Add(1, new CommandVKey(VirtualKeyCode.F12));
|
88 |
pad12.Add(1, new CommandVKey(OSInput.VirtualKeyCodes.VK_F12));
|
89 |
this.addControl(new Switch2Pos(new CommandIf(selSwitch, pad12), 12));
|
89 |
this.addControl(new Switch2Pos(new CommandIf(selSwitch, pad12), 12));
|
90 |
|
90 |
|
91 |
// NMSP
|
91 |
// NMSP
|
92 |
this.addControl(new Switch2Pos(new CommandDCS("NMSP_EGI_BTN"), 16));
|
92 |
this.addControl(new Switch2Pos(new CommandDCS("NMSP_EGI_BTN"), 16));
|
93 |
this.addControl(new Switch2Pos(new CommandDCS("NMSP_HARS_BTN"), 17));
|
93 |
this.addControl(new Switch2Pos(new CommandDCS("NMSP_HARS_BTN"), 17));
|